Compute the set of nodes in G that satisfy EF

Assignment Help Python Programming
Reference no: EM132390036

CPTS515

Do in Python using pyEDA package .

0. Let G be a graph over 32 nodes (namely, node 0, , node 31). Forall 0 ≤ i,j ≤31, there is an edge from node i to node j iff (i + 3)%32 = j%32 or (i + 8)%32 = j%32. (% is the modular operator in C; e.g., 35% 32=3.) A node i is even if i is an even number. A node i is prime if i is a prime number. In particular, we define [even] as the set {0,2,4,6....30} and [prime] as the set { 3, 5, 7, 11, 13, 17, 19, 23, 29, 31} . We use R to denote the set of all edges in G.

1. (write-up) Let p be a CTL formula while [p] is the set of nodes in G that satisfy p.

Please design a fix-point iteration algorithm that computes [EF p](the set of nodes in G that satisfy EF p from R and [p]).

Please design a fix-point iteration algorithm that computes [EGp](the set of nodes in G that satisfy EGp from R and [p]).

You may first study the algorithms for [AGp] and [AF p].

2. (coding inPython)Every finite set can be coded as a BDD. Please write a Python program to compute [EG(even EFprime)] (the set of nodes that satisfy the formula EG( even EF prime).), and verify your answer by checking

node 5 satisfies EG(even Λ EF prime) and

node 6 doesnt satisfy EG(even Λ EF prime).

(Important: your code shall first encode R, [even], [prime] in BDDs using pyEDA and then using methods provided with the package, implement the iteration algorithms provided in 3 symbolically inBDD using methods in the package. Many students find methods BDD. compose()andBDD. smoothing() are quite useful in the package.)

3. (write-up) To make use of the idea of BDDs, a major difficulty is which graph is chosen to model a given set of data. When the graph is too large, the symbolic exploartion algorithm would not even run efficiently.  However, if the graph is too small, the modeling might not be even realistic. We now think about an example problem. Consider a finite set L of DNA strands, where each strand is simply a string on alphabet {A, T, C, G} (that is, a strand is a sequence of nucleotides, each of which is chosen from four nitrogen-containing nucleobases.).

One may use a deterministic finite automaton (DFA)1 M (which itself is a graph) to model the set L; i.e L ⊆ L(M ). That is, each strand w in L, there is a walk in M (from the initial state to an accepting state) such that the symbols sequentially collected on the transitions on the walk form exactly the w. Clearly, many many different M can be used to model L(e.g., M canbe ridiculously simplewithonly one state andaccepting every word onthe alphabet.).

Consequently,oneneed come up with ametric Q(M,L), which is a real number,to characterize the "precision" on using the given M to model L. When this is done, one can argue, for two given DFAs M1 and M2 which both model the given L, which model is more precise. Now, you need write a mini-paper (of 1 or 2 or more pages) in figuring out ways to define Q(M, L) and to design algorithms to compute Q(M, L).

Reference no: EM132390036

Questions Cloud

Describe a health-related issue you chose in girls or women : Briefly describe a health-related issue you chose in girls or women. Briefly describe how the program relates to at least two theories.
What are the characteristics of a concept : What is a concept? What are the characteristics of a concept? Discuss the process of critical thinking, and detail the two components of it as well.
Describe goals for the client based on presenting problem : In order to provide the appropriate intervention, social workers first need to have conducted a thorough assessment. Having a comprehensive understanding.
How can applied anthropology help make things safer : Discuss the reality that natural disasters have different effects and mortality rates in different economies. How can applied anthropology help make things.
Compute the set of nodes in G that satisfy EF : CPTS515- Design a fix-point iteration algorithm that computes the set of nodes in G that satisfy EF p from R and P. Design algorithms to compute Q
Determine the main idea of the article : Recall from Week 1 that main ideas and thesis sentences are really two sides of the same coin. Writers create thesis sentences. Readers pick out the main idea.
What you learned and found interesting about recent article : Please view the following article, and discuss what you learned and/or found interesting about this recent article on the latest findings.
Why were the parties unable to reach pareto optimality : Prior to the conflict stalling, how did the parties deal with the integrative and distributive aspects of the negotiation? Why were the parties unable to reach.
Describe the different divisions of the motor system : There are significant differences in the ability of individuals to perform complex motor skills. Discuss how the different divisions of the motor system.

Reviews

Write a Review

Python Programming Questions & Answers

  Create a program that prompt the user to enter five positive

Create a program that prompt the user to enter five positive numbers and calculate the average. When a negative number is entered, program will be terminated.

  Make automobile class that will be used by a dealership

Make automobile class that will be used by a dealership as a vehicle inventory program. The following attributes should be present in your automobile class.

  Find the sample program illustrating the split method

Plan program carefully on paper before beginning code. You may find the sample program illustrating the 'split' method to be a useful reference.

  Python code for grabbing data from yahoo finance

I am new to Phython. Using Spyder IDE Simple code. It is not recognizing by Data file see line 33 - The purpose of assignment is to get you familiar with the Python.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  Implement the sieve of eratosthenes

Implement the Sieve of Eratosthenes and use it to find all prime numbers less than or equal to one million. Use the result to prove Goldbach's Conjecture for all even integers between four and one million, inclusive.

  Define different functions for the conversions

Define different functions for the conversions. Call these functions within the while loop. Use docstrings for your comments.

  What is the difference between a for loop and a while loop

Explain how to use built-in functions, functions from module, and user-defined functions. What is the difference between a for loop and a while loop? What is the difference between elif and if-else?

  How can the game best determine if the player has collected

How can the game best determine if the player has collected enough rupees to complete the quest? Which expression represents X is not equal to Y?

  Show an example of your function in use

Function in Python to take in a piece of sample text via a long string and to output a dictionary with each word as a key and it's frequency.

  Implement a class called countrycatalogue

Implement a class called CountryCatalogue. Implement a class Country that holds the information about a single country; name the file country.py.

  The interest rate per period

The interest rate per period. For example, if your loan's interest is 6.5% per year, and you are paying monthly, this would be 6.5%/12. If you are paying every two weeks, r would be 6.5%/26, because there are 26 two-week periods in a year.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd