GATE CS 2012 · Question 12 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

What is the complement of the language accepted by the NFA shown below?
Assume Σ = {a} and ε is the empty string.

NFA with three states arranged left to right. The left state is the start state (incoming arrow from nowhere) and is not accepting. There is an edge labelled 'a' from the left state to the middle state, which is an accepting state (double circle). There is an edge labelled 'ε' from the middle state to the right state, which is not accepting. There is a curved edge labelled 'ε' from the right state back to the left (start) state. No other edges.
  1. (A) ∅
  2. (B) {ε}
  3. (C) a^*
  4. (D) {a, ε}
Answer

Answer (B)

Answer from the official GATE CS 2012 answer key.

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