Let be an arbitrary regular language accepted by a minimal with states. Which one of the following languages must necessarily be accepted by a minimal with states?
View worked solution
Answer: C
To find which language must necessarily be accepted by a minimal DFA with exactly states, let us analyze the properties of the complement operation on DFAs.
1. Complement of a Language ()
Let be the minimal DFA accepting with states.
The complement language is accepted by the DFA , which is obtained simply by swapping the accepting (final) and non-accepting states of .
Proof of Minimality:
- Suppose is not minimal, meaning there exists a DFA accepting with fewer than states.
- By swapping the final and non-final states of , we would obtain a DFA accepting with fewer than states.
- This directly contradicts the assumption that the minimal DFA for has states.
Thus, the minimal DFA for must have exactly states.
2. Counterexamples for Other Options
Let . The minimal DFA for has state (a single accepting state with self-loops on and ).
- Option A (): The language is . The minimal DFA for this language requires at least states to track and reject the string "01". Thus, the number of states changes.
- Option B (): If we choose , the minimal DFA has state (a non-accepting state with self-loops). But , which requires states in its minimal DFA.
- Option D (): If we choose over , the minimal DFA has states (start, accept, and dead state). The language requires states in its minimal DFA.
Therefore, only option C is guaranteed to have exactly states in its minimal DFA.
Free practice · Your answers on this page are not saved.
