Question

3. [9 points] Let ta, b). Draw a state transition diagram for a Turing Machine that computes the function f an) a3n. f 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).

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Let sigma = {a, b}. Draw a state transition diagram for a Turing Machine that computes...
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 L = {0^n 1^n | n ≥ 0}. Draw the state diagram of a Turing...

    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. 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? Let L = {0"1" | n > 0}. Draw the state diagram...

  • 1) Write a transition diagram for a Turing Machine that satisfies the following specifications. Do not...

    1) Write a transition diagram for a Turing Machine that satisfies the following specifications. Do not make it skeletal -- show all possible transitions. (That means 3 transitions from each state (except the halt state) since Γ = {x, y, Δ} for this problem.) Pre: |Δ alpha Δ ....     where alpha is a string of letters from {x,y} and ... are all Δ Post: if alpha is in the language described by regular expression (xy)* halt in the leftmost cell...

  • (1) Turing Machine With left reset. ~Will Rate LifeSaver~

    A Turing Machine with Left Reset is similar to an ordinary Turing Machine, but the transition function has the form:δ: Q x τ x {R,RESET}If δ(q,a) = {r,b,RESET} when the turing machine is in state q reading an a, the machine's head jumps to the left-hand end of the tape after it writes b on thetape and enters state r.Note that these machines do not have the usual ability to move the head one symbol left.Show that turing machines with...

  • Rarisition written in the format of the Turing Machine simulator is a special state H which means...

    rarisition written in the format of the Turing Machine simulator is a special state H which means halt. For the given Below is a Turing machine program where each line is a transition writen current state, read symbol, new state, write symbol, drection e-d. wmeans to state 4, write a 1 and move the tape head left. Notc there is a special state a os on the leftmost n nanks , write the resulting bitstring when the TM reaches the...

  • 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 }

  • Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows....

    Third time posting, can someone answer please. Question 2. Consider the Turing machine defined as follows. input alphabet {1} Tape alphabet = { 1,0, x,□} where □ represents a blank Set of states (A, B, C, D Initial state A set of accept states = {D} Transition function: 6(A, z) = (A,z, R) 6(A, □)-(C,D, L) (i) Draw a transition graph for this Turing machine. (ii) Determine the output of the Turing machine for each of the following input i)...

  • turing machine transition table Use the input and table to execute. Input: babaaa b a (q2,...

    turing machine transition table Use the input and table to execute. Input: babaaa b a (q2, b, R) (q1, b, R) (q0, a, L) qo (q3, *, L) (q1,* L) (q2, a, L) 97 (q2, b, R) (q1,* R) (q0, a, R) q2 (q3, *, R) (q1, b, R) (q0, a, R) q3 First 6 characters of the tape after step 1: Ex: *abb*b Select the state of the Turing Machine after each step: Step 1 Use the input and...

  • Question 1 10 pts Draw the transition graph of a Turing Machine (TM) that accepts the...

    Question 1 10 pts Draw the transition graph of a Turing Machine (TM) that accepts the language: L = {aw: w € {a,b}" } U{(bb)" ac: n > 3 and n is divisible by 3} Write the sequence of moves done by the TM when the input string is v= abbca. Is the string v accepted?

  • 1.A: Let Sigma be {a,b}. Draw a DFA that will accept the set of all strings...

    1.A: Let Sigma be {a,b}. Draw a DFA that will accept the set of all strings x in which the last letter of x occurs exactly twice in a row. That is, this DFA should accept bbabbbaa (because there are two a's at the end), and aaabb (two b's), but should not accept aaa (3 a's in a row, and 3 is not exactly 2), nor single letter words such as 'b', nor baba, etc.

  • 3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a...

    3.(4 4+20-36 points Formal Definition of a Turing Machine (TM) ATM M is expressed as a 7-tuple (Q, T, B, ? ?, q0,B,F) where: . Q is a finite set of states T is the tape alphabet (symbols which can be written on Tape) .B is blank symbol (every cell is filled with B except input alphabet initially .2 is the input alphabet (symbols which are part of input alphabet) is a transition function which maps QxTQxTx (L, R :...

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