Provide the transitions of a turing machine that takes an input and halts with an output of the input squared. Example input 11 would halt when 1111
Sample Trace
111
x11
xx1eee
xxxeeeeee
111111111
-- Please up vote or comment if you have any doubts. Happy Learning!
Provide the transitions of a turing machine that takes an input and halts with an output...
can someone help me with this problem? thanks Prove that there is no algorithm that determines whether an arbitrary Turing machine halts when run with the input string 101. Prove that there is no algorithm that determines whether an arbitrary Turing machine halts when run with the input string 101.
A Turing machine that halts on all inputs is called a halting Turing machine (also known as Decider). Prove the following: (a) If M1 and M2 are two halting Turing machines, then there exists a halting Turing machine that recognizes L(M1) ∩ L(M2). (b) If M1 and M2 are two (not necessarily halting) Turing machines, then there exists a Turing machine that recognizes L(M1) ∩ L(M2).
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...
Let h(n) =1 if n codes a Turing machine M which halts when started on a blank tape, h(n) =0 otherwise. Sketch a proof that h is not Turing computable.
2. (25 points) Consider the language Li = {(M)M is a Turing machine that halts when started on the empty tape) Is Li є o? Justify your answer. ,
I. 40%) Find the output of the following Turing machine when run on the tape . . .6011006 ((S1,0), (0,S2,R)) ((S2,b),(0,S3,R)) ((S3,0), (0,S3,L)) Please indicate the final state and position of the read/write head on the tape when this TM halts. I. 40%) Find the output of the following Turing machine when run on the tape . . .6011006 ((S1,0), (0,S2,R)) ((S2,b),(0,S3,R)) ((S3,0), (0,S3,L)) Please indicate the final state and position of the read/write head on the tape when this...
Discrete Mathematical Structures Draw a Turing machine that takes a string representing two unary numbers, x and y, separated by a 0, and determines whether x greaterthanorequalto y. For example, the input for x = 3, y = 4 would be 11101111. Use two halt states: one for yes and one for no. Give the trace of your machine in the previous problem processing the strings 11101111 and 11110111. Draw a TM that computes f(w) = w^R where w elementof...
Implement a Turing machine that subtracts two from the input string corresponding a ternary number. More specifically, suppose w = an−1an−2 . . . a1a0 is the input string with ai ∈ {0, 1, 2}. Your Turing machine should subtract two from w “in-place”, i.e., at the end of the computation the tape should contain the result, w − 2 and the tape head should be at the start of that string. Upon a successful operation, halt on accept. Otherwise,...
5. Design a Turing machine that takes as input two numbers a and b, such that a is not equal to b and determines which number is higher. Give the transition table for the machine. Show by drawing the steps, how the machine works when a-3 and b-2. Can we use a PDA for the same problem? Give reasons for your answer (10+5+5-20).
Descrete Math Create a turing machine that has a string of n 1s as input and outputs a string of 2n 1s. Showing the steps test your machine on the input 1111.