How can I tell if these are undecidable?

308 Views Asked by At

For each of the following set, show that they are undecidable. Do not use Rice theorem.
a. $L_{1} = \{M |M$ accepts w if w contains the substring 10 $\}$
b. $L_{2} = \{M| M$ accepts an odd number of strings $\}$

I have tried proving using aTM because it is known undecidable, but I do not know how to create the argument formally.

2

There are 2 best solutions below

3
On BEST ANSWER

Suppose $L_{1}$ is decidable. Let $T$ be a TM that decides $L_{1}$. Let $M$ be a Turing Machine and $s$ be an arbitrary string. We construct $M_{s}$ which first simulates $M$ on $s$. $M_{s}$ halts if and only if $M$ accepts $s$.

We now consider $M^{\prime}$ as a Turing Machine. If $M^{\prime}$ operates by simulating $M_{s}$. $M^{\prime}$ accepts strings with $10$ as a substring if and only if $M_{s}$ halts. This implies undecidability.

Take the same approach for $L_{2}$, basically.

0
On

In both cases, you can assume the TM $T$ exists that decides the language of TMs, and have a Turing machine $T_2$ that calls $T$ on itself and then does the opposite of what is predicted by $T$, contradicting the correctness of $T$.