Chomsky Hierarchy.ppt

988 views 28 slides Oct 28, 2022
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

chomsky hierarchy


Slide Content

CSE322
The 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

Same as Turing Machines with one difference:
the input string tape space
is the only tape space allowed to use
Linear-Bounded Automata:

[ ] a b c d e Left-end
marker
Input string
Right-end
marker
Working space
in tape
All computation is done between end markers
Linear Bounded Automaton (LBA)

We define LBA’s as NonDeterministic
Open Problem:
NonDeterministic LBA’s
have same power as
Deterministic LBA’s ?

Example languages accepted by LBAs:}{
nnn
cbaL }{
!n
aL
LBA’s have more power than PDA’s
(pushdown automata)
LBA’s have less power than Turing Machines

Unrestricted Grammars:
Productionsvu
String of variables
and terminals
String of variables
and terminals

Example unrestricted grammar:dAc
cAaB
aBcS


A language is Turing-Acceptable
if and only if is generated by an
unrestricted grammarL L
Theorem:

Context-Sensitive Grammars:
and:|||| vu
Productionsvu
String of variables
and terminals
String of variables
and terminals

The language }{
nnn
cba
is context-sensitive:aaAaaaB
BbbB
BbccAc
bAAb
aAbcabcS
|
|




A language is context sensistive
if and only if
it is accepted by a Linear-Bounded automatonL
Theorem:
There is a language which is context-sensitive
but not decidable
Observation:

Non Turing-Acceptable
Turing-Acceptable
decidable
Context-sensitive
Context-free
Regular
The Chomsky Hierarchy

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
Tags