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

Let L₁ = {w ∈ {0,1}^* | w has at least as many occurrences of (110)'s as (011)'s}. Let L₂ = {w ∈ {0,1}^* | w has at least as many occurrences of (000)'s as (111)'s}. Which one of the following is TRUE?

  1. (A) L₁ is regular but not L₂
  2. (B) L₂ is regular but not L₁
  3. (C) Both L₁ and L₂ are regular
  4. (D) Neither L₁ nor L₂ are regular
Answer

Answer (A)

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