A few days ago I had a test that I failed to pass, and it had a question that I failed to do.
This is the question
Let's look at the language $L_\mathrm{loop} = ${ $\left \langle M,w \right \rangle$ | When $M$ is activated on the input $w$, the machine $M$ enters an infinite loop }
We will mark our input length: $|\left \langle M,w \right \rangle| = n$. Determine which of the claims is correct:
- The language is in $\mathsf{P}$
- The language is not in $\mathsf{NP}$ or $\mathsf{CoNP}$.
- The language is in $\mathsf{NP}$ but not in $\mathsf{NPC}$.
- The language belongs to $\mathsf{CoNP}$.
- None of the above claims are true.
From what I understand in the question, there is a language that accepts Turing machines that go into an endless loop.
- It cannot be, if the machine works infinitely, it is impossible to know in polynomial time when we will get yes and when we will get no. It has no algorithm.
- Probably can not either. A problem will be in $\mathsf{NP}$ if it has a non-deterministic guessing algorithm. If a witness gives input, it is not possible to say yes to the answer, because it is infinite.
- Do not know about it, maybe he is right
- Language should belong to $\mathsf{CoNP}$ only when a guessing algorithm should say no. And I do not know if here should be said no and then it's $\mathsf{CoNP}$ or say yes and then it's $\mathsf{NP}$.
I tried to figure out what the answer might be, but I could not figure out the answers to the question.
Maybe 5 is right, because I could not tell everyone else that they were right