Which one of the following problems is undecidable?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2014 Set 3 · Q35
Time
Select one answerSingle correct
Solution
Official answer: A) Deciding if a given context-free grammar is ambiguous.
Turing Machines and UndecidabilityLet us analyze the decision problems for Context-Free Grammars (CFGs) / Context-Free Languages (CFLs):
(A) Ambiguity of a CFG: Deciding whether an arbitrary CFG is ambiguous is undecidable (proven via reduction from the Post Correspondence Problem, PCP).
(B) Membership problem for CFG ():Decidable(e.g., using the CYK algorithm in $O(n^3)$ time).
(C) Emptiness problem for CFG ():Decidable (by finding reachable and generating non-terminals).
(D) Finiteness problem for CFG ():Decidable (by checking for cycles involving useful non-terminals in the reduced grammar/derivation graph).
Therefore, the undecidable problem is (A).
Try the question first, then check your work.
Examiner trap
Recall standard decision properties for Context-Free Grammars: membership, emptiness, and finiteness are decidable, whereas ambiguity and equivalence are undecidable.
This Turing Machines and Undecidability previous year question is Q35 of the GATE CSE 2014 Set 3 paper. Find more GATE CSE PYQs on Turing Machines and Undecidability in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Turing Machines and Undecidability PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Turing Machines and Undecidability has 30 GATE CSE PYQs across 20 papers from 2012 to 2026. 13 of them are 2-mark MCQs like this one, and GATE CSE 2014 Set 3 has 2.
How GATE tests Turing Machines and UndecidabilityIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.