Re: Question on another GRE Comp Sci problem (Turing Machine stuff...)



"Federico Magallanez" <steganographer@xxxxxxxxx> writes:

>----

>47. Let M be a single-tape, deterministic Turing machine with tape
>alphabet {blank,0,1}, and let C denote the (possibly infinite)
>computation of M starting with a blank tape. The input to each problem
>below is M, together with a positive integer n. Which of the following
>problems is (are) decidable?

>I. The computation C lasts for at least n steps.
>II. The computation C lasts for at least n steps, and M prints a 1 at
>some point after the nth step.
>III. M scans at least n distinct tape squares during the computation C.

>----

>My guess was 'all these three are decidable'; however, the answer is 'I
>and III are decidable while II is undecidable.' Maybe my understanding
>on TM is quite sloppy, but I cannot understand why 'M prints a 1 at
>some point after n-th step' makes such a glaring difference. I
>appreciate any input.

The main point is that II involves an infinite number of steps. E.g., if you
have mointored the TM for N steps (where N is some big number greater than
n) and it didn'd write a 1, you cannot be sure that it won't do in future.
More detailled, you could take any Turing Machine M' operating on {0,1}
and modify it to use {blank,0} instead. Let it wait at the beginning for n
steps -- which can be done by adding n states -- and let it write a 1 when
M' halts. Then II is equivalent to the halting problem for M'.

III is more subtle. M could run forever on a finite number of squares, but
then it would have to repeat itself, which could be detected in a finite
number of steps.

Nice exercises.



--
Markus Redeker Hamburg, Germany
.



Relevant Pages

  • Re: Turing machines, quantum computers, and alephs
    ... >> Turing defined a Turing machine as having an infinite tape. ... the abstract quantum computer with infinitely many qubits might start ...
    (comp.programming)
  • Re: Turing machines, quantum computers, and alephs
    ... >> Turing defined a Turing machine as having an infinite tape. ... the abstract quantum computer with infinitely many qubits might start ...
    (sci.math)
  • Re: Turing machines, quantum computers, and alephs
    ... > number of tape segments, but if it starts with a blank tape, or a tape ... > the abstract quantum computer with infinitely many qubits might start ... > it seems no less finite in your sense than the abstract Turing machine ... > with its infinite but mostly zeroed tape. ...
    (comp.programming)
  • Re: Turing machines, quantum computers, and alephs
    ... > number of tape segments, but if it starts with a blank tape, or a tape ... > the abstract quantum computer with infinitely many qubits might start ... > it seems no less finite in your sense than the abstract Turing machine ... > with its infinite but mostly zeroed tape. ...
    (sci.math)
  • Re: turing completeness
    ... The tape doesn't have to be "infinite", ... Turing machine on a physical computer" you are wrong. ... Formalism was David Hilbert's movement, that claimed that programming, ...
    (comp.programming)