Question: Let G = ( V , , R , S ) where the productions are: S A A S B A 0 A A A

Let G=(V,,R,S) where the productions are:
SAA
SB
A0A
AA0
A1
B0B00
B1
1a. Give V,,R,S.
1b. Give the state transition diagram for the corresponding PDA.
1c. Define L(G) using standard set notation to characterize the strings in L.
1
1d. Show a PDA trace (just an accepting path) for the string s=00101.
2. Suppose the following FSA, M, recognizes CNF sentences.
Figure 1: State Transition Diagram for M.
2a. Define the corresponding CFG for M,G=(V,,R,S)(constructed using method in text).
2b. Show the CFG derivation for string s=(a1vvnota2)??(a3vva4).
2c. Show the parse tree for s defined in 2 b.
2d. Give the PDA, P, corresponding to G in 2a.
2e. Give a PDA computation sequence (PDA trace) for P recognizing string s defined in 2b.
3. Let encodes lists of natural numbers using unary representation and having only monotonically increasing lists of numbers
 Let G=(V,,R,S) where the productions are: SAA SB A0A AA0 A1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!