What is the complement of the language accepted by the NFA shown below?
Assume and is the empty string.

View worked solution
Answer: B
To find the complement of the language accepted by the given NFA, we first determine the language accepted by it.
Step 1: Analyze the NFA
- The NFA starts at the initial state and requires at least one transition on symbol to reach an accepting state.
- Once in the accepting state, any number of additional 's can be read.
- Therefore, the language accepted by the NFA is:
Step 2: Find the Complement
The alphabet is given as . The set of all possible strings over this alphabet is:
The complement of the language (denoted as ) is defined as:
Thus, the complement of the language accepted by the NFA is .
Free practice · Your answers on this page are not saved.
