# States in DFA

174 views
If NFA has 'n' states then how DFA can have 2^n  states. Please help me in understanding how this is true.

As per my understanding every DFA is NFA then how no of states can be more in DFA than nfa

Thanks

Correction: If a NFA has $n$ states, the DFA can have at most $2^N$ states.

This is because each state of the NFA can be a part of the DFA or not - thus we have two choices for each state and $n$ such choices to make, thus giving us $2^N$ states.

selected

Every DFA is NFA.....

let us say NFA has N states

when we convert NFA to DFA

in worst case we get 2^N states in DFA

## Related questions

1 vote
1
207 views
Ques:- What are the number of final states in minimal DFA, where ∑= {a, b}, if every string starts with “aa” and length of the string is not congruent to 0 (mod 4).
2
907 views
Ques:- Let ∑= {0, 1} What will be the number of states in minimal DFA, if the Binary number string is congruent to (mod 8)? *[ Can anybody explain this as I am getting 8 states for this since remainders will be 8 (0,1,2,3,4,5,6,7). But the answer is 4].
3
477 views
Self doubt: Is there any method to calculate number of states in dfa e.g."x mod y" type of question without drawing dfa? Because in Gate time is vital factor.
1 vote