Question

Construct an npda that accepts the following language L = {a bºn sms 2n}.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

A,B,C,D are assumed to be states and showed an example by state transitions with stack diagram.

A is initial state and d is final state. As per requirement at least one 'a' is expected in language.

so inputting a is the first transition made.

In state B

1. If already stack contains a and input is a,insert a.

2.If input is b, then stack must contain a/b. In that case  Insert b in to the stack

In state C

1.at least one b must be present as the minimum value f m is 1. So,If input element is b pop out it from the queue. It eliminates all bs

2.Popout all as from the queue until Zo is reached.L = { anth Inam sang. if n=1 then in can be 2, a. if n=2 then med meu i.e, m= 2, 3, 43 if n=3 then mso ie, m= {3,4,5,63. Rado

Add a comment
Know the answer?
Add Answer to:
Construct an npda that accepts the following language L = {a" bºn sms 2n}.
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