Question

1) Given language L = {a62n >0} a) Give an informal english description of a PDA for L b) Give a PDA for L
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. This language generates string of characters a and b, where number of b's are twice of number of a's.

For example, L = { abb, aabbbb, aaabbbbbb, .... }

b.

THE PDA CAN be drawn as below.

b,a/E a,a/aa E,Z/z b,a/e q2 91 qf1 a,z/az Ob

  • From state q0 to q1, if a is found, we push a onto the stack.
  • in q1, if a is found we push aa on to the stack.
  • if b is found, we pop from the stack and move to q2.
  • if b comes we pop from the stack.

so at encounter of single a, we push two a(aa) onto the stack.

so while popping for each a encountered we pop two b's.

Hence we calculate twice number of b's.

IF THERE IS ANYTHING THAT YOU DO NOY UNDERSTAND, IR NEED MORE HELP THEN PLEASE MENTION IT IN THE COMMENTS SECTION.

Add a comment
Know the answer?
Add Answer to:
1) Given language L = {a"62"n >0} a) Give an informal english description of a PDA...
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
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