3,910 views

3 Answers

Best answer
6 votes
6 votes

Answer: 189

Let us consider the three states to be 1, 2 and 3

Since, it is given "designated initial state", so let us assume the initial state to be 1

Now, we want to construct a DFA which accepts empty language which means $\varnothing$

Please note: A DFA which accepts nothing does not even accept $\varepsilon$. 

For example, below DFA has initial state as final state, so it accepts atleast $\varepsilon$. Hence it is not a DFA which accepts empty language. Empty language means nothing is accepted.

So, we cannot mark initial state as final state for our DFA. Hence, we have to choose one state as final - from state 2 or state 3. Let us choose 2 as final state.

Please note:

  • Since we are given designated final state, we have to have final state, So choosing no state as final is not possible.
  • Marking both 2 and 3 as final also not possible as we question says "a final state"

Now, let us decide about transitions from states.

  • When state 2 is marked as final, there should be no transitions from state 1 to state 2 otherwise those strings would be accepted. Remember we want to accept nothing

         So, there would be  $3^{4}$  +  $3 * 3* 2*2$ + $3 * 3 * 2* 2 $ + $3 * 3 * 2* 2$

So, there would be  $81 + 36 + 36 + 36$ which is $189$ possibilities

So total 189 DFAs possible

Special thanks to Ahwan for pointing out my errors :)

edited by
2 votes
2 votes

3 States . Initial & final states are designated.

2 votes
2 votes

Answer:144

  a b
->x x/y x/y
y x/y x/y
*z x/y/z x/y/z

2*2*2*2*3*3=144

Since we have to accept empty language,

Therefore  from x and y , we should not have any transition to z.

Related questions

33 votes
33 votes
3 answers
1
3 votes
3 votes
2 answers
2
1 votes
1 votes
1 answer
3
Kaustubh _15 asked Jul 11, 2017
1,609 views
How many DFA's can be constructed with 3 states and 2 input symbols which accept empty language?
2 votes
2 votes
2 answers
4