663 views

1 Answer

Best answer
9 votes
9 votes
  • For binary strings divisible by 2 we need to check if the last char from right is a 0.
  • For binary strings divisible by 4= 2 2 ,we need to check if the last char from right is a 00.
  • ... ......
  • For binary strings divisible by 16= 2 4, we check if the last char from right is a 0000

So, we need 5 states for counting 4 zeros on right.

selected by
Answer:

Related questions

0 votes
0 votes
2 answers
1
aditi19 asked Dec 14, 2018
1,546 views
Given following NFAfind the minimal equivalent DFA
0 votes
0 votes
0 answers
2
Harshitha 123 asked Jun 12, 2018
414 views
How many states will be present in L={w/(n(a) + (2 n(b)mod 3)) lessthan 2} ? (I got 7 states is that correct)
1 votes
1 votes
1 answer
3
kislaya Pant asked May 8, 2018
1,108 views
Ques:- What are the number of final states in minimal DFA, where ∑= {a, b}, if every string starts with “aa” and length of the string is not congruent to 0 (mod 4)....