- Source: Multitape Turing machine
A multi-tape Turing machine is a variant of the Turing machine that utilizes 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.
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. Thus, multi-tape machines cannot calculate any more functions than single-tape machines, 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
k
{\displaystyle k}
-tape Turing machine can be formally defined as a 7-tuple
M
=
⟨
Q
,
Γ
,
b
,
Σ
,
δ
,
q
0
,
F
⟩
{\displaystyle M=\langle Q,\Gamma ,b,\Sigma ,\delta ,q_{0},F\rangle }
, following the notation of a Turing machine:
Γ
{\displaystyle \Gamma }
is a finite, non-empty set of tape alphabet symbols;
b
∈
Γ
{\displaystyle b\in \Gamma }
is the blank symbol (the only symbol allowed to occur on the tape infinitely often at any step during the computation);
Σ
⊆
Γ
∖
{
b
}
{\displaystyle \Sigma \subseteq \Gamma \setminus \{b\}}
is the set of input symbols, that is, the set of symbols allowed to appear in the initial tape contents;
Q
{\displaystyle Q}
is a finite, non-empty set of states;
q
0
∈
Q
{\displaystyle q_{0}\in Q}
is the initial state;
F
⊆
Q
{\displaystyle F\subseteq Q}
is the set of final states or accepting states. The initial tape contents is said to be accepted by
M
{\displaystyle M}
if it eventually halts in a state from
F
{\displaystyle F}
.
δ
:
(
Q
∖
F
)
×
Γ
k
→
Q
×
Γ
k
×
{
L
,
R
}
k
{\displaystyle \delta :(Q\setminus F)\times \Gamma ^{k}\to Q\times \Gamma ^{k}\times \{L,R\}^{k}}
is a partial function called the transition function, where L is left shift, R is right shift.
A
k
{\displaystyle k}
-tape Turing machine
M
{\displaystyle M}
computes as follows. Initially,
M
{\displaystyle M}
receives its input
w
=
w
1
w
2
.
.
.
w
n
∈
Σ
∗
{\displaystyle w=w_{1}w_{2}...w_{n}\in \Sigma ^{*}}
on the leftmost
n
{\displaystyle n}
positions of the first tape, the rest of the first tape as well as other tapes is blank (i.e., filled with blank symbols). All the heads start on the leftmost position of the tapes. Once
M
{\displaystyle M}
has started, the computation proceeds according to the rules described by the transition function. The computation continues until it enters the accept states, 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
Turing machine
Universal Turing machine
Alternating Turing machine
Probabilistic Turing machine
Turing machine equivalents