GATE CS 2014, set 3 · Question 46 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the following languages over the alphabet Σ = {0,1,c}:
L₁ = {0ⁿ 1ⁿ | n ≥ 0}L₂ = {wcwʳ | w ∈ {0,1}^*}L₃ = {wwʳ | w ∈ {0,1}^*}
Here, wʳ is the reverse of the string w. Which of these languages are deterministic Context-free languages?

  1. (A) None of the languages
  2. (B) Only L₁
  3. (C) Only L₁ and L₂
  4. (D) All the three languages
Answer

Answer (C)

Answer from the official GATE CS 2014 answer key.

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