Consider the regular language The minimum number of states in any DFA accepting this languages is:
View worked solution
Answer: D
The regular language is defined over the alphabet as . The lengths of the strings in are of the form for non-negative integers .
Using the Frobenius coin problem, the largest integer that cannot be expressed as is: Thus, all strings of length belong to . Let us list the membership of in for :
- :
- :
To find the minimum number of states in the DFA, we determine the equivalence classes of the Myhill-Nerode relation. Let represent the state reached after reading a string of length for :
- are accepting states.
- are non-accepting states.
Thus, there are exactly states in the minimal DFA.
Free practice · Your answers on this page are not saved.
