I'm confused about the following DFA problem:
Let L denote the set of all strings in $\{a, b\}^∗$ that contain abb or aab as a substring. Show that any DFA that decides L must have at least five states.
I think L can be decided in a 4 state DFA as follows:
q0 (start state):
a -> q1
b -> q0
q1:
a,b -> q2
q2:
b -> q3
a -> q0
q3 (accept state)
a,b -> q3
Note: q3 is the only accept state Why does this DFA not decide L?