GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 6

Undecidable grammar ambiguity

Theory of Computation · Decidability & Computability · Full GATE CSE 2007 paper

GATE 2007, Q6 1 mark · MCQ
Report issue

Decidability & Computability

Question 6, GATE 2007: Which decision problem is undecidable?
Options:
(A) Membership for context-free grammars
(B) Ambiguity for context-free grammars
(C) Finiteness for finite-state automata
(D) Equivalence for finite-state automata
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Approach. Distinguish a property of a particular input string from a property of all derivations of a grammar. Parsing decides membership; finite automata allow finite graph algorithms.

2. Derivation and interpretation. CFG membership is decidable by parsing. Finite-automaton finiteness is decided by useful-cycle detection, and equivalence by symmetric-difference reachability. Ambiguity of an arbitrary CFG is undecidable, so B.

Original paper, page 2