GATE / CS ARCHIVE

SIMILAR QUESTIONS / THEORY OF COMPUTATION

Apply the subset-construction DFA state bound

4 questions solved the same way, newest first. Back to Theory of Computation

How these are solved

All reason from an N-state NFA without its graph using at most 2^N deterministic subsets, and distinguish an upper bound from the potentially smaller minimal machine. 2001 asks the worst-case expression with a documented wording caveat;

1 mark · MSQ
Report issue

Possible DFA sizes for a six-state NFA

Finite Automata

Question 26, GATE 2026: An NFA has six states over a finite alphabet. Which values cannot be the number of states of its minimal equivalent DFA: A 32, B 65, C 1, D 128?
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, D

Givens and goal

An NFA has six states over a finite alphabet. Which values cannot be the number of states of its minimal equivalent DFA: A 32, B 65, C 1, D 128?

Approach

Use subset construction for an upper bound and explicit languages to verify the offered feasible values.

Step-by-step solution

1. Subset construction represents each DFA state by a subset of the six NFA states. There are at most 26 = 64 such subsets, including the empty subset. Epsilon closures, if applicable, do not increase this bound.
2. Removing unreachable states and minimizing can only reduce that number. A minimal equivalent DFA therefore cannot require 65 or 128 states, establishing B and D.
3. One state is possible: a six-state NFA can accept every string. For an example with all six states reachable, use a cycle of six accepting states over a one-letter alphabet. Its language is universal and its minimal DFA has one accepting state.
4. To check that 32 is genuinely possible, use the binary language whose fifth symbol from the end is 1. A six-state NFA has one start state that loops on 0 and 1, can nondeterministically guess a 1 as that fifth-from-last symbol, and then traverses four more symbol transitions to an accepting state. A 32-state DFA stores the last five symbols, initially padded with zeros. Any distinct five-bit histories differ in some position j; appending j−1 zeros makes that position the fifth symbol from the end. The two resulting strings have different acceptance outcomes. Thus all 32 histories are distinguishable and the minimal DFA has exactly 32 states.

Common error: An upper bound alone rules out the oversized choices; an explicit witness is useful to verify that the smaller offered values really are possible.

Subset-construction interpretation: after reading a prefix, an NFA may be in several states at once. A deterministic simulator records exactly that reachable subset. With six possible states, each independently present or absent, there are 64 possible records; different prefixes need not reach all of them. This is why 64 is an upper bound, not a claim that every six-state NFA requires 64 DFA states.

Original paper, page 20 · Answer key

1 mark · MSQ
Report issue

Bounding DFA states after subset construction

Finite Automata

Question 28, GATE 2025: A regular language L is accepted by an n-state NFA. Which statements are false? A L may also have an NFA with fewer than n states; B L may have a DFA with fewer than n states; C some DFA for L has at most 2^n states; D every DFA for L has more than 2^n states.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: D

Approach: Apply subset construction and distinguish “may” from a guaranteed reduction.
When determinizing an NFA, a DFA state records the set of NFA states that can currently be active. An n-element set has 2n subsets, so the construction uses at most 2n states, including the empty subset if needed. Unreachable subsets can be removed. This proves C and directly contradicts D, making D the false statement.
The NFA in the premise is not required to be minimal. For example, an automaton for all strings can be padded with redundant states although a one-state accepting automaton already recognizes that language. Therefore A and B describe genuine possibilities for a nonminimal supplied NFA.
They do not assert that every n-state NFA can be reduced, nor a strict reduction at n=1 in the conventional nonempty-state model. The exponential bound is an upper bound that can be necessary for some languages, not a claim that every language needs exponentially many DFA states.

Original paper, page 28 · Answer key

1 mark · MCQ
Report issue

NFA to minimal DFA state bound

Finite Automata

Question 6, GATE 2018: An NFA has n states. Its equivalent minimal DFA has k states. Which is always true? A k≥2^n; B k≥n; C k≤n²; D k≤2^n.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Method

A DFA must remember the entire set of NFA states that could currently be active. There are 2n subsets of an n-element set. Some subsets may be unreachable and some reachable ones may be equivalent, so both reachability pruning and minimization can reduce this bound. There is no general lower bound k≥n: an NFA can contain many redundant states while accepting a language recognized by one DFA state. Some NFA families require exponentially many DFA states, ruling out a universal quadratic bound.

Solution

Subset construction represents each DFA state by a subset of the NFA’s n states, so at most 2n states are needed, including a possible empty subset. Minimization cannot increase that count. Thus k≤2n, D.

Original paper, page 5 · Answer key

1 mark · MCQ
Report issue

Worst-case NFA to DFA state blowup

Finite Automata

Question 1.6, GATE 2001: For an N-state NFA, determine the maximum possible size of an equivalent minimized DFA. Listed expressions are N², 2^N, 2N, and N!. The reproduced wording uses “maximum … at least”; distinguish worst-case size from the size for every individual NFA.
Tap to enlarge
Your answer
Answer & solution

Answer: B for the tight worst-case bound (no official key was published)

Step 1: Subset construction represents a DFA state by a subset of the N NFA states. There are at most 2N such subsets, and minimization cannot increase that number.

Step 2: This bound can be attained when the alphabet is unrestricted. Start at q0, make q0 accepting, and include symbols that map q0 to each chosen subset S. Include test symbols bi that map only qi to q0 and all other states to the empty set. Every subset is reachable, and bi distinguishes two subsets that differ in whether they contain qi. Thus all 2N subsets are inequivalent.

Conclusion: The maximum over N-state NFAs is 2N, B. This is not a claim that every particular NFA requires 2N states. The source phrase “maximum … at least” is imprecise; the tight worst-case reading is used.

Original paper, page 1