4,798 views
1 votes
1 votes
The number of states in a minimal DFA that accepts set of all strings beginning with 1 that, when interpreted as a binary integer is a multiple of 5 over the alphabet={0,1}. For example, strings 101, 1010 and 1111 are in the language?

1 Answer

Best answer
2 votes
2 votes

Make DFA for divisible by 5 and exclude '0' string from that DFA  So based on this minimal DFA will have 7 states and looks like below-

Approach is-

in divisible by 5 DFA there will be 5 equivalence classes{0,1,2,3,4} and as mentioned in question strings are start with 1 so we need to reject all string with 0.

selected by

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
1 answer
4