recategorized by
474 views
0 votes
0 votes
No of the states in the DFA accepts all the binary strings where no of 0's are divisible by 8 or 4..

What should be the answer..3 or 4?
recategorized by

1 Answer

0 votes
0 votes
Evernumber divisible by 8 is also divisible by 4.

Q0(initial and final state) -----0----> Q1------0--->Q2----0--->Q3--

^________________________0_________________________|

On every sate, we will have a self loop for 1s.

 

So 4 states.

Related questions

1 votes
1 votes
1 answer
1
vaishali jhalani asked Nov 18, 2016
1,418 views
Why no of states in a dfa(language having binary strings whose integer equivalent is divisible by n) where n = 8,12.., are different form a standard dfa where we say that...
0 votes
0 votes
0 answers
2