GATE Computer ScienceHardGATE CS (PYQ pattern)
Let A = { ⟨M⟩ : the Turing machine M accepts at most one string }. Which statement is correct?
- A. A is recursively enumerable but not decidable
- B. A is co-recursively enumerable but not recursively enumerable
- C. A is decidable
- D. Neither A nor its complement is recursively enumerable
Correct answer: B. A is co-recursively enumerable but not recursively enumerable
The complement (M accepts at least two strings) is RE: dovetail M on all inputs and accept once two distinct inputs are accepted. A itself is non-trivial, so undecidable by Rice; since its complement is RE, A cannot also be RE (else it would be decidable). So A is co-RE only.
More Theory of Computation questions
- Which of the following statements about the Post Correspondence Problem (PCP) are correct? I. PCP restricted to a one-letter alphabet is…
- To prove by the pumping lemma for context-free languages that L = { w w : w ∈ {a, b} } is not context-free, which string (p is the pumping…
- Which of the following statements are correct? I. Every regular language has an unambiguous context-free grammar. II. Every context-free…
- Rice's theorem cannot be applied directly to which of the following properties of a Turing machine M (although some of them are…
- If a language L and its complement are both recursively enumerable, then L is
- Which of the following classes of languages is closed under complement but NOT under union?