Skip to content
Official PYQ · 2018

GATE CS 2018 Q6 — Regular Expressions and Finite Automata

Explain with AI

Let NN be an NFA with nn states. Let kk be the number of states of a minimal DFA which is equivalent to NN. Which one of the following is necessarily true?

Choose one option
View worked solution

Answer: D

To find the relationship between the number of states nn of an NFA NN and the number of states kk of its equivalent minimal DFA, we use the subset construction method:

  1. Subset Construction: Given any NFA with nn states, we can construct an equivalent DFA where each state corresponds to a subset of the states of the NFA. Since a set of size nn has 2n2^n subsets, the constructed DFA has at most 2n2^n states.
  2. Minimization: The minimal DFA is obtained by merging equivalent states of this DFA. Minimization can only decrease or maintain the number of states. Therefore, the number of states kk in the minimal DFA must satisfy:
    k≤2nk \le 2^n

Let's evaluate why the other options are not necessarily true:

  • Option A (k≥2nk \ge 2^n): Incorrect. For many NFAs, the equivalent minimal DFA has far fewer than 2n2^n states. For example, an NFA accepting Σ∗\Sigma^* can have nn states, but its minimal DFA has only 11 state.
  • Option B (k≥nk \ge n): Incorrect. As shown in the example above, if n>1n > 1 and the language is Σ∗\Sigma^*, the minimal DFA has 11 state, so k=1<nk = 1 < n.
  • Option C (k≤n2k \le n^2): Incorrect. There are standard languages (such as those where the nn-th symbol from the end is a specific character) where the minimal DFA requires exactly 2n2^n states. For n≥3n \ge 3, 2n>n22^n > n^2, which violates k≤n2k \le n^2.

Thus, the only statement that is necessarily true is k≤2nk \le 2^n.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions