Pushdown Automaton: CFL and the pumping lemma
Pushdown Automaton: CFL and the pumping lemma
Pushdown Automaton: CFL and the pumping lemma
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Different derivations for <strong>the</strong> same<br />
CFG: EEE | E+E<br />
E0 | 1 | 2 | … | 9<br />
E<br />
parse tree<br />
leftmost<br />
derivation<br />
E<br />
E<br />
E<br />
E E E<br />
5 E E<br />
5 3<br />
E<br />
5 3<br />
2<br />
E<br />
E<br />
E<br />
E<br />
rightmost<br />
derivation<br />
E<br />
E<br />
E<br />
E<br />
2<br />
E E 2<br />
E 3<br />
2<br />
<br />
5 3<br />
2<br />
5 + 3 x 2<br />
7