GATE CS 2019 · Question 41 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Which one of the following languages over Σ = {a, b} is NOT context-free?

  1. (A) {ww^R | w ∈ {a,b}^*}
  2. (B) {waⁿbⁿw^R | w ∈ {a,b}^*, n ≥ 0}
  3. (C) {waⁿw^Rbⁿ | w ∈ {a,b}^*, n ≥ 0}
  4. (D) {aⁿbⁱ | i ∈ {n, 3n, 5n}, n ≥ 0}
Answer

Answer (C)

Answer from the official GATE CS 2019 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes