Skip to content
Official PYQ · 1987

GATE CS 1987 Q2j — Regular Expressions and Finite Automata

Explain with AI
State whether the following statements are TRUE or FALSE:

A minimal DFA that is equivalent to an NDFA with nn nodes has always 2n2^{n} states.
View worked solution

Answer: 0

The given statement is FALSE (represented by 0).

Explanation:

When converting a Non-deterministic Finite Automaton (NFA) with nn states to an equivalent Deterministic Finite Automaton (DFA) using the subset construction method, the resulting DFA can have at most 2n2^n states.

However, the minimal DFA equivalent to the NFA does not always have 2n2^n states. The actual number of states in the minimal DFA depends on the language and the structure of the NFA:

  • Worst-case: There are specific languages where the minimal DFA indeed requires 2n2^n states (for example, the language over {0,1}\{0,1\} where the nn-th symbol from the end is 11).
  • Best-case: If the NFA is already deterministic and minimal, the equivalent minimal DFA has exactly nn states.

Since the minimal DFA does not always have 2n2^n states, the statement is false.

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

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