Prove that the following problem is undecidable by a reduction from the halting problem:
“Does a given Turing Machine M accept any string of form a^2k for k ≥ 1?”
I'm having trouble understanding the intuition behind the Halting problem reduction, could someone please explain in an intuitive and easy to understand why this is the case? I've watched some videos and studied some material online but a, having a hard time with this concept.
A simple application of Rice's theorem would make things easy but let's just pretend we only know the existence of a universal machine that can simulate all others. Now onto the argument, let's suppose towards a contradiction that the set, let's call it S, is decidable. This means that there is a turing machine U that can decide if some arbitrary machine M accepts an input of the form a^2k. In other words our machine accepts of the machine M accepts and otherwise rejects.
Well if such a machine existed so would a machine U' which does the following:
1.It verifies that the input is of the a^2k type or of the a^2k-1 type(this is just a context-free problem).
Now using machines U and U' we can build another machine H that decides the halting problem as follows:
Provided we can assume that we can code machines as strings of the form a^k we do the following to decide the halting problem for any machine M on input i: run U(U'(M(i)))