Question

Construct a NPDA with transition graph using 4 states that accepts the language L={w: na(w)-nb(w)=2} on...

Construct a NPDA with transition graph using 4 states that accepts the language L={w: na(w)-nb(w)=2} on Σ={a,b}

subject-- formal language of automata theory.

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

Push down automata for this language is --

q1 ɛ,a/ € a,Z/aZ b,Z/bZ b,a/€ ɛ,a/ɛ ɛ,Z/Z a,Z/aZ a,b/ɛ qo 93 94 qf b,Z/bZ ɛ,a/ɛ 92

So algorithm goes like this -

First we match equal number of a's with b's and at last we see two more a's left this way we accept the string. Here in this PDA q0 is initial state and qf is accept state.

Add a comment
Know the answer?
Add Answer to:
Construct a NPDA with transition graph using 4 states that accepts the language L={w: na(w)-nb(w)=2} on...
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
Active Questions
ADVERTISEMENT