in Theory of Computation
411 views
2 votes
2 votes
Consider the following language over $\sum$ = {0, 1}

L = {w | w $\epsilon \sum$ * and |w| is divisible by 2 and not by 4}

How many sates will min-DFA accepting L will have?
in Theory of Computation
411 views

4 Comments

@Kabir5454

no bro 

4 is given.

1
1
Correct.

Length of strings accepted are {2,6,10,14,18,....4n-2,......}

So if we notice carefully every length of the string gives us remainder of 2 while divide by 4.

So according to myhill nerode theorem it has 4 equivalent state where the state where lenght mod 4=2 will be the final state.
3
3

@Kabir5454 Yes, that’s the correct reason.

Thanks.

0
0

1 Answer

0 votes
0 votes
Best answer

only  4 state

selected by

Related questions