I've got a really simple question about Turning Machines.
If the very first action it takes includes rewinding the tape, will it move back past the starting point or is this a special case and will it remain at the starting point?
I've got a really simple question about Turning Machines.
If the very first action it takes includes rewinding the tape, will it move back past the starting point or is this a special case and will it remain at the starting point?
It really depends on which formalism you are using. Some formalisms have a tape that is infinitely extensible in both directions, while other have a left end. Within the left end camp, there are still more subdivisions. Some people say that the machine fails or produces no output when it moves off the left end of the tape (I'm thinking of work by Hamkins and Miasnikov on halting probability), while others force a special, unrewritable marker in the leftmost tape cell (Kozen does this in his Automata and Computability textbook). These formalisms are all essentially equivalent, so most people don't make a big deal about it and just use whatever is most convenient for the application at hand.
The tape in a Turing machine is infinite in both directions; it is usually assumed that everything before the beginning is filled with 0
.
The tape is infinitely extensible in both directions. Wikipedia has this to say:
A tape which is divided into cells, one next to the other. Each cell contains a symbol from some finite alphabet. The alphabet contains a special blank symbol (here written as 'B') and one or more other symbols. The tape is assumed to be arbitrarily extendable to the left and to the right, i.e., the Turing machine is always supplied with as much tape as it needs for its computation.