GATE Computer ScienceEasyGATE CS (PYQ pattern)

Which of the following problems is undecidable?

  1. A. Given a DFA D, is L(D) empty?
  2. B. Given a Turing machine M, is L(M) empty?
  3. C. Given two DFAs, do they accept the same language?
  4. D. Given a CFG G and a string w, is w ∈ L(G)?

Correct answer: B. Given a Turing machine M, is L(M) empty?

Emptiness of a TM's language is undecidable (Rice's theorem). The other three are decidable (graph reachability, product construction, CYK).

More Theory of Computation questions

Exams that ask this topic