--------------------------------------
Up vote or comment if you have any doubt. Happy
Learning!
i need answer for this. Construct a Turing machine with two-way tape and input alphabet fa}...
Construct a Turing achine with on tape thai rcccivs as input an integer x 〉 1 and returns as output the integer x-1 . Integers are represented in binary. Start of the computation: The tape contains the binary representation of the input r. The tape head is on the rightmost symbol of r and the Turing machine is in the start state o End of the computation: The tape contains the binary representation of the integer r - 1. The...
A Turing machine with doubly infinite tape (TMDIT) is similar to an ordinary Turing machine except that its tape is infinite to the left as well as to the right. The tape is initially filled with blanks except for the portion that contains the input. Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that the class of languages recognized by TDMITs is the same as the class...
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...
Give an informal description (in plain English) of a Turing machine with three tapes that receives as input two non-negative integers x and y, and returns as output the integer xy. Integers are represented as binary strings.Start of the computation: The first tape contains the binary representation of x and its head is on the rightmost symbol of x. The second tape contains the binary representation of y and its head is on the rightmost symbol of y. The third...
Construct a Turing machine with input alphabet {?, ?}, which accepts strings of even length.
Construct a Turing machine with input alphabet {?, ?}, which accepts strings with the same number of a’s and b’s.
It wants a diagram
Construct a TM M4 which accepts the language [w2w | w in (0,1)). This means, any input that comprises two copies of a binary string w separated by a single 2 symbol should be accepted. Any other input should be rejected. The input alphabet is (0,1,2). The tape alphabet contains 0, 1,2,_and you may use additional symbols 3, 4, , 9 if you wish (M4 can be constructed comfortably with just one additional symbol 3). The...
Write a TM (Turing Machine) program that adds two base two numbers. Input is two nonnegative integers in base 2 with a plus sign between them. Output is their sum in base 2, with nothing else left on the tape. So first decrement, then increment. Use an online Turing Machine Simulator to see how it works. Use the following language for the program: current state, read symbol, next state, write symbol, direction [directions are (< left, > right, s stay)]...
Subject : Theory of Computation
Please answer , posting second time now cause nobody answered it
previously
Problem 3: Turing Machine Models Turing-Recognisablity and Decidability [20] a. Show that an FA with a FIFO queue is Turing universal (i.e equivalent in computational power to a Turing machine). You should regard this machine as being formally defined in a way that is very similar to a PDA, except that on each transition, instead of pushing and/or popping a character, the machine...
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,...