Consider the regular expression times. The minimum state finite automaton that recognizes the language represented by this regular expression contains
View worked solution
Answer: B
The regular expression represents the language consisting of all binary strings of length exactly :
To recognize this language with a finite automaton, we need to track the length of the input string processed so far:
- State represents length (start state).
- State represents length .
- State represents length .
- State represents length (the only accepting state).
This transition sequence requires exactly states. Any input of length greater than cannot transition further (or leads to rejection), making states sufficient for the automaton (as an NFA or incomplete DFA).
Free practice · Your answers on this page are not saved.
