retagged by
746 views
0 votes
0 votes

Find the number of states in the minimal DFA over sigma = {0,1} which accepts strings when interpreted as a binary number is divisible by 2.

MY ANSWER :



 

.

But the problem here is it also accepts epsilon . Epsilon is not divisible by 2 right ??? please clear this ...

retagged by

1 Answer

0 votes
0 votes

It will be explicitly mentioned in the GATE exam if epsilon have to be included or not. 

In the question asked by you, according to me we dont need to consider the epsilon case as epsilon means "We are not giving anything to machine" If we are not giving anything and (NOT GIVING ANYTHING) divided by 2 is ABSURD....

 (see link below)

http://stackoverflow.com/questions/15330027/regular-expression-for-binary-numbers-divisible-by-3

But according to the below link, 

https://gateoverflow.in/10366/dfa-to-accept-a-binary-number-divisible-by-2

We should consider epsilon.

So i think it will be explicilty mentioned in the exam. :)

Related questions

0 votes
0 votes
0 answers
1
RahulVerma3 asked Apr 2
54 views
Is this the correct Turing machine for the language $0^n 1^n0^n$?assuming $ at the end and begining of the input tape
0 votes
0 votes
0 answers
2
baofbuiafbi asked Nov 14, 2023
161 views
Prove the language L={(G,H)|G is a CFG, H is a DFA, and L(G)∩L(H)=∅} is undecidable.