View worked solution
Answer: 3
The given regular expression is , which represents the language of all binary strings over that end with the substring "".
To find the number of states in the minimal DFA, we can define the states based on the longest suffix of the input read so far that matches a prefix of "":
- State (Start State): The string read so far does not end with '' or ''.
- State : The string read so far ends with ''.
- State (Accepting State): The string read so far ends with ''.
The transition table for these states is as follows:
| State | Input | Input |
|---|---|---|
| (Accepting) | ||
Minimality Verification:
- State is an accepting state, whereas and are non-accepting states. Thus, is distinguishable from both and .
- States and are distinguishable because on input , state transitions to the accepting state , while state transitions to the non-accepting state .
Since all states are pairwise distinguishable, the minimal DFA has exactly states.
Free practice · Your answers on this page are not saved.
