Questions tagged [halting-problem]
Questions concerning the Halting problem which is to decide whether a given a program halts on a given input.
461 questions
0 votes
0 answers
72 views
Halting problem at the limit of infinite sequence of heuristics
The set of non-halting (program, input) pairs is not recursively enumerable (not RE). Does this imply that there is no infinite sequence of algorithms (e.g., heuristics) whose limit could enumerate ...
0 votes
1 answer
113 views
Halting Problem with Restricted Input
I was reading through the proof for the halting problem and saw that that the "pathological" program that makes program H return the wrong result needs to have H inside it, where H is a ...
12 votes
2 answers
901 views
A variant of the halting problem for subsets of Turing machines
Suppose we have some subset $S$ of Turing machines with the property that, for every partial recursive function, at least one machine in $S$ computes that function. Question: for any such subset $S$, ...
3 votes
1 answer
83 views
How can I think about one statement that $TM_1$ uses $TM_2$ to compute $TM_3$?
In title, $TM_1$, $TM_2$ and $TM_3$ are all turing machines. In book Computational Complexity: A Modern Approach by Sanjeev Arora et al, the proof of the non-computability of the HALTING problem is ...
1 vote
1 answer
136 views
Barry Cooper's Proof of Rice's Theorem
I have been studying Rice's Theorem, and I came across the following proof, which I am trying to understand in more detail: [Rice's Theorem] If $A$ is an index set --- $\neq \emptyset$ or $\mathbb{N}$ ...
-4 votes
2 answers
144 views
is this the false assumption in a proof of the undecidability of the halting problem?
However given that Th can be constructed, we can construct a second machine Td1 such that : Td1(Ti , D.N. of Ti) = HALT if Ti does not halt on its own D.N. OR Ti=Td1 LOOP if Ti halts on its own D.N. ...
0 votes
2 answers
142 views
Why are finite sets decidable?
I am currently trying to understand why some finite sets or problems are always decidable. For example, the halting problem on an empty tape is proven to be undecidable: $$H_0 = \{w \in \{0,1\}^* \mid ...
-1 votes
1 answer
67 views
Is it possible to reduce H_0 to A_0?
I am trying to understand whether it is possible to construct a Turing Machine (TM) that accepts an input if and only if it halts on that input. My question is closely related to the halting problem. ...
2 votes
0 answers
68 views
I know the following language is undecidable by reduction to HP bar. But how does it relate to L_EQ?
The languages are defined as such (for standard Turing machines and over $\{0, 1\}^*$: $$ L_3 \triangleq \{ (\langle M \rangle, x) \mid \text{$\forall M^\prime, [x\in L(M^\prime)] \lor [\langle M^\...
0 votes
2 answers
145 views
When does a Nondeterministic Turing Machine halt?
I've seen several definitions and discussions on this topic, but I cannot find the exact definitions of "Nondeterministic Turing Machine (NTM) that halts on an input x" and "NTM that ...
5 votes
2 answers
1k views
Diagonalisation in the proof of undecidability of the acceptance problem for Turing Machines
It's well-known that the language $A_{TM} = \{\langle M,w\rangle: \text{M is a turing machine that accepts w} \}$ is undecidable. There's a standard proof that's presented in Sipser's "...
1 vote
1 answer
168 views
set of words w such that M halts on w is decidable
I need to prove that the language following language is not turing-recognizable: $$\text{dec-haltTM} = \{ \langle M\rangle: \text{$M$ is a TM and the set of words that M halts on is decidable}\}$$ I ...
0 votes
1 answer
70 views
Proving Non-Semi-Decidability of Language L - Seeking Reduction Strategy
I'm working on a problem involving the language 𝐿 = { 𝑤 ∣ time𝑀𝑤 ( 𝑥 ) ≤ ∣ 𝑥 ∣ + 1 for all words 𝑥 }. The language consists of words 𝑤 where the Turing machine 𝑀𝑤 halts within ∣ 𝑥 ∣ + 1 ...
2 votes
0 answers
60 views
Undecidability of a language similar to the Halting Problem
I would like to prove the undecidability of the following language $L$, closely related to the Halting problem: $$L:=\{w \mid M_w \text{ accepts a word of size }|w|\}.$$ It is obvious for unary ...
4 votes
3 answers
646 views
Accelerating semidecision of halting problem
There is a naive semidecision algorithm for the halting problem: simply simulate the program and see if it halts. Is there an algorithm that is asymptotically faster? More precisely, suppose the naive ...