Question
Official answer and solution
- Official answer
- B
- From
- Official GATE 2012 answer key
Solution
Determine the language accepted by the NFA by tracing paths from start state to final state, then take its complement over the alphabet.
Let us trace the given NFA (states named , , from left to right):
- Start state is .
- There is a transition .
- State is the only accepting (double circle) state.
- There is an -transition .
- There is a backward -transition .
-
Language accepted by the NFA:
- To reach the accepting state from , a path must consume at least one '' via .
- Because is not an accepting state and the only way to reach is by reading an '', the empty string is not accepted.
- From the automaton can return to via , allowing another '' to be consumed.
- Thus, any string containing one or more ''s is accepted:
-
Complement of :
The alphabet is . The universal language is .
The complement of is:
This matches option (B).
Final answer
B
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2012 Computer Science and Information Technology (CS)
- Question
- 12 of 65, printed as CS Q.12
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.