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?
- A. w = aᵖ⁺¹bᵖ, pump down (i = 0)
- B. w = aᵖbᵖ, pump up (i = 2)
- C. w = a²ᵖbᵖ, pump up (i = 2)
- 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
- Consider these problems about a Turing machine M (given as input): I. Does M ever move its head to the left when started on the blank…
- Which of the following problems is decidable?
- Which of the following problems is undecidable?
- Let TOTAL = { ⟨M⟩ : the Turing machine M halts on every input }. Which statement about TOTAL is correct?
- Let A = { ⟨M⟩ : the TM M halts on at least one input } and B = { ⟨M⟩ : M halts on no input }. Which statement is correct?
- Which of the following statements about many-one reductions A ≤ B are correct? I. If B is decidable then A is decidable. II. If A is…