GATE CS 2015, set 2 · Question 46 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Which of the following languages is/are regular?
L₁: {wxw^R | w, x ∈ {a, b}^* and |w|, |x| > 0}, w^R is the reverse of string w
L₂: {aⁿ bᵐ | m ≠ n and m, n ≥ 0}
L₃: {aᵖ b^q cʳ | p, q, r ≥ 0}
- (A) L₁ and L₃ only
- (B) L₂ only
- (C) L₂ and L₃ only
- (D) L₃ only
Answer
Answer (A)
Answer from the official GATE CS 2015 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes