GATE Computer ScienceHardGATE CS (PYQ pattern)
Let TOTAL = { ⟨M⟩ : the Turing machine M halts on every input }. Which statement about TOTAL is correct?
- A. TOTAL is decidable
- B. TOTAL is recursively enumerable but not decidable
- C. The complement of TOTAL is recursively enumerable but TOTAL is not
- D. Neither TOTAL nor its complement is recursively enumerable
Correct answer: D. Neither TOTAL nor its complement is recursively enumerable
Both TOTAL and its complement can be reduced from non-RE problems, so neither is RE: one cannot even semi-decide totality, because that needs checking infinitely many inputs.
More Theory of Computation questions
- Let A = { ⟨M⟩ : the TM M halts on at least one input } and B = { ⟨M⟩ : M halts on no input }. Which statement is correct?
- Which of the following statements about many-one reductions A ≤ B are correct? I. If B is decidable then A is decidable. II. If A is…
- Which of the following languages is context-sensitive but NOT context-free?
- An ε-NFA has 6 states. When it is converted to a DFA by the subset construction, what is the maximum possible number of states in the…
- A grammar in Chomsky normal form (no ε-productions) derives a string of length 15. Let N be the number of derivation steps and H the…
- A grammar in Greibach normal form generates a string of length 15. How many derivation steps does any derivation of it take?