Isn't the question ambiguous? It says "The minimal DFA that accepts all strings of a's and b's and ending with 'aa' " that means it includes both, in that case it will need only one state because (a+b)* is a superset of strings ending with 'aa', I think the question should be "The minimal DFA that accepts all strings of a's and b's which are ending with 'aa' " in this case 3 is the correct answer, please clarify on the conventions
Ans- 3 states.
I drew an NFA as
A on a -> A,B......A on b ->A
B on a -> c
now this NFA has 3 states
on converting to DFA = > 2n = 23 =8 states
where did i go wrong
64.3k questions
77.9k answers
244k comments
80.0k users