Let be an NFA with states. Let be the number of states of a minimal DFA which is equivalent to . Which one of the following is necessarily true?
- (A)
- (B)
- (C)
- (D)
Let be an NFA with states. Let be the number of states of a minimal DFA which is equivalent to . Which one of the following is necessarily true?
ANSWER
The minimal DFA never needs more than states, so (D) is the option that is necessarily true.
Official answer: DSource: Official answer key, GATE 2018 CS (IIT Guwahati)
Subset construction: every state of the DFA built from an -state NFA is a subset of the NFA's states, so it is one of at most subsets (including ).
So the subset-construction DFA has at most states. A minimal DFA for the same language is never larger than any equivalent DFA, so always holds. This is option (D).
(A) is not necessary: a one-state NFA () for has a minimal DFA with .
(B) is not necessary: a 3-state NFA () accepting has a minimal DFA with .
(C) is not necessary: the language (the -th symbol from the end is ) has an NFA with states, but every DFA for it needs at least states. For this gives and .
Only (D) holds for every NFA.
KEY IDEA
Subset construction turns an -state NFA into a DFA with at most states, and minimisation can only shrink it. This gives an upper bound only.
WATCH OUT FOR
Choosing (A) because the exponential blow-up is famous. The figure is only a worst case, and many NFAs give a far smaller minimal DFA, even one with fewer states than the NFA.
From the GATE 2018 CS paper. Every question of this paper · Download the full paper · All 18 Finite automata questions, with notes