





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































































Right-linear grammars and regular languages Chomsky normal form (CNF) CFG PDA Generalized PDA’s
Acceptance by Empty Stack Pure Push and Pop machines (PPP) PDA CFG
Smaller classes Right-linear grammars Deterministic PDA’s Larger classes Context Sensitive Grammars
x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
x y z
x y z x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
x y z x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
x y z x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
x y z x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
x 0 x | 1y y 0 x | 1z z 0 x | 1z | e
DEF: A right-linear grammar is a CFG such that every production is of the form A uB, or A u where u is a terminal string, and A,B are variables.
THM: If N = M = (Q, S, d, q 0 , F ) is an NFA then there is a right-linear grammar G (N ) which generates the same language as N. Proof.
0
1
2 becomes the production
1
2
Proof. Above shows that all regular languages are