-2

I have found this problem-

let A be the set of encoding of all those Turing machines that accept exactly two strings and let A' be the complement of A. Comment on whether A and A' are recursive , recursively enumerable or not recursively enumerable.

I am clueless at "exactly 2 strings". I have tried many books but I can't solve it. Please help.(Any hint is acceptable)

Raphael
  • 72,336
  • 29
  • 179
  • 389

1 Answers1

2

This is a trivial application of Rice's theorem.

Define:

$$S_A = \{ L \in RE \mid |L|=2\}$$

It is a non-trivial subset of $RE$ (for instance, it contains $\{0,1\}$ and it doesn't contain $\{\varepsilon\}$). Then By Rice's Theorem

$$ A = \{ \langle M \rangle \mid L(M) \in S_A\}$$ is undecidable. Note that $A$ is exactly the language stated in the question.

There is also an extended version of Rice's theorem that will show that $A$ is not even $RE$.

Ran G.
  • 20,684
  • 3
  • 60
  • 115