The minimum number of states in a DFA that accepts L is
Open in App
Solution
The minimum number of states in a DFA that accepts: L={xϵ{a,b}∗∣numberofa′sisdivisibleby2butnotdivisibleby3} is 6 states as shown below:
(or) alternatively it can be designed by taking a product automata of
L={xϵ{a,b}∗∣numberofa′sdivisibleby2} and L2={xϵ{a,b}∗∣numberofa′snotdivisibleby3} as shown below:
Minimum DFA for L1:
Minimum DFA for L2:
Product automata L1∩L2 having six states, shown below:
Which is same as our directly designed machine with 6 states.