Pushdown Automaton: CFL and the pumping lemma
Pushdown Automaton: CFL and the pumping lemma
Pushdown Automaton: CFL and the pumping lemma
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