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
  • Let sigma = {a, b}. Draw a state transition diagram for a Turing Machine that computes...

    Let sigma = {a, b}. Draw a state transition diagram for a Turing Machine that computes the function f(a^n) = a^3n. If the tape contains aaa (n=3) at the beginning of execution, then at the end of execution the tape should contain aaaaaaaaa (3n=3*3=9).

  • 1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w...

    1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w | the length of w is at least 2 and has the same symbol in its 2nd and last positions} (b)Draw the state diagram for an NFA for accepting the following language over alphabet {0,1} (Use as few states as possible): {w | w is of the form 1*(01 ∪ 10*)*} (c)If A is a language with alphabet Σ, the complement of A is...

  • Give the state diagram of a Turing machine that accepts the following language over S =...

    Give the state diagram of a Turing machine that accepts the following language over S = {0,1}: {0m1n: m > n ≥ 0}

  • Give the state diagram for a single-tape Turing machine for the following language. L = {a#b#c...

    Give the state diagram for a single-tape Turing machine for the following language. L = {a#b#c | a, b, c ∈ { 0 , 1 }∗ and a,b,c all have the same number of zeroes} Assume Σ = { 0 , 1 }

  • Let Σ = {0, 1, 2}. Draw the diagram of a finite state machine that takes...

    Let Σ = {0, 1, 2}. Draw the diagram of a finite state machine that takes as input two strings from Σ∗ and outputs their sum (as ternary strings). The machine should read pairs of digits at a time – one from the first string in the sum, and one from the second string in the sum.

  • Draw the state diagram of a Push-down Automata that recognizes the language A = {u#v_R |...

    Draw the state diagram of a Push-down Automata that recognizes the language A = {u#v_R | u, v {0, 1}* and u =v}. In this set, treat u and v as bit strings where v is the bit-complement of v. For example, 0100#1 101 A, 0100#1010 A #1010#1010 A and so on. Let M = (Q, sigma, , delta, q_0, F) be a push-down automata. Describe a push-down

  • please answer and I will rate! 3. Let L = {M M is a Turing machine...

    please answer and I will rate! 3. Let L = {M M is a Turing machine and L(M) is empty), where L(M) is the language accepted by M. Prove Lis undecidable by finding a reduction from Arm to it, where Ayv-<<MwM is a Turing machine and M accepts w). Answer:

  • State diagrams for Turing Machines. Suppose you are given a string w ∈ {0,1}* placed on a Turin...

    State diagrams for Turing Machines. Suppose you are given a string w ∈ {0,1}* placed on a Turing Machine tape. Give the state diagram for the Turing Machine required to take the initial string, w, and replace it on the tape with a new string, w′. The new string, w′, is formed by shifting the entire input string one cell to the right. Suppose you are given a string w ∈ {0, 1}* placed on a Turing Machine tape. Give...

  • Help me answer this question plz! 4. Let L = { (A) M is a Turing...

    Help me answer this question plz! 4. Let L = { (A) M is a Turing machine that accepts more than one string } a) Define the notions of Turing-recognisable language and undecidable language. b) Is L Turing-recognisable? Justify your answer with an informal argument. c) Justify with a formal proof your answer to b) d) Prove that L is undecidable. (Hint: use Rice's theorem.) e) Modify your answer to b) when instead of L you have the language Ln...

  • 3. Let L-{(M, q》 | M is a Turing machine and q is a state in...

    3. Let L-{(M, q》 | M is a Turing machine and q is a state in M such that: there is at least one input string w such that M executed on w enters state q). Side note: In the real world, you can think of this as a question about finding "dead code" in a program. The question is: for a given line of code in your program, is there an input that will make the program execute that...

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