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.
Descrete Math Create a turing machine that has a string of n 1s as input and...
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,...
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.
Construct a Turing machine with one tape, that accepts the language {02n1n: n ≥ 0}. Assume that, at the start of the computation, the tape head is on the leftmost symbol of the input string.
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).
Describe a Turing Machine that will read its input tape as a binary number n and produce on its tape the binary representation of n + 1. That is, the TM will be a subprogram that will add one to an input number. This description could be a formal TM that does what is asked. It could also be slightly less than totally formal provided it is crystal clear what is happening.
4. Create a 1-hot implementation of the traffic light state machine from problem #2 (a) Create the state table with state assignments, showing the next states as a function of the input and the outputs as a function of the present state. (b) Determine the logic equations for the next state inputs to the flops, and for the six output control signals.
4. Create a 1-hot implementation of the traffic light state machine from problem #2 (a) Create the state...
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...
Create a state machine that outputs a high signal every time the string ‘001’ is detected. Use only four states in your state machine, and two JK flip-flops in your circuit design. As an example, ‘1101000010100011101’ should output a high signal two times.
Create a state machine that outputs a high signal every time the string ‘001’ is detected. Use only four states in your state machine, and two JK flip-flops in your circuit design. As an example, ‘1101000010100011101’ should output a high signal two times.
Show that the language A = {<M1> | the language
accepted by the Turing Machine M1 is 1*} is
not decidable. Present your proof in the style of the proof of Th.
5.3, which shows below.
PROOF We let R be a TM that decides REGULARTm and construct TM S to decide ATM. Then S works in the following manner. S - "On input (M, w), where M is a TM and w is a string: 1. Construct the following...