Misplaced Pages

Turing reduction

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Cook reduction) Concept in computability theory

In computability theory, a Turing reduction from a decision problem A {\displaystyle A} to a decision problem B {\displaystyle B} is an oracle machine that decides problem A {\displaystyle A} given an oracle for B {\displaystyle B} (Rogers 1967, Soare 1987). It can be understood as an algorithm that could be used to solve A {\displaystyle A} if it had available to it a subroutine for solving B {\displaystyle B} . The concept can be analogously applied to function problems.

If a Turing reduction from A {\displaystyle A} to B {\displaystyle B} exists, then every algorithm for B {\displaystyle B} can be used to produce an algorithm for A {\displaystyle A} , by inserting the algorithm for B {\displaystyle B} at each place where the oracle machine computing A {\displaystyle A} queries the oracle for B {\displaystyle B} . However, because the oracle machine may query the oracle a large number of times, the resulting algorithm may require more time asymptotically than either the algorithm for B {\displaystyle B} or the oracle machine computing A {\displaystyle A} . A Turing reduction in which the oracle machine runs in polynomial time is known as a Cook reduction.

The first formal definition of relative computability, then called relative reducibility, was given by Alan Turing in 1939 in terms of oracle machines. Later in 1943 and 1952 Stephen Kleene defined an equivalent concept in terms of recursive functions. In 1944 Emil Post used the term "Turing reducibility" to refer to the concept.

Definition

Given two sets A , B N {\displaystyle A,B\subseteq \mathbb {N} } of natural numbers, we say A {\displaystyle A} is Turing reducible to B {\displaystyle B} and write

A T B {\displaystyle A\leq _{T}B}

if and only if there is an oracle machine that computes the characteristic function of A when run with oracle B. In this case, we also say A is B-recursive and B-computable.

If there is an oracle machine that, when run with oracle B, computes a partial function with domain A, then A is said to be B-recursively enumerable and B-computably enumerable.

We say A {\displaystyle A} is Turing equivalent to B {\displaystyle B} and write A T B {\displaystyle A\equiv _{T}B\,} if both A T B {\displaystyle A\leq _{T}B} and B T A . {\displaystyle B\leq _{T}A.} The equivalence classes of Turing equivalent sets are called Turing degrees. The Turing degree of a set X {\displaystyle X} is written deg ( X ) {\displaystyle {\textbf {deg}}(X)} .

Given a set X P ( N ) {\displaystyle {\mathcal {X}}\subseteq {\mathcal {P}}(\mathbb {N} )} , a set A N {\displaystyle A\subseteq \mathbb {N} } is called Turing hard for X {\displaystyle {\mathcal {X}}} if X T A {\displaystyle X\leq _{T}A} for all X X {\displaystyle X\in {\mathcal {X}}} . If additionally A X {\displaystyle A\in {\mathcal {X}}} then A {\displaystyle A} is called Turing complete for X {\displaystyle {\mathcal {X}}} .

Relation of Turing completeness to computational universality

Turing completeness, as just defined above, corresponds only partially to Turing completeness in the sense of computational universality. Specifically, a Turing machine is a universal Turing machine if its halting problem (i.e., the set of inputs for which it eventually halts) is many-one complete for the set X {\displaystyle {\mathcal {X}}} of recursively enumerable sets. Thus, a necessary but insufficient condition for a machine to be computationally universal, is that the machine's halting problem be Turing-complete for X {\displaystyle {\mathcal {X}}} . Insufficient because it may still be the case that, the language accepted by the machine is not itself recursively enumerable.

Example

Let W e {\displaystyle W_{e}} denote the set of input values for which the Turing machine with index e halts. Then the sets A = { e e W e } {\displaystyle A=\{e\mid e\in W_{e}\}} and B = { ( e , n ) n W e } {\displaystyle B=\{(e,n)\mid n\in W_{e}\}} are Turing equivalent (here ( , ) {\displaystyle (-,-)} denotes an effective pairing function). A reduction showing A T B {\displaystyle A\leq _{T}B} can be constructed using the fact that e A ( e , e ) B {\displaystyle e\in A\Leftrightarrow (e,e)\in B} . Given a pair ( e , n ) {\displaystyle (e,n)} , a new index i ( e , n ) {\displaystyle i(e,n)} can be constructed using the smn theorem such that the program coded by i ( e , n ) {\displaystyle i(e,n)} ignores its input and merely simulates the computation of the machine with index e on input n. In particular, the machine with index i ( e , n ) {\displaystyle i(e,n)} either halts on every input or halts on no input. Thus i ( e , n ) A ( e , n ) B {\displaystyle i(e,n)\in A\Leftrightarrow (e,n)\in B} holds for all e and n. Because the function i is computable, this shows B T A {\displaystyle B\leq _{T}A} . The reductions presented here are not only Turing reductions but many-one reductions, discussed below.

Properties

  • Every set is Turing equivalent to its complement.
  • Every computable set is Turing reducible to every other set. Because any computable set can be computed with no oracle, it can be computed by an oracle machine that ignores the given oracle.
  • The relation T {\displaystyle \leq _{T}} is transitive: if A T B {\displaystyle A\leq _{T}B} and B T C {\displaystyle B\leq _{T}C} then A T C {\displaystyle A\leq _{T}C} . Moreover, A T A {\displaystyle A\leq _{T}A} holds for every set A, and thus the relation T {\displaystyle \leq _{T}} is a preorder (it is not a partial order because A T B {\displaystyle A\leq _{T}B} and B T A {\displaystyle B\leq _{T}A} does not necessarily imply A = B {\displaystyle A=B} ).
  • There are pairs of sets ( A , B ) {\displaystyle (A,B)} such that A is not Turing reducible to B and B is not Turing reducible to A. Thus T {\displaystyle \leq _{T}} is not a total order.
  • There are infinite decreasing sequences of sets under T {\displaystyle \leq _{T}} . Thus this relation is not well-founded.
  • Every set is Turing reducible to its own Turing jump, but the Turing jump of a set is never Turing reducible to the original set.

The use of a reduction

Since every reduction from a set A {\displaystyle A} to a set B {\displaystyle B} has to determine whether a single element is in A {\displaystyle A} in only finitely many steps, it can only make finitely many queries of membership in the set B {\displaystyle B} . When the amount of information about the set B {\displaystyle B} used to compute a single bit of A {\displaystyle A} is discussed, this is made precise by the use function. Formally, the use of a reduction is the function that sends each natural number n {\displaystyle n} to the largest natural number m {\displaystyle m} whose membership in the set B {\displaystyle B} was queried by the reduction while determining the membership of n {\displaystyle n} in A {\displaystyle A} .

Stronger reductions

There are two common ways of producing reductions stronger than Turing reducibility. The first way is to limit the number and manner of oracle queries.

  • Set A {\displaystyle A} is many-one reducible to B {\displaystyle B} if there is a total computable function f {\displaystyle f} such that an element n {\displaystyle n} is in A {\displaystyle A} if and only if f ( n ) {\displaystyle f(n)} is in B {\displaystyle B} . Such a function can be used to generate a Turing reduction (by computing f ( n ) {\displaystyle f(n)} , querying the oracle, and then interpreting the result).
  • A truth table reduction or a weak truth table reduction must present all of its oracle queries at the same time. In a truth table reduction, the reduction also gives a boolean function (a truth table) that, when given the answers to the queries, will produce the final answer of the reduction. In a weak truth table reduction, the reduction uses the oracle answers as a basis for further computation depending on the given answers (but not using the oracle). Equivalently, a weak truth table reduction is one for which the use of the reduction is bounded by a computable function. For this reason, weak truth table reductions are sometimes called "bounded Turing" reductions.

The second way to produce a stronger reducibility notion is to limit the computational resources that the program implementing the Turing reduction may use. These limits on the computational complexity of the reduction are important when studying subrecursive classes such as P. A set A is polynomial-time reducible to a set B {\displaystyle B} if there is a Turing reduction of A {\displaystyle A} to B {\displaystyle B} that runs in polynomial time. The concept of log-space reduction is similar.

These reductions are stronger in the sense that they provide a finer distinction into equivalence classes, and satisfy more restrictive requirements than Turing reductions. Consequently, such reductions are harder to find. There may be no way to build a many-one reduction from one set to another even when a Turing reduction for the same sets exists.

Weaker reductions

According to the Church–Turing thesis, a Turing reduction is the most general form of an effectively calculable reduction. Nevertheless, weaker reductions are also considered. Set A {\displaystyle A} is said to be arithmetical in B {\displaystyle B} if A {\displaystyle A} is definable by a formula of Peano arithmetic with B {\displaystyle B} as a parameter. The set A {\displaystyle A} is hyperarithmetical in B {\displaystyle B} if there is a recursive ordinal α {\displaystyle \alpha } such that A {\displaystyle A} is computable from B ( α ) {\displaystyle B^{(\alpha )}} , the α-iterated Turing jump of B {\displaystyle B} . The notion of relative constructibility is an important reducibility notion in set theory.

See also

Notes

  1. It is possible that B is an undecidable problem for which no algorithm exists.

References

External links

Alan Turing
Publications
Related
Categories: