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

Let M be the 5-state NFA with ε-transitions shown in the diagram below.
Which one of the following regular expressions represents the language accepted by M ?

NFA with 5 states labelled 1 to 5. State 1 is the start state (incoming arrow with no source). States 2 and 5 are accepting (double circles); states 1, 3 and 4 are non-accepting. Transitions: 1 to 2 on epsilon; 1 to 4 on epsilon; 2 to 3 on 0; 3 to 2 on 0; 3 to 5 on epsilon; 4 to 5 on 1; 5 to 4 on 1.
  1. (A) (00)^* + 1(11)^*
  2. (B) 0^* + (1 + 0(00)^*)(11)^*
  3. (C) (00)^* + (1 + (00)^*)(11)^*
  4. (D) 0⁺ + 1(11)^* + 0(11)^*
Answer

Answer (B)

Answer from the official GATE CS 2024 answer key.

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