Probabilistic Polynomial-time
   HOME

TheInfoList



OR:

In complexity theory, PP, or PPT is the class of
decision problem In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question on a set of input values. An example of a decision problem is deciding whether a given natura ...
s solvable by a
probabilistic Turing machine In theoretical computer science, a probabilistic Turing machine is a non-deterministic Turing machine that chooses between the available transitions at each point according to some probability distribution. As a consequence, a probabilistic Tur ...
in
polynomial time In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
, with an error probability of less than 1/2 for all instances. The abbreviation PP refers to probabilistic polynomial time. The complexity class was defined by Gill in 1977. If a decision problem is in PP, then there is an algorithm running in polynomial time that is allowed to make random decisions, such that it returns the correct answer with chance higher than 1/2. In more practical terms, it is the class of problems that can be solved to any fixed degree of accuracy by running a randomized, polynomial-time algorithm a sufficient (but bounded) number of times. Turing machines that are polynomially-bound and probabilistic are characterized as PPT, which stands for probabilistic polynomial-time machines. This characterization of Turing machines does not require a bounded error probability. Hence, PP is the complexity class containing all problems solvable by a PPT machine with an error probability of less than 1/2. An alternative characterization of PP is the set of problems that can be solved by a
nondeterministic Turing machine In theoretical computer science, a nondeterministic Turing machine (NTM) is a theoretical model of computation whose governing rules specify more than one possible action when in some given situations. That is, an NTM's next state is ''not'' comp ...
in polynomial time where the acceptance condition is that a majority (more than half) of computation paths accept. Because of this some authors have suggested the alternative name ''Majority-P''.


Definition

A language ''L'' is in PP if and only if there exists a probabilistic Turing machine ''M'', such that * ''M'' runs for polynomial time on all inputs * For all ''x'' in ''L'', ''M'' outputs 1 with probability no less than 1/2 * For all ''x'' not in ''L'', ''M'' outputs 1 with probability strictly less than 1/2. Alternatively, PP can be defined using only deterministic Turing machines. A language ''L'' is in PP if and only if there exists a polynomial ''p'' and deterministic Turing machine ''M'', such that * ''M'' runs for polynomial time on all inputs * For all ''x'' in ''L'', the fraction of strings ''y'' of length ''p''(, ''x'', ) which satisfy ''M(x,y)'' = 1 is greater than 1/2 * For all ''x'' not in ''L'', the fraction of strings ''y'' of length ''p''(, ''x'', ) which satisfy ''M(x,y)'' = 1 is less than 1/2. In this definition, the string ''y'' corresponds to the output of the random coin flips that the probabilistic Turing machine would have made. In both definitions, "less than" can be changed to "less than or equal to" (see below), and the threshold 1/2 can be replaced by any fixed rational number in (0,1), without changing the class.


PP vs BPP

BPP is a subset of PP; it can be seen as the subset for which there are efficient probabilistic algorithms. The distinction is in the error probability that is allowed: in BPP, an algorithm must give correct answer (YES or NO) with probability exceeding some fixed constant c > 1/2, such as 2/3 or 501/1000. If this is the case, then we can run the algorithm a number of times and take a majority vote to achieve any desired probability of correctness less than 1, using the
Chernoff bound In probability theory, a Chernoff bound is an exponentially decreasing upper bound on the tail of a random variable based on its moment generating function. The minimum of all such exponential bounds forms ''the'' Chernoff or Chernoff-Cramér boun ...
. This number of repeats increases if ''c'' becomes closer to 1/2, but it does not depend on the input size ''n''. More generally, if ''c'' can depend on the input size n polynomially, as c = O(n^) , then we can rerun the algorithm for O(n^) and take the majority vote. By
Hoeffding's inequality In probability theory, Hoeffding's inequality provides an upper bound on the probability that the sum of bounded independent random variables deviates from its expected value by more than a certain amount. Hoeffding's inequality was proven by Wass ...
, this gives us a BPP algorithm. The important thing is that this constant ''c'' is not allowed to depend on the input. On the other hand, a PP algorithm is permitted to do something like the following: * On a YES instance, output YES with probability 1/2 + 1/2''n'', where ''n'' is the length of the input. * On a NO instance, output YES with probability 1/2 − 1/2''n''. Because these two probabilities are ''exponentially'' close together, even if we run it for a ''polynomial'' number of times it is very difficult to tell whether we are operating on a YES instance or a NO instance. Attempting to achieve a fixed desired probability level using a majority vote and the Chernoff bound requires a number of repetitions that is exponential in ''n''.


PP compared to other complexity classes

PP includes BPP, since probabilistic algorithms described in the definition of BPP form a subset of those in the definition of PP. PP also includes NP. To prove this, we show that the
NP-complete In computational complexity theory, NP-complete problems are the hardest of the problems to which ''solutions'' can be verified ''quickly''. Somewhat more precisely, a problem is NP-complete when: # It is a decision problem, meaning that for any ...
satisfiability In mathematical logic, a formula is ''satisfiable'' if it is true under some assignment of values to its variables. For example, the formula x+3=y is satisfiable because it is true when x=3 and y=6, while the formula x+1=x is not satisfiable over ...
problem belongs to PP. Consider a probabilistic algorithm that, given a formula ''F''(''x''1, ''x''2, ..., ''x''''n'') chooses an assignment ''x''1, ''x''2, ..., ''x''''n'' uniformly at random. Then, the algorithm checks if the assignment makes the formula ''F'' true. If yes, it outputs YES. Otherwise, it outputs YES with probability \frac12 - \frac1 and NO with probability \frac12 + \frac1. If the formula is unsatisfiable, the algorithm will always output YES with probability \frac12 - \frac1 < \frac12. If there exists a satisfying assignment, it will output YES with probability at least \left(\frac12 - \frac1\right)\cdot \left(1 - \frac1\right) + 1\cdot\frac1 = \frac12 + \frac1 > \frac12 (exactly 1/2 if it picked an unsatisfying assignment and 1 if it picked a satisfying assignment, averaging to some number greater than 1/2). Thus, this algorithm puts satisfiability in PP. As SAT is NP-complete, and we can prefix any deterministic
polynomial-time many-one reduction In computational complexity theory, a polynomial-time reduction is a method for solving one problem using another. One shows that if a hypothetical subroutine solving the second problem exists, then the first problem can be solved by transforming ...
onto the PP algorithm, NP is included in PP. Because PP is closed under complement, it also includes co-NP. Furthermore, PP includes MA, which subsumes the previous two inclusions. PP also includes BQP, the class of decision problems solvable by efficient polynomial time
quantum computer A quantum computer is a computer that exploits quantum mechanical phenomena. On small scales, physical matter exhibits properties of both particles and waves, and quantum computing takes advantage of this behavior using specialized hardware. ...
s. In fact, BQP is
low Low or LOW or lows, may refer to: People * Low (surname), listing people surnamed Low Places * Low, Quebec, Canada * Low, Utah, United States * Lo Wu station (MTR code LOW), Hong Kong; a rail station * Salzburg Airport (ICAO airport code: LO ...
for PP, meaning that a PP machine achieves no benefit from being able to solve BQP problems instantly. The class of polynomial time on quantum computers with
postselection In probability theory, to postselect is to condition a probability space upon the occurrence of a given event. In symbols, once we postselect for an event E, the probability of some other event F changes from \operatorname /math> to the conditional ...
,
PostBQP In computational complexity theory, PostBQP is a complexity class consisting of all of the computational problems solvable in polynomial time on a quantum Turing machine with postselection and bounded error (in the sense that the algorithm is correc ...
, is equal to PP (see #PostBQP below). Furthermore, PP includes QMA, which subsumes inclusions of MA and BQP. A polynomial time Turing machine with a PP
oracle An oracle is a person or thing considered to provide insight, wise counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. If done through occultic means, it is a form of divination. Descript ...
(PPP) can solve all problems in PH, the entire
polynomial hierarchy In computational complexity theory, the polynomial hierarchy (sometimes called the polynomial-time hierarchy) is a hierarchy of complexity classes that generalize the classes NP and co-NP. Each class in the hierarchy is contained within PSPACE. ...
. This result was shown by Seinosuke Toda in 1989 and is known as
Toda's theorem Toda's theorem is a result in computational complexity theory that was proven by Seinosuke Toda in his paper "PP is as Hard as the Polynomial-Time Hierarchy" and was given the 1998 Gödel Prize. Statement The theorem states that the entire polyn ...
. This is evidence of how hard it is to solve problems in PP. The class #P is in some sense about as hard, since P#P = PPP and therefore P#P includes PH as well. PP strictly includes uniform TC0, the class of constant-depth, unbounded-fan-in
boolean circuit In computational complexity theory and circuit complexity, a Boolean circuit is a mathematical model for combinational digital logic circuits. A formal language can be decided by a family of Boolean circuits, one circuit for each possible inpu ...
s with majority gates that are uniform (generated by a polynomial-time algorithm). PP is included in
PSPACE In computational complexity theory, PSPACE is the set of all decision problems that can be solved by a Turing machine using a polynomial amount of space. Formal definition If we denote by SPACE(''f''(''n'')), the set of all problems that can ...
. This can be easily shown by exhibiting a polynomial-space algorithm for MAJSAT, defined below; simply try all assignments and count the number of satisfying ones. PP is not included in SIZE(nk) for any k, by Kannan's theorem.


Complete problems and other properties

Unlike BPP, PP is a syntactic rather than semantic class. Any polynomial-time probabilistic machine recognizes some language in PP. In contrast, given a description of a polynomial-time probabilistic machine, it is undecidable in general to determine if it recognizes a language in BPP. PP has natural complete problems, for example, MAJSAT. MAJSAT is a decision problem in which one is given a Boolean formula F. The answer must be YES if more than half of all assignments ''x''1, ''x''2, ..., ''x''''n'' make F true and NO otherwise.


Proof that PP is closed under complement

Let ''L'' be a language in PP. Let L^c denote the complement of ''L''. By the definition of PP there is a polynomial-time probabilistic algorithm ''A'' with the property that :x \in L \Rightarrow \Pr \text x> \frac \quad \text \quad x \not\in L \Rightarrow \Pr \text x\le \frac. We claim that
without loss of generality ''Without loss of generality'' (often abbreviated to WOLOG, WLOG or w.l.o.g.; less commonly stated as ''without any loss of generality'' or ''with no loss of generality'') is a frequently used expression in mathematics. The term is used to indicat ...
, the latter inequality is always strict; the theorem can be deduced from this claim: let A^c denote the machine which is the same as ''A'' except that A^c accepts when ''A'' would reject, and vice versa. Then :x \in L^c \Rightarrow \Pr ^c \text x> \frac \quad \text \quad x \not\in L^c \Rightarrow \Pr ^c \text x< \frac, which implies that L^c is in PP. Now we justify our without loss of generality assumption. Let f(, x, ) be the polynomial upper bound on the running time of ''A'' on input ''x''. Thus ''A'' makes at most f(, x, ) random coin flips during its execution. In particular the probability of acceptance is an integer multiple of 2^ and we have: :x \in L \Rightarrow \Pr \text x\ge \frac + \frac. Define a machine ''A''′ as follows: on input ''x'', ''A''′ runs ''A'' as a subroutine, and rejects if ''A'' would reject; otherwise, if ''A'' would accept, ''A''′ flips f(, x, )+1 coins and rejects if they are all heads, and accepts otherwise. Then :x \not\in L \Rightarrow \Pr ' \text x\le \frac \cdot \left (1- \frac \right ) < \frac and : x \in L \Rightarrow \Pr ' \text x\ge \left (\frac+\frac \right )\cdot \left ( 1-\frac \right ) > \frac. This justifies the assumption (since ''A''′ is still a polynomial-time probabilistic algorithm) and completes the proof. David Russo proved in his 1985 Ph.D. thesis that PP is closed under
symmetric difference In mathematics, the symmetric difference of two sets, also known as the disjunctive union and set sum, is the set of elements which are in either of the sets, but not in their intersection. For example, the symmetric difference of the sets \ and ...
. It was an
open problem In science and mathematics, an open problem or an open question is a known problem which can be accurately stated, and which is assumed to have an objective and verifiable solution, but which has not yet been solved (i.e., no solution for it is kno ...
for 14 years whether PP was closed under union and
intersection In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
; this was settled in the affirmative by Beigel, Reingold, and Spielman. Alternate proofs were later given by Li and Aaronson (see #PostBQP below).


Other equivalent complexity classes


PostBQP

The quantum complexity class BQP is the class of problems solvable in
polynomial time In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
on a
quantum Turing machine A quantum Turing machine (QTM) or universal quantum computer is an abstract machine used to model the effects of a quantum computer. It provides a simple model that captures all of the power of quantum computation—that is, any quantum algorith ...
. By adding
postselection In probability theory, to postselect is to condition a probability space upon the occurrence of a given event. In symbols, once we postselect for an event E, the probability of some other event F changes from \operatorname /math> to the conditional ...
, a larger class called
PostBQP In computational complexity theory, PostBQP is a complexity class consisting of all of the computational problems solvable in polynomial time on a quantum Turing machine with postselection and bounded error (in the sense that the algorithm is correc ...
is obtained. Informally, postselection gives the computer the following power: whenever some event (such as measuring a qubit in a certain state) has nonzero probability, you are allowed to assume that it takes place.
Scott Aaronson Scott Joel Aaronson (born May 21, 1981) is an American Theoretical computer science, theoretical computer scientist and Schlumberger Centennial Chair of Computer Science at the University of Texas at Austin. His primary areas of research are ...
showed in 2004 that PostBQP is equal to PP. This reformulation of PP makes it easier to show certain results, such as that PP is closed under intersection (and hence, under union), that BQP is
low Low or LOW or lows, may refer to: People * Low (surname), listing people surnamed Low Places * Low, Quebec, Canada * Low, Utah, United States * Lo Wu station (MTR code LOW), Hong Kong; a rail station * Salzburg Airport (ICAO airport code: LO ...
for PP, and that QMA is included in PP.


PQP

PP is also equal to another quantum complexity class known as PQP, which is the unbounded error analog of BQP. It denotes the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of less than 1/2 for all instances. Even if all amplitudes used for PQP-computation are drawn from algebraic numbers, still PQP coincides with PP.


Notes


References

*. *. *


External links

* {{ComplexityClasses Probabilistic complexity classes Quantum complexity theory