in Theory of Computation edited by
1,050 views
2 votes
2 votes
The minimum number of states in a DFA that recognizes the language L = (000 + 0000)* over the alphabet {0}.
in Theory of Computation edited by
by
1.1k views

4 Answers

8 votes
8 votes
Best answer

7 states

selected by
by

1 comment

you never makes starting state ha ?
1
1
2 votes
2 votes
0,3,6,9,12,15 no of 0's accepted by  (000)*

0,4,8,12,16,20 no of 0's accepted by (0000)*

Union of these two we will get..

0,3,4,6,7,8,9,10,11 (by union of above defined two)

After 6 zeros if we add any no of 0's always accepted by the given language..

So it requires 6+1 = 7 minimum no.of states...
2 votes
2 votes

Number of Final state =4

Number of Non-Final state =3

Minimum Number of states=7

edited by

4 Comments

but we can make it by a combination of both.

For 7 0's first take 4 0's and the after 3 0's   or you can  take first 3 0's and after you can take 4 0's

$0000000 = $ $\left \{ 000 \right \}\cup \left \{ 0000 \right \}$

for 9 0's you can take 000 3 times

${000000000}=\left \{000 \right \}\cup \left \{ 000 \right \} \cup \left \{ 000 \right \}$

 

For 11 0's take 0000 2 times and 000 one time

${00000000000}=\left \{ 0000 \right \}\cup \left \{ 0000 \right \} \cup \left \{ 000 \right \}$
0
0
Thanks. But then why doesn't DFA has a final state as 5th one??Since if there is a self-loop then to all values >=5 can be included in there??
0
0
can you generate string 00000 from language $(000+0000)^{*}$??
0
0
–1 vote
–1 vote
6 states 3 final states and 3 non-final state

first ,fourth and fifth are final state and second third and sixth state  are non- final

3 Comments

edited by
Number of final state =4 Right?
0
0
can you please design its state diagram ?.. because ans given is 7 .
0
0

vijaycs07 i did msitake. it should be 7.

checck my dfa.

1
1
Answer:

Related questions