Consider the language L given by the regular expression (a+b)∗b(a+b) over the alphabet {a,b}. The smallest number of states needed in a deterministic finite-state automaton (DFA) accepting L is
Open in App
Solution
The r.e is (a+b)∗b(a+b)
This is all strings whose second last bit is 'b' Minimal NFA is
Converting it into minimal DFA by subset construction algorithm, we get