All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2022 (Shift 1)

What is the minimum and maximum number of initial, dead, unreachable and final states in a n valid ' ' state finite automaton, where the φ language accepted is not ' '?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. Minimum 1, 0, 0, 1; Maximum 1, n − 1, n − 1, n

Explanation

There is always exactly 1 initial state. Dead and unreachable states can be 0, and the language is non-empty, so at least 1 final state. At most n − 1 states can be dead or unreachable (the start state is neither), and all n can be final.

More Theory of Computation and Compilers questions