- GATE CS
- 2026–27 pattern practice
- Theory of Computation
- Undecidability
- Medium
Which of the following problems is decidable?
Computability
Pick an option to check your answer.
Answer: A. Solution
DFA emptiness is decidable: mark the states reachable from the start state (BFS/DFS on the transition graph); the language is empty exactly when no accepting state is reachable. This always terminates.
Why not the others
- Whether a given Turing machine halts on a given input is the halting problem, undecidable (Turing, 1936).
- Whether two given Turing machines accept the same language is undecidable (by Rice's theorem; it is not even semi-decidable).
- Whether a given context-free grammar is ambiguous is undecidable (reduction from Post's Correspondence Problem).