Multitape Turing machine

A multi-tape Turing machine is a variant of the Turing machine that uses several tapes. Each tape has its own head for reading and writing. Initially, the input appears on tape 1, and the others start out blank.[1]

This model intuitively seems much more powerful than the single-tape model, but any multi-tape machine—no matter how many tapes—can be simulated by a single-tape machine using only quadratically more computation time.[2] That is, any language that be decided in t(n) time by a multitape TM can be decided in O(t2(n)) by a single-tape TM.

Thus, multi-tape machines cannot calculate any more functions than single-tape machines,[3] and none of the robust complexity classes (such as polynomial time) are affected by a change between single-tape and multi-tape machines.


Formal definition

-tape Turing machine can be formally defined as a 7-tuple , following the notation of a Turing machine:

  • is a finite, non-empty set of tape alphabet symbols;
  • is the blank symbol (the only symbol allowed to occur on the tape infinitely often at any step during the computation);
  • is the set of input symbols, that is, the set of symbols allowed to appear in the initial tape contents;
  • is a finite, non-empty set of states;
  • is the initial state;
  • is the set of final states or accepting states. The initial tape contents is said to be accepted by if it eventually halts in a state from .
  • is a partial function called the transition function, where L is left shift, R is right shift.

A -tape Turing machine , where is the number of tapes assigned, computes as follows. starts in its initial state . This is defined by all tapes having one head starting at the leftmost position, along with an input on the leftmost positions of the first tape, all other symbols of every tape being the blank symbol defined by . A step for the machine is done by evaluating the transition function. This is done by taking in the current state and the set of alphabetic symbols that the heads reside over notated as . The transition function takes both of these parameters and outputs the three things necessary for a transition: the new state that transitions into, a new set of alphabet symbols that each of the heads will write to their respective cells, and a set of shift instructions that will instruct each of the heads which direction to move to (left or right one cell) after the new symbols are written. The transition function iterates until enters a final state belonging to the set , at which point it halts.

Two-stack Turing machine

Two-stack Turing machines have a read-only input and two storage tapes. If a head moves left on either tape a blank is printed on that tape, but one symbol from a "library" can be printed.

See also

References

  1. ^ Sipser, Michael (2005). Introduction to the Theory of Computation. Thomson Course Technology. p. 148. ISBN 0-534-95097-3.
  2. ^ Papadimitriou, Christos (1994). Computational Complexity. Addison-Wesley. p. 53. ISBN 0-201-53082-1.
  3. ^ Martin, John (2010). Introduction to Languages and the Theory of Computation. McGraw Hill. pp. 243–246. ISBN 978-0071289429.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.