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.

Usage of <strong>the</strong> <strong>lemma</strong> - Example<br />

• We use <strong>the</strong> <strong>pumping</strong> <strong>lemma</strong> to prove that <strong>the</strong><br />

language L={a n b n c n |n0} is not context-free.<br />

Proof:<br />

• Assume, by contradiction, that L is context-free<br />

thus satisfying <strong>the</strong> <strong>lemma</strong>.<br />

• Let p be <strong>the</strong> <strong>pumping</strong> length for L.<br />

• We select <strong>the</strong> string w= a p b p c p . wL <strong>and</strong> |w|>p,<br />

so it can be pumped.<br />

45

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

Saved successfully!

Ooh no, something went wrong!