Chapter 0: Q11E (page 1)
Convert the CFG given in Exercise 2.1 to an equivalent PDA, using the procedure given in Theorem 2.20
Short Answer
Answer
The equivalent PDA is as follows:
Chapter 0: Q11E (page 1)
Convert the CFG given in Exercise 2.1 to an equivalent PDA, using the procedure given in Theorem 2.20
Answer
The equivalent PDA is as follows:
All the tools & learning materials you need for study success - in one app.
Get started for freeQuestion:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .
MINIMIZE = โOn input , where is a DFA:
1.Remove all states of G that are unreachable from the start state.
2. Construct the following undirected graph G whose nodes are the states of .
3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.
4. Repeat until no new edges are added to G :
5. For every pair of distinct states q and r of and every :
6. Add the edge (q,r) to G if is an edge of G .
7. For each state be the collection of edge joins q and r in G }.
8.Form a new DFA where
9. Output ( M')โ
a. Show that M and M' are equivalent.
b. Show that M0 is minimalโthat is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.
c. Show that MINIMIZE operates in polynomial time.
If is a set withelements, how many elements are in the power set of ? Explain your answer.
Write a formal description of the following graph.
Use the results of Exercise to give another proof that every regular language is context- free, by showing how to convert a regular expression directly to an equivalent context-free grammar.
Show that A is decidable iff .
What do you think about this solution?
We value your feedback to improve our textbook solutions.