Alternating Turing machine
In computational complexity theory, an alternating Turing machine (ATM) is a non-deterministic Turing machine (NTM) with a rule for accepting computations that generalizes the rules used in the definition of the complexity classes NP and co-NP.[src] The concept of an ATM was set forth by Chandra and Stockmeyer and independently by Kozen in 1976, with a joint journal publication in 1981.[src]
In computational complexity theory, an alternating Turing machine (ATM) is a non-deterministic Turing machine (NTM) with a rule for accepting computations that generalizes the rules used in the definition of the complexity classes NP and co-NP.[src] The concept of an ATM was set forth by Chandra and Stockmeyer and independently by Kozen in 1976, with a joint journal publication in 1981.[src] Formally, a (one-tape) alternating Turing machine is a 5-tuple M=(Q,\Gamma,\delta,q_0,g) where Q is the finite set of states \Gamma is the finite tape alphabet \delta:Q\times\Gamma\rightarrow\mathcal{P}(Q\times\Gamma\times\{L,R\}) is called the transition function (L shifts the head left and R shifts the head right) q_0\in Q is the initial state g:Q\rightarrow\{\wedge,\vee,accept,reject\} specifies the type of each state If M is in a state q\in Q with g(q)=accept then that configuration is said to be accepting, and if g(q)=reject the configuration is said to be rejecting.[src] A configuration with g(q)=\wedge is said to be accepting if all configurations reachable in one step are accepting, and rejecting if some configuration reachable in one step is rejecting.[src] A configuration with g(q)=\vee is said to be accepting when there exists some configuration reachable in one step that is accepting and rejecting when all configurations reachable in one step are rejecting (this is the type of all states in a classical NTM except the final state).[src] M is said to accept an input string w if the initial configuration of M (the state of M is q_0 , the head is at the left end of the tape, and the tape contains w) is accepting, and to reject if the initial configuration is rejecting.[src] Note that it is impossible for a configuration to be both accepting and rejecting, however, some configurations may be neither accepting or rejecting, due to the possibility of nonterminating computations.[src] \mathsf{AP}=\bigcup_{k>0}\mathsf{ATIME}(n^k) are the languages decidable in polynomial time \mathsf{APSPACE}=\bigcup_{k>0}\mathsf{ASPACE}(n^k) are the languages decidable in polynomial space \mathsf{AEXPTIME}=\bigcup_{k>0}\mathsf{ATIME}(2^{n^k}) are the languages decidable in exponential time These are similar to the definitions of P, PSPACE, and EXPTIME, considering the resources used by an ATM rather than a deterministic Turing machine.[src] Chandra, Kozen, and Stockmeyer proved that, for all f(n)\ge\log(n) and g(n)\ge\log(n) : \mathsf{ASPACE}(f(n))=\bigcup_{c>0}\mathsf{DTIME}(2^{cf(n)})=\mathsf{DTIME}(2^{O(f(n))}) \mathsf{ATIME}(g(n))\subseteq \mathsf{DSPACE}(g(n)) \mathsf{NSPACE}(g(n))\subseteq\bigcup_{c>0}\mathsf{ATIME}(c\times g(n)^2), In particular: ALOGSPACE = P AP = PSPACE APSPACE = EXPTIME AEXPTIME = EXPSPACE A more general form of these relationships is expressed by the parallel computation thesis.[src] ===Definition=== An alternating Turing machine with k alternations is an alternating Turing machine that switches from an existential to a universal state or vice versa no more than k−1 times.[src] (It is an alternating Turing machine whose states are divided into k sets.[src] The states in even-numbered sets are universal and the states in odd-numbered sets are existential (or vice versa).[src] The machine has no transitions between a state in set i and a state in set j < i.) \mathsf{ATIME}(C,j)=\Sigma_j \mathsf{TIME}(C) is the class of languages decidable in time f\in C by a machine beginning in an existential state and alternating at most j-1 times.[src] It is called the th level of the \mathsf{TIME}(C) hierarchy.[src] \mathsf{coATIME}(C,j)=\Pi_j \mathsf{TIME}(C) is defined in the same way, but beginning in a universal state; it consists of the complements of the languages in \mathsf{ATIME}(f,j) .[src] \mathsf{ASPACE}(C,j)=\Sigma_j \mathsf{SPACE}(C) is defined similarly for space bounded computation.[src] As a corollary of the Immerman–Szelepcsényi theorem, the logarithmic space hierarchy collapses to its first level.[src] As a corollary the \mathsf{SPACE}(f) hierarchy collapses to its first level when f=\Omega(\log) is space constructible .[src] ===Special cases=== An alternating Turing machine in polynomial time with k alternations, starting in an existential (respectively, universal) state can decide all the problems in the class \Sigma_k^p (respectively, \Pi_k^p ).[src] These classes are sometimes denoted \Sigma_k\rm{P} and \Pi_k\rm{P} , respectively.[src] See the polynomial hierarchy article for details.[src] Another special case of time hierarchies is the logarithmic hierarchy.[src]
24 sentences · 24 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Alternating Turing machine." encyclopegia.org, 2026, https://encyclopegia.org/wiki/alternating-turing-machine. Accessed 02 December 2026.
Chicago
"Alternating Turing machine." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/alternating-turing-machine.
APA
encyclopegia.org. (2026). Alternating Turing machine. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/alternating-turing-machine
Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON