GATE Computer ScienceHardGATE CS (PYQ pattern)

Let A = { ⟨M⟩ : the Turing machine M accepts at most one string }. Which statement is correct?

  1. A. A is recursively enumerable but not decidable
  2. B. A is co-recursively enumerable but not recursively enumerable
  3. C. A is decidable
  4. 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

Exams that ask this topic