Chomsky Hierarchy
Chomsky Hierarchy
Lecture #16
Applications of Automata
• TM- Real Life Implementation ,Software
Implementation
• LBA- Generic Programming, Parse Trees
• PDA-Online Tracking processing
system,Top Down Parsing in LL Grammer
• FA-Finite State Programming,UML State
Diagrams, Acceptors and Recoganizers,
Lexical Analyzer
Recursive and Enumerable Sets
Linear-Bounded Automata:
Input string
[ a b c d e ]
Working space
Left-end Right-end
in tape
marker marker
Open Problem:
NonDeterministic LBA’s
have same power as
Deterministic LBA’s ?
Example languages accepted by LBAs:
n n n n!
L {a b c } L {a }
Productions
uv
S aBc
aB cA
Ac d
Theorem:
A language L is Turing-Acceptable
if and only if L is generated by an
unrestricted grammar
Context-Sensitive Grammars:
Productions
uv
S abc | aAbc
Ab bA
Ac Bbcc
bB Bb
aB aa | aaA
Theorem:
Observation:
There is a language which is context-sensitive
but not decidable
The Chomsky Hierarchy
Non Turing-Acceptable
Turing-Acceptable
decidable
Context-sensitive
Context-free
Regular
LANGUAGES AND AUTOMATON
Questions
Prove it as
Left Linear Grammer vs Right Linear
Grammer
Left Linear Grammer vs Right Linear
Grammer
• Regular language works on right linear
• Whereas CFG and CSG can work on left
linear