Question

Let L = {0^n 1^n | n ≥ 0}. Draw the state diagram of a Turing machine deciding L= Σ∗\L(basically the complement of L), where Σ = {0,1}, and Γ = {0,1,#,U}, and “\” is set subtraction.

Let L = {01 | n > 0}. Draw the state diagram of a Turing machine deciding I = * \ L (basically the complement of L), where

I understand that the complement of L will be {0^n 1^m | n=!m} U {(0 U 1)* 1 0 {0 U 1)*}.

How should I draw the state diagram with this?

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

1/1,R of is blank. olo, R. 710, olo, R 30,R To,R 110,L olo, 1/1, L {09; | n20} A-B-E-C: Matching os with 1s If theres not

  • Transitions from A-F and E-F make all the difference. Rest looks similar but not same if you can see through.

  • A-F and E-F are for mismatches and rest of the turing machine is for a^nb^n. A-F is for 1 before 0 or without 0. E-F is for 0 for 0 instead of 1. Those two are valid cases for complement condition.

Let me know if you still have any doubts.

Add a comment
Know the answer?
Add Answer to:
Let L = {0^n 1^n | n ≥ 0}. Draw the state diagram of a Turing...
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