0% found this document useful (0 votes)
467 views7 pages

Turing Machine

The document summarizes the key components and concepts of a Turing machine. It discusses: 1) A Turing machine consists of an infinite tape divided into cells, a read/write head that can move left and right, and a finite control unit to direct the head. It can simulate any algorithm and is used to define computable functions. 2) The tape contains the input symbols and blank symbols, the head reads/writes symbols and moves left/right, and the control unit determines the head's behavior based on internal states. This allows the machine to perform computational steps. 3) Turing machines can have variations like multiple tapes, dimensions, heads, and can be deterministic or nondeterministic. The
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
467 views7 pages

Turing Machine

The document summarizes the key components and concepts of a Turing machine. It discusses: 1) A Turing machine consists of an infinite tape divided into cells, a read/write head that can move left and right, and a finite control unit to direct the head. It can simulate any algorithm and is used to define computable functions. 2) The tape contains the input symbols and blank symbols, the head reads/writes symbols and moves left/right, and the control unit determines the head's behavior based on internal states. This allows the machine to perform computational steps. 3) Turing machines can have variations like multiple tapes, dimensions, heads, and can be deterministic or nondeterministic. The
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Turing Machine

Turing machine:
Turing Machine was invented by Alan Turing in 1936 and it is used to accept Recursive Enumerable
Languages (generated by Type-0 Grammar).
A Turing machine consists of a tape of infinite length on which read and writes operation can be
performed. The tape consists of infinite cells on which each cell either contains input symbol or a special
symbol called blank. It also consists of a head pointer which points to cell currently being read and it can
move in both directions.
It consists of 3 components

1.Input tape 2. Read head 3. Control unit

Input tape:

The tape is divided into number of cells each cell contains only one input symbol from input
alphabet. The un empty tape is filled with blank characters(B).

Read head:

It is used for communication between input tape ad control unit. In a single step tape head read a
symbol, replace w other symbol and position itself to move left or right ot no move.

Control unit:

It is used to determine reading from input tape or writing into the tape. It contains finite set of
states Q. the states are divided into

1. Initial state: TM starts operation. It is denoted by q0.


2. Halt state: In which TM slopes all the further operations.
Both the halt state and the initial stare cannot be same.
Formal definition of Turing machine:
A Turing Machine is a 7-tuple (Q, Σ, T, δ, q0, B, F) where Q, Σ, Γ are all finite sets and
1. Q is the set of states,
2. Σ is the input alphabet,
3. T is finite se of external symbols,
4. q0 is the start state
5. B is the blank state
6. F is the accepting state
7. δ : Q × Γ → Q × Γ × {L, R} is the transition function.

Instantaneous Description (ID):


The next move of the Turing machine is decided by the current state of the control unit, contents of the
tape and position of the Read head.
So to exibit the configuration of a TM the idea of an ID is used. In case of PDA, only the current string to
be processed is considered as information in the tape cells already scanned do not play any role in
deciding its futher moves. In case of TM, the complete string is considered because the read head of the
tape can move in both directions.

Description of Turing machine: It can be represented in 2 ways


1. State diagram 2. Transition table.
State diagram: States are represented by circles, transitions are represented by “->”.
It can be represented in different forms.
1. Form 1:

Read symbol (a) -> write symbol(b), move Left(L)


2. Form 2:

Read symbol (a) / write symbol(b), move Right(R)


3. Form 3:

q0 on (0,1,R) means on reading zero change it to 1 and right move to one position.
q0 on (1,0,R) means on reading 1 change it to zero and right move to one position.
Transition table:

Types of Turing machine:


1. Turing machines with two-dimensional tapes
2. Turing machines with multiple tapes
3. Turing machines with multiple heads
4. Turing machines with infinite tape
5. Nondeterministic Turing machines
Turing machines with two-dimensional tapes:
This is a kind of Turing machines that have one finite control, one read-write head and one two
dimensional tape. The tape has the top end and the left end but extends indefinitely to the right and
down. It is divided into rows of small squares. For any Turing machine of this type there is a Turing
machine with a one dimensional tape that is equally powerful, that is, the former can be simulated
by the latter.

This turing machine ha two finite controls


1. Read head 2. Two dimension tape
*This tape has infinite extension to right and down. It is divided into small squares formed due to
corresponding rows ad columns.
*The head of 2-D tape moves one square up, down, left or right.

Turing Machines with Multiple Tapes :

This is a kind of Turing machines that have one finite control and more than one
tapes each with its own read-write head. It is denoted by a 5-tuple < Q , , ,
q0 , > .

Turing Machines with Multiple Heads :

Here, more than one head and tape can be used with in a single tape and single control unit. There are n
heads, but in any state, only one head an move.

Turing Machines with Infinite Tape :

This is a TM that have one finite control and one tape which extends infinitely in both directions.

This modes does not provide any additional computational capabilities. This type of TM are as powerful
as one tape TM.
Nondeterministic Turing Machines:

It is similar to NFA. Nondeterministic Turing Machines allows more than an edge leaving from
any state with the same input alphabet.

For example, the language can be shown by NDTM.

The NTH is a powerful as deterministic Turing machine.

Offline Tm:

It is special type of multi tape TM. The tape of this machine is read only. The tape consists of finite length
and marker $ on right and C on the Left. It cannot move outside position terminated by $.

Church’s Thesis:

The statement “All the functions which can be defined by human beings can be computed by TM”
was first formulated by Alan Turing and Alonzo church in 1936.

This statement is called as “Church- Turing “ or “ Church’s Thesis” or “ Church’s hypothesis”.

Hypothesis means proposing certain facts. The computation of recursive functions can be done by
following assumptions.

1. Each elementary function is computable.


2. Let f be the computable and g be the another function which can be obtained by applying
an elementary operation to f, then g becomes computable function.

First we will prove certain problems which cannot be solved by using TM. It provides a general
principle for algorithm computation. Every partial recursive function is computable on TM.
Restricted Turing Machine (Counter Machine):

Counter machine is similar to multi stack TM, but the difference between them is that in place of
each stack there is a counter.

Counter holds non negative integers, but we can only distinguish between zero and non-zero counter. $
are used for end marks on the i/p, z0 is a non blank symbol on each tape.

Counter machine is a 5 tuples

M=(Q, Σ, δ, q0, F)

1. Q is the set of states,


2. Σ is the input alphabet,
3. q0 is the start state
4. F is the final state
5. δ transition fuction.

Counter can be incremented or decremented.

Recursive and Recursive Enumerable Languages:


1.Recursive Enumerable (RE):

RE languages or type-0 languages are generated by type-0 grammars. An RE language can be accepted or
recognized by Turing machine which means it will enter into final state for the strings of language and
may or may not enter into rejecting state for the strings which are not part of the language. It means TM
can loop forever for the strings which are not a part of the language. RE languages are also called as
Turing recognizable languages.

2. Recursive Language (REC):

A recursive language (subset of RE) can be decided by Turing machine which means it will
enter into final state for the strings of language and rejecting state for the strings which are
not part of the language. e.g.; L= {anbncn|n>=1} is recursive because we can construct a turing
machine which will move to final state if the string is of the form anbncn else move to non-
final state. So the TM will always halt in this case. REC languages are also called as Turing
decidable languages.

Properties of Recursive Languages:


 Union: If L1 and If L2 are two recursive languages, their union L1∪L2 will also be recursive because if TM halts for L1 and halts for L2, it will also halt for L1∪L2.

 Concatenation: If L1 and If L2 are two recursive languages, their


concatenation L1.L2 will also be recursive.
 Kleene Closure: If L1is recursive, its kleene closure L1* will also be recursive.
 Intersection and complement: If L1 and If L2 are two recursive languages,
their intersection L1 ∩ L2 will also be recursive.

Universal Turing Machine:

A Turing Machine is the mathematical tool equivalent to a digital computer. It was


suggested by the mathematician Turing in the 30s, and has been since then the
most widely used model of computation in computability and complexity theory.

The model consists of an input output relation that the machine computes. The input is
given in binary form on the machine's tape, and the output consists of the contents of
the tape when the machine halts.

What determines how the contents of the tape change is a finite state machine (or
FSM, also called a finite automaton) inside the Turing Machine. The FSM is
determined by the number of states it has, and the transitions between them.

At every step, the current state and the character read on the tape determine the next
state the FSM will be in, the character that the machine will output on the tape
(possibly the one read, leaving the contents unchanged), and which direction the
head moves in, left or right.

The problem with Turing Machines is that a different one must be constructed
for every new computation to be performed, for every input output relation.

This is why we instroduce the notion of a universal turing machine (UTM), which
along with the input on the tape, takes in the description of a machine M. The UTM
can go on then to simulate M on the rest of the contents of the input tape. A universal
turing machine can thus simulate any other machine.

You might also like