Question

In: Advanced Math

Construct a TM that computes the function: f(x) = 2x. (first give a brief outline, then...

Construct a TM that computes the function: f(x) = 2x. (first give a brief outline, then show how it works for x=11 (in unary system, not eleven) using instantaneous description.

Solutions

Expert Solution

A Turing machine is a mathematical model of computation that defines an abstract machine, which manipulates symbols on a strip of tape according to a table of rules.Despite the model's simplicity, given any computer algorithm, a Turing machine capable of simulating that algorithm's logic can be constructed.The machine operates on an infinite memory tape divided into discrete "cells". The machine positions its "head" over a cell and "reads" or "scans" the symbol there. Then, as per the symbol and its present place in a "finite table"[7] of user-specified instructions,

A Turing machine M is: Q,

a set of internal states. Σ,

the input alphabet. Γ,

tape alphabet, Σ ⊂ Γ, ✷ ∈ Γ − Σ.

δ : Q × Γ → Q × Γ × {L, R}

q0 ∈ Q, the initial state.

F ⊆ Q, the final states.

  • (states);
  • (tape alphabet symbols);
  • (blank symbol);
  • (input symbols);
  • (initial state);
  • (final states);
  • see state-table below (transition function).

Initially all tape cells are marked with .

Behavior of Turing machine M on input w Initial state q0 , tape w, blanks around w, read-write head at first symbol. Repeatedly: Read-write head reads tape symbol. Halt if no δ for current state, symbol. Read-write head writes tape symbol. Read-write head moves left or right. New state given by δ Accept if M halts in a final state

Sample State Diagram for Tuning Machine:

Next is a TM that computes f(x) = 2x, where x is a positive integer represented in unary notation,

e.g., 5 is represented as 11111.


Related Solutions

Consider the root of function f(x) = x 3 − 2x − 5. The function can...
Consider the root of function f(x) = x 3 − 2x − 5. The function can be rearranged in the form x = g(x) in the following three ways: (a) x = g(x) = x3 − x − 5 (b) x = g(x) = (x 3 − 5)/2 (c) x = g(x) = thirdroot(2x + 5) For each form, apply fixed-point method with an initial guess x0 = 0.5 to approximate the root. Use the error tolerance = 10-5 to...
For the following exercises, graph the transformation of f(x) = 2x. Give the horizontal asymptote, the domain, and the range. f(x) = 2x − 2
For the following exercises, graph the transformation of f(x) = 2x. Give the horizontal asymptote, the domain, and the range.f(x) = 2x − 2
What is the leading coefficient of the polynomial function f(x) = 2x+x³+4?
What is the leading coefficient of the polynomial function f(x) = 2x+x³+4?  
1. Use the derivative function, f'(x)f′(x), to determine where the function f(x)=−2x^2+14x−8 is increasing. 2.Use the...
1. Use the derivative function, f'(x)f′(x), to determine where the function f(x)=−2x^2+14x−8 is increasing. 2.Use the derivative function f'(x)f′(x) to determine where the function f(x)=2x^3−27x^2+108x+13 is increasing.   3.Use the derivative function f'(x)f′(x) to determine where the function f(x)=2x^3−27x^2+108x−12 is decreasing. 4.Find each value of the function f(x)=−x^3+12x+9 where the line tangent to the graph is horizontal. x=
Analyze the function given by f(x) = (2x − x^2 )e^x . That is: find all...
Analyze the function given by f(x) = (2x − x^2 )e^x . That is: find all x- and y-intercepts; find and classify all critical points; find all inflection points; determine the concavity; find any horizontal or vertical asymptotes. Finally, use this information to graph the function.
For the following exercises, determine whether or not the given function f is continuous everywhere....f(x) = 2x + 5/x
For the following exercises, determine whether or not the given function f is continuous everywhere. If it is continuous everywhere it is defined, state for what range it is continuous. If it is discontinuous, state where it is discontinuous.f(x) = 2x + 5/x
Find f(x) for the following function. Then find f(6), f(0), and f(-7). f(x)=-2x^2+1x f(x)= f(6)= f(0)=...
Find f(x) for the following function. Then find f(6), f(0), and f(-7). f(x)=-2x^2+1x f(x)= f(6)= f(0)= f(-7)=
Discrete Math Problems: From the below algorithm (linear search) construct the function f(n) which computes the...
Discrete Math Problems: From the below algorithm (linear search) construct the function f(n) which computes the number of steps the algorithm executes for a list of n integers and compute O(f) using the definition                     ALGORITHM 2 The Linear Search Algorithm.                 procedure linear search(x: integer, a1, a2,…, an: distinct integers)                 i := 1                 while (i ≤ n and x ≠ ai)                i := i + 1                if i ≤ n then location := i               ...
f(x)=〖2x〗^3-cosx/5+2e^(-x) given of f(x) function,    a-Fill the table f(x) column using calculator f(x) for given...
f(x)=〖2x〗^3-cosx/5+2e^(-x) given of f(x) function,    a-Fill the table f(x) column using calculator f(x) for given x values.    b-After all calculation of table find f(1,3) Neville’s Method approximation x0=1,2 and x1=1,4    c-Find f(1,3) Neville’s Method approximation x0=1,2 x1=1,4 and x3=1,5 Tell which result is more reliable and precise in case b, and c. Why?
The graph of f(x) = sin(2x)/x is shown in Figure 20. Is the function f(x) continuous at x = 0? Why or why not?
The graph of f(x) = sin(2x)/x is shown in Figure 20. Is the function f(x) continuous at x = 0? Why or why not?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT