Question

PDA for L = {0^n 0^m | n and m > 0} and do computation or...

PDA for L = {0^n 0^m | n and m > 0} and do computation or input string 00001111

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

Answer : We have to design PDA for the language L =  {0^n 1^m | n and m > 0}.

Note : In the given problem L = {0^n 0^m | n and m > 0} and input string is 00001111. Therefore We take L as

L =  {0^n 1^m | n and m > 0}.

Here L contains all the strings of {0,1} , starting with zero or more 0's followed by zero or more 1's.

PDA corresponding to L would be

?( q0, 0, Z0 ) ⊢ ( q1, Z0 )

  ?( q1, 0, Z0 ) ⊢ ( q1, Z0 )

  ?( q1, 1, Z0 ) ⊢ ( q2, Z0 )

?( q2, 1, Z0 ) ⊢ ( q2, Z0 )

?( q2, ∈, Z0 ) ⊢ ( q3, ∈ )

Computation of the input string 00001111 :

?( q0, 00001111, Z0 ) ⊢ ?( q1, 0001111, Z0 )

?( q1, 001111, Z0 )

  ⊢ ?( q1, 01111, Z0 )

  ⊢ ?( q1, 1111, Z0 )

  ⊢ ?( q2, 111, Z0 )

  ⊢ ?( q2, 11, Z0 )

  ⊢ ?( q2, 1, Z0 )

?( q2, ∈, Z0 )

= ( q3, ∈ ) Accepted

  

  

  

  

  

Add a comment
Know the answer?
Add Answer to:
PDA for L = {0^n 0^m | n and m > 0} and do computation or...
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