edited by
34,290 views
93 votes
93 votes

Consider the regular language $L=(111+11111)^{*}.$ The minimum number of  states in any DFA accepting this languages is:

  1. $3$
  2. $5$
  3. $8$
  4. $9$
edited by

8 Answers

1 votes
1 votes

We can construct the NFA for the language and then construct equivalent DFA. From that we get 9 states for DFA.

Solution

0 votes
0 votes

Hi, this is how I solved this post. Please tell me where I was wrong?

 

0 votes
0 votes

L = (111 + 11111)* generates the strings {ϵ, 111, 11111, 111111, 11111111, …….}
i.e. it generates any string which can be obtained by repetition of three and five 1’s (means length 3, 6, 8, 9, 10, 11, …}
The DFA for the L = (111 + 11111)* is given below.

–3 votes
–3 votes

1 state in minimal state DFA if only 1 is given as the lone alphabet in the language .if any other alphabets are also given ,then the minimal DFA would have 2 states,one for accepting any number of 1's and other for rejecting other alphabets.

Answer:

Related questions