wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following language:

L={xϵ{a,b}numberofasinxisdivisibleby2butnotdivisibleby3}

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}numberofasisdivisibleby2butnotdivisibleby3} is 6 states as shown below:

(or) alternatively it can be designed by taking a product automata of

L={xϵ{a,b}numberofasdivisibleby2} and L2={xϵ{a,b}numberofasnotdivisibleby3} as shown below:


Minimum DFA for L1:


Minimum DFA for L2:

Product automata L1L2 having six states, shown below:

Which is same as our directly designed machine with 6 states.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Evolutionary Relationships_Tackle
Watch in App
Join BYJU'S Learning Program
CrossIcon