Turing Machine
Turing Machine
Introduction
A Turing machine (TM) is a finite-state
machine with an infinite tape and a tape head
that can read or write one tape cell and can
move left or right.
It normally accepts the input string, or
completes its computation, by entering a final
or accepting state.
Tape is used for input and working storage
THE TURING MACHINE MODEL
Formal Definition of Turing Machine
Turing Machine is represented by-
M=(Q, Σ, Γ,δ,q0,b,F),
Where
Q is the finite state of states
Σ is the set of input symbols, not including b
Γ is the finite set of allowable tape symbols
δ is the next move function (transition function), a
mapping from
Q × Γ-> Q × Γ ×{L,R}
q0 in Q is the start state,
b a symbol of Γ is the blank, b does not belong to Σ
F is the set of final states.
Representation of Turing Machine
Turing machine can be represented by the
following ways:
Instantaneous Description
Transition Table
Transition Diagram
Now we will see how to design State Transition Diagram of Turing Machine for above problem:
Turing machine can work as Transducer as well as Acceptor.
Finite Control
Tape 1
Tape 2
Tape 3
.
18
MULTITAPE TURING MACHINES (contd..)
Every language accepted by a multitape TM is
acceptable by some single-tape TM (that is,
the standard TM).
Suppose a language L is accepted by a k-tape TM
M.
We simulate M with a single-tape TM with 2k
tracks.
The second, fourth, ..., (2k)th tracks hold the
contents of the k-tapes. The first, third, ..., (2k - l)th
tracks hold a head marker (a symbol say X) to
indicate the position of the respective tape head.
Example: case k =2
Multi-tape TM Simulated by Standard
TM
NON DETERMINISTIC TURING MACHINES
It is similar to DTM except that for any input symbol and
current state it has a number of choices
q0w
ID-1 ID-2
Halting Problem:
If TM answers YES for string belonging to language.
But for string not belonging to language TM can
either answer NO or it could go into infinite loop.
Definition**
1. **Undecidability**:
PCP is undecidable for arbitrary lists \( A \) and \( B \). This means
there is no general algorithm that can solve PCP for all instances.
---
Applications