2,491 views

1 Answer

1 1 vote
Binary number interpreted as integer and you want  0 modulo 5, then we need 5 states. But as question is saying starting from 1, we add a new state which on input 1 will point to remainder 0 state of our mod 5 dfa and on 0 will go to dead state. So total 7 states.(5 states for mod 5 counting and 2 more for handling starting with 1 condition. )
• edited by
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.3k
1.3k views
1 1 vote
1 1 answer
82
82 views
GO Classes asked Sep 23
82 views
Suppose $L_1$ and $L_2$ are both nonregular languages.Which statement about $L_1\cup L_2$ is correct?It must be nonregular. It must be regular. It may be regular or nonre...
1 1 vote
1 1 answer
75
75 views
GO Classes asked Sep 23
75 views
Let $L$ be a nonregular language.What can always be concluded about $L^R$?$L^R$ is regular. $L^R$ is nonregular. $L^R$ may be regular or nonregular. Nothing can be conclu...
0 0 votes
0 0 answers
176
176 views
lambodar_pal asked Jul 27
176 views
The intersection of a context free language and a regular languagea)need not be regularb)need not be context freec) is always regulard) is always context free