Visualize Turing machines and understand undecidability through interactive simulations
Recognizes palindromes over the alphabet {a, b}
The Halting Problem asks whether there exists an algorithm that can determine, for any arbitrary program and input, whether the program will eventually halt or run forever.
Assume we have a halting detector H that can determine if any program P halts on input I. We can create a new program D that:
Now, what happens if we run D with itself as input? If D halts, then by its definition, it should run forever. If D runs forever, then by its definition, it should halt. This contradiction proves that our halting detector H cannot exist!