GATE Computer ScienceVery hardGATE CSE

For a context-free grammar G given as input, how many of the following problems are undecidable? (a) Is L(G) = Σ*? (b) Is L(G) regular? (c) Is a given string w in L(G)? (d) Is L(G) infinite? (e) Is G ambiguous?

  1. A. 3
  2. B. 2
  3. C. 4
  4. D. 5

Correct answer: A. 3

Universality, regularity and ambiguity are undecidable; membership (CYK) and finiteness (pumping/cycle check) are decidable.

More Theory of Computation questions

Exams that ask this topic