IAE Academy

GATE 2018 CS Q.6: solution and answer

GATE 2018 · CSQ.6 · 1 mark · MCQ

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?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

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)

  1. 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 ).

  2. 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).

  3. (A) is not necessary: a one-state NFA () for has a minimal DFA with .

  4. (B) is not necessary: a 3-state NFA () accepting has a minimal DFA with .

  5. (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 .

  6. 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

More Finite automata questions