TM and AUTOMATA
TM and AUTOMATA
G.SELVAVINAYAGAM
PARK COLLEGE OF ENGINEERING AND TECHNOLOGY
AUTOMATA
• Abstract Model
• Labeled Directed Graph
• Consists of States and Transitions
• Used for Formal Language Processing
• 5-tuples (Q, , , q0, F)
TYPES OF AUTOMATA
• FINITE AUTOMATA
• PUSH DOWN AUTOMATA
• LINEAR BOUNDED AUTOMATA
• TURING MACHINE
GRAMMAR
• Defines Formal Language
• Gives pattern to Set of strings in Language
• Defined by 4-tuples (V, T, P, S)
V - NonTerminals
T - Terminals
P - Production / Rules
S - Start Symbol
TYPES OF GRAMMAR
• REGULAR GRAMMAR
• CONTEXT FREE GRAMMAR
• CONTEXT SENSITIVE GRAMMAR
• RECURSIVE GRAMMAR
FORMAL LANGUAGES & AUTOMATA
•Q is a set of states
Control
head
… Tape
a1 a2
The head:
cell •Reads the symbol from the cell it is pointing to, and
•Either:
•Writes a new symbol in the cell, or
•Moves one cell to the left or right
RECURSIVE LANGUAGE
&
RECURSIVELY ENUMERABLE LANGUAGE
M accepts L if for any x in L M(x) = “yes”, and for x not in L M does not halt.
If such M exists, L is called recursively enumerable language.
FIRST TURING MACHINE
Construct a Turing machine such that:
a b a a b a
THE “ERASER” TM
a a a
VARIANTS OF TM
• Enumerator
MULTI-TAPE TURING MACHINE
• A Turing Machine with several tapes
• Every multi-tape Turing machine has an equivalent
single tape Turing machine.
0 1 0 1 0 B ......
M
a a a B ............
b aB ............
S # 0 1 0 1 0 # a a a # b a #B ............
tape 1 tape 2 tape 3
NON-DETERMINISTIC TURING
MACHINE
Control
0 0 1 0 … Work tape
HILBERT’S PROBLEM
Hilbert’s problems:
• In 1970, work of Martin Davis, Hilary Putnam, and Julia Robinson, Showed that
no algorithm exists for testing whether a polynomial Equation has integral roots.
TM CONSTRUCTION
1. TM for f(x) = x + 1