Class: CSE 103 Subject: computer-science Date: 2026-02-04 Teacher: **Prof.
Pushdown Automata, Conversion of CFG to PDA and Reverse Conversion
CFG
Def: a context free grammar(CGF) is a 4-tuple()
- : finite set of variables
- : finite set of terminal symbols
- : finite set of rules(rule form )
- : start variable
For write:
- if can go from to v one substitution step in
- if can go from u to v with some number of substitution steps in G
Example

Ambiguity

- both and recognize the same language, i.e. .
- However, is an ambiguous CFG and is ambiguous
- This is what the parse tree for would look like:
