GATE 2014 CS (CS3) – Question 45
Which problem is undecidable?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) Whether a given context-free grammar is ambiguous
Explanation
General context-free grammar ambiguity is undecidable: no algorithm decides ambiguity for every CFG. Therefore **A**. Membership is decidable by parsing, while emptiness and finiteness can be decided using productive/reachable symbols and cycles in the grammar.