in Theory of Computation
1,389 views
3 votes
3 votes
What are the Number of states in minimum DFA that accepts Binary  strings when interpreted as decimal mod 12 give 0 as remainder.Also give DFA.
in Theory of Computation
1.4k views

2 Answers

3 votes
3 votes
Best answer

I m getting 5 states

  0 1

-> q0 (F)

q0            q1         
     q1 q2 q3
     q2 q1 q2
     q3 q4 q1
     q4 q0 q1
 
selected by

3 Comments

Why did you use only 5 states here ? Can you be more clear about this explanation .?
1
1

A number is divisible by 12 , if it is divisble by 3 as well as divisible by 4.

Make 2 dfas for :
1) divisibility by 3
2) divisibility by 4 :

         For divisibility by 4 , a binary number must end with '00'.

>> you can try to make product automaton & then minimize it.

1
1

Detail explanation about how to draw Transition table for this kind of questions :

Click me

2
2
0 votes
0 votes
state 0 1
>>q0(Final) q0 q1
q1 q2 q3
q2 q1 q2
q3 q4 q1
q4 q0 q1
     
     

Corrected now...Thanks to Amsar Sokt

edited by

1 comment

I m getting 5 states

  0 1

-> q0 (F)

q0            q1         
     q1 q2 q3
     q2 q1 q2
     q3 q4 q1
     q4 q0 q1

you do check..

1
1
Answer:

Related questions