1.

Given an arbitrary non-deterministic finite automaton (NFA) with N states, the maximum number of states in an equivalent minimized DFA is at least?(a) N^2(b) 2^N(c) 2N(d) N!This question was addressed to me during an internship interview.The above asked question is from Obtaining the regular Expression from the Finite automata in portion Finite Automata and Regular Expression of Compiler

Answer»

Correct OPTION is (C) 2N

For explanation I would say: If the NFA has n states, the resulting DFA may have up to 2n states, an exponentially larger number, which sometimes makes the CONSTRUCTION IMPRACTICAL for large NFAs.



Discussion

No Comment Found

Related InterviewSolutions