The number of states in minimal DFA for strings starting with $ab^{2}$ and ending with $b$ over the alphabet $\left \{ a,b \right \}$ is__________.
// doubt: minimal string should be $ abb $ right?
Utkarsh Joshi your DFA is invalid for strings like $abbaabb,abbaabbb,abbbab$.
for the final state on input, $b$ self-loop is there.
5 state is required
64.3k questions
77.9k answers
244k comments
80.0k users