let no of states are n and no of symbols are m.
nc0 + nc1 + nc2 + ....+ncn =2n
3c0(no final state) + 3c1(one final state) + 3c2(two final states) + 3c3(3 final final states) = 2^3
at every state for one input symbol there is possible 3 transition.
Transition Function |
Input( a) |
Input( b) |
State X |
3 |
3 |
State Y |
3 |
3 |
State Z |
3 |
3 |
so ans should be=2^3 * 3^6 (Fixed Initial state)
if no initial state fixed then ans should be=3 * 2^3 * 3^6
For NFA at each state having 8 possible transition (none,x,y,z,xy,yz,xz,xyz) for single input symbol
Transition Function |
input(a) |
input(b) |
State X |
8 |
8 |
State Y |
8 |
8 |
State Z |
8 |
8 |
So ans should be= 2^3 * 8^6 (Initial state is fixed)
=3 * 2^3 * 8^6 (if no initial state is fixed)
Let Total no.of states = n, Total no.of symbols =m
total no of dfs = (2n ) *( nnm)
total no.of nfa's = (2n ) * (2n)^(nm)
above result is assuming initial state is fixed.
if initial state is not fixed than multiply by no of states.