RTUComputer ScienceYr 2024 · Sem 42024

Q2Theory of Computation

Question

10 marks

(a) State and prove the Pumping Lemma for Context-Free Languages. (b) Use Pumping Lemma to show that L = {a^n b^n c^n | n ≥ 1} is not context-free.

Answer

Pumping Lemma for CFLs and non-CFL proof.

Pumping Lemma for CFL: , , , . For , pumping will imbalance the counts of a, b, or c, showing it's not a CFL.

Back to Paper