Show that whether or not an arbitrary Turing machine ever executes a particular one of its instructions is unsolvable

112 Views Asked by At

Show that whether or not an arbitrary Turing machine ever executes a particular one of its instructions is unsolvable. (This is the same as the problem of detecting unreachable code in a program.)

1

There are 1 best solutions below

0
On BEST ANSWER

If we would have a way to say if some instruction will be executed, we could find a solution for the halting problem. Basically we will ask if the problem execute the “return” statement, or other statement that indicate the halt, but we can’t resolve the halting problem, so this machine cannot exist.