Question

The languages L1 = {anbm | m = n or m = 2n } and L2...

The languages L1 = {anbm | m = n or m = 2n } and L2 = {a n b m | n <= m <= 2n } are context free.

a. Choose one of the languages and write a CFG for it.

b.   Write the PDA that comes from your grammar (part a). Show the first 4 moves it would make on some string in your language (of length at least 4). Be sure to show state, input, and stack at each move.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SD 덛0 PDA a2 C b,ala) Cb,ala) (t, Zo Li (b, ale) , Zel- push rip FOP FOP POP 0 Accept occept was tbollowe Acok Bottorn uxe ob

Add a comment
Know the answer?
Add Answer to:
The languages L1 = {anbm | m = n or m = 2n } and L2...
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