Pumping lemma for regular languages

December 4, 2026 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-501-CBGS Theory of Computation June 2020 Solved Paper

← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper

Question

State Pumping Lemma and show that L = {aⁱbⁱ | i ≥ 1} is not a regular language.

Asked in: CS-501 | June 2020 | 2(a)

Write a short note on Pumping Lemma.

Asked in: CS-501 | December 2020 | 8(v)

Answer

If L is regular, there exists p≥1 such that every w∈L of length at least p can be split w=xyz with |xy|≤p, |y|≥1 and xyⁱz∈L for every i≥0. Proof: a DFA with p states visits p+1 states while reading the first p symbols, so some state repeats. The nonempty segment y traverses a loop that can be repeated or skipped. To show nonregularity of L={aⁿbⁿ:n≥1}, choose w=aᵖbᵖ. Every allowed split has y=aᵏ with k≥1. Pumping i=0 gives aᵖ⁻ᵏbᵖ, outside L, contradiction. The lemma is a necessary condition for regularity, not a general sufficient test.

← RGPV CS-501-CBGS Theory of Computation June 2020 Solved Paper

← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion