Turing Machine Notes
Turing Machine Notes
Construction of UTM
M
Without loss of generality, we assume the following for M:
Q = {q1, q2, ….qn} where q1=initial state and q2=Final State
τ = {σ1, σ2,,…σn} where σ represent blanks
Select an encoding on which q1 is representable by 1, q2 by 11, and so on.
Similarly, σ1 is encoded as 1, σ2 as 11, etc.
Finally, let us represent R/W head directions by 1 for L (Left) and 11 for R(Right).
The symbol 0 will be used as a separator between 1s.
With this scheme, any transition of M can be given as :
Implementation of UTM
A UTM Mu then has an input alphabet = {0, 1} and the structure of a multi-tape
multi TM.
Mu looks first at the contents of Tape 2 and Tape 3 to determine the instantaneous
description (ID) of M.
It then consults Tape1 to see what M would do with this ID.
Finally, Tape 2 and Tape 3 will be modified to reflect the result of the move.
If no transition for a given ID is formed, Mu halts as M must :
In either case, Mu behaves as M would.
If M halts, when presented with string w then Mu will halt when ppresented
resented with the
encoded M and the encoded string on its tape.
Moreover, the final string Mu .s tape will be the encoding of the string.
When M halts, Mu can tell if it is in the single accepting state and so moves to an
accepting state of its own ( or no
not).
TURING MACHINE NOTES:
Solution :
Step 1: Definition- A Turing machine is a finite automaton that can read, write, and erase
symbols on an infinitely long tape
Step 2: Tuple
Step 3: Logic
Types of palindromes:
wwR
wawR
wbwR
Solution :
Step 1: Definition- A Turing machine is a finite automaton that can read, write, and erase
symbols on an infinitely long tape
Step 2: Tuple
Step 3 : Logic