States |
a |
b |
q1 |
3 |
3 |
q2 |
3 |
3 |
q3 |
3 |
3 |
=3^6 =729
now, there is 2^3 combination in which final state can be chosen.
and initial state can be any of three i.e 3 ways to select initial state.
total=729 * 2^3 * 3 = 17496 dfa's
In general, when
n = no. of states
m= no. of input alphabets
total no. of dfa's = n^mn * 2^n * n