11.01.2015 Views

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Pumping Lemma - background<br />

• The upper occurrence of R has a larger subtree<br />

<strong>and</strong> generates vxy.<br />

• The lower occurrence of R has a smaller<br />

subtree <strong>and</strong> generates only x.<br />

• Both subtrees are generated by <strong>the</strong> same<br />

variable R.<br />

• That means if we substitute one for <strong>the</strong> o<strong>the</strong>r we<br />

will still obtain valid parse trees.<br />

S<br />

R<br />

R<br />

u v x y z<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!