Computer Science EngineeringHard
An NFA has 5 states. By subset construction, the equivalent DFA needs at most how many states?
- A. 10
- B. 25
- C. 32
- D. 120
Correct answer: C. 32
Each DFA state is a subset of NFA states, so there are at most 2^5 = 32.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- Context-free languages are NOT closed under which operation?
- Which of the following languages requires a nondeterministic pushdown automaton (cannot be accepted by a deterministic PDA)?
- If both a language L and its complement are recursively enumerable, then L is
- Left recursion must be eliminated from a grammar before it can be used with
- Which parser accepts the largest class of grammars among the following?
- For a given grammar, an LALR(1) parser has the same number of states as which other parser?