Cpts 515 advanced algorithms assignment

Assignment Help Programming Languages
Reference no: EM132389213

CPTS 515 Advanced Algorithms
Washington State University

Do in Python usingpy EDA package.
understand how CTL formulas are interpreted on a graph.
0. Let G be a graph over 32 nodes (namely, node 0, .. , node 31). For all O ≤ 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.

Question 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 [EG p] (the set of nodes in G that satisfy EGp from R and [p]).
You may first study the algorithms for [AGp] and [AF p].

Question 2. (coding in Python) Every finite set can be coded as a BDD. Please write a Python program to compute [EG(even∧ EF prime)] (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 in BDD using methods in the package. Many students find methods BDD. compose() and BDD. smoothing() are quite useful in the package.)

Question 3. 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) 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 can be ridiculously simple with only one state and accepting every word on the alphabet.). Consequently, one need come up with a metric 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: EM132389213

Questions Cloud

Humans change the species composition within biological : Why does fire suppression by humans change the species composition within biological communities?
Which group is the experimental group : Then, group 1 received the new drug while group 2 received a sugar pill. One hour later, both groups took the concentration test again.
What new details are you able to see on the slide : What new details are you able to see on the slide when the magnification is increased to 10x that you could not see at 4x? What about 40x?
Define and describe the structure of the plasma membrane : Define and describe the structure of the plasma membrane. Does the structure of the membrane relate to it's function in selective permeability? If so, how?
Cpts 515 advanced algorithms assignment : CPTS 515 Advanced Algorithms Assignment Help and Solution, Washington State University - Homework Help - write a Python program to compute
How much does it cost in total for one car : What is the associated value for v you obtain? How much does it cost in total for one car? Please show your intermediate steps for partial credits
Calculate the probability for all genotypes : a. Calculate the probability for all genotypes and specify the frequency for which he is interested.
Explain the origin of the blood that flows : 1. Explain the origin of the blood that flows into the superior vena cava vs. the inferior vena cava?
What will happen when two water molecules bump : What will happen when two water molecules bump into each other when the two oxygen atoms are facing each other (try it with the model)? Why?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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