GATE Computer ScienceModerateGATE CS (PYQ pattern)

To show that L = { aⁱbʲ : i > j } is not regular by the pumping lemma with pumping length p, which string and pumping choice give a valid contradiction?

  1. A. w = aᵖ⁺¹bᵖ, pump down (i = 0)
  2. B. w = aᵖbᵖ, pump up (i = 2)
  3. C. w = a²ᵖbᵖ, pump up (i = 2)
  4. D. w = aᵖbᵖ⁺¹, pump down (i = 0)

Correct answer: A. w = aᵖ⁺¹bᵖ, pump down (i = 0)

w = aᵖ⁺¹bᵖ is in L, y consists of a's within the first p symbols, and removing y leaves at most p a's against p b's, so i > j fails. aᵖbᵖ and aᵖbᵖ⁺¹ are not in L; with a²ᵖbᵖ, pumping up keeps i > j (y = a).

More Theory of Computation questions

Exams that ask this topic