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

Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?

A DFA with two states. The left state is the start state, marked by an incoming arrow, and is non-accepting. It has a self-loop labelled 0. The right state is accepting, drawn as a double circle, and has a self-loop labelled 0. An upper arc labelled 1 goes from the left state to the right state. A lower arc labelled 1 goes from the right state back to the left state.
  1. (A) 0^*1(0+10^*1)^*
  2. (B) 0^*(10^*11)^*0^*
  3. (C) 0^*1(010^*1)^*0^*
  4. (D) 0(1+0^*10^*1)^*0^*
Answer

Answer (A)

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