Question

4. Show that the pda constructed in Example 7.6 accepts the strings aabb and aaabbbb, and that both strings are in the langua
EXAMPLE 7.6 Construct a pda that accepts the language generated by a grammar with productions We first transform the grammar
4. Show that the pda constructed in Example 7.6 accepts the strings aabb and aaabbbb, and that both strings are in the language generated by the given grammar.
EXAMPLE 7.6 Construct a pda that accepts the language generated by a grammar with productions We first transform the grammar into Greibach normal form, changing the productions to A bB, The corresponding automaton will have three states (go, 91,92), with initial state go and final state q2. First, the start symbol S is put on the stack by 6 (go, A, 2) (gi, S2)). The production S aSA will be simulated in the pda by removing S from the stack and replacing it with SA, while reading a from the input. Similarly, the rule S a should cause the pda to read an a while simply removing S. Thus, the two productions are represented in the pda by δ (qi, a,S) = {(a, SA), (q, λ)) In an analogous manner, the other productions give The appearance of the stack start symbol on top of the stack signals the completion of the derivation and the pda is put into its final state by The construction of this example can be adapted to other cases, leading to a general result.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a abb CaD Ne a/aa 又 ,-s tちe initiafaa a,a) A cupに hins (92,00) 少 aa) uia า (qs, e, z) @pz) →

Add a comment
Know the answer?
Add Answer to:
4. Show that the pda constructed in Example 7.6 accepts the strings aabb and aaabbbb, and that bo...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • [20 points] As an example of a PDA look at the one below that accepts the...

    [20 points] As an example of a PDA look at the one below that accepts the following language (Z is the stack start symbol): {a”br | n >0} U{a}. a, 1; 11 b, 1; a, Z; 12 b, 1 ; 90 q1 q2 1,2; a, Z;À Z: 93 We want to show that the language L below is a CFL by designing the PDA P, defined as P= {{90, 91, 92}, {0, 1}, {x, Z},0,40, 2, {92}}, that accepts it:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT