GATE Computer ScienceModerateGATE CSE

Which of the following problems is decidable for the given input? I. Is the language of a given context-free grammar empty? II. Are two given context-free grammars equivalent? III. Does a given Turing machine halt on the blank tape? IV. Is the language of a given DFA finite?

  1. A. I, II and IV only
  2. B. I and III only
  3. C. II and IV only
  4. D. I and IV only

Correct answer: D. I and IV only

Emptiness of a CFG and finiteness of a DFA language are decidable by graph checks. CFG equivalence and the blank-tape halting problem are undecidable.

More Theory of Computation questions

Exams that ask this topic