encyclopegia.org

BPP (complexity)

In computational complexity theory, a branch of computer science, bounded-error probabilistic polynomial time (BPP) is the class of decision problems solvable by a probabilistic Turing machine in polynomial time with an error probability bounded by 1/3 for all instances. BPP is one of the largest practical classes of problems, meaning most problems of interest in BPP have efficient probabilistic algorithms that can be run quickly on real modern machines. BPP also contains P, the class of problems solvable in polynomial time with a deterministic machine, since a deterministic algorithm is a special case of a probabilistic algorithm. Informally, a problem is in BPP if there is an algorithm for it that has the following properties: *It is allowed to flip coins and make random decisions *It is guaranteed to run in polynomial time *On any given run of the algorithm, it has a probability of at most 1/3 of giving the wrong answer, whether the answer is YES or NO.

In computational complexity theory, a branch of computer science, bounded-error probabilistic polynomial time (BPP) is the class of decision problems solvable by a probabilistic Turing machine in polynomial time with an error probability bounded by 1/3 for all instances. BPP is one of the largest practical classes of problems, meaning most problems of interest in BPP have efficient probabilistic algorithms that can be run quickly on real modern machines. BPP also contains P, the class of problems solvable in polynomial time with a deterministic machine, since a deterministic algorithm is a special case of a probabilistic algorithm. Informally, a problem is in BPP if there is an algorithm for it that has the following properties: It is allowed to flip coins and make random decisions It is guaranteed to run in polynomial time On any given run of the algorithm, it has a probability of at most 1/3 of giving the wrong answer, whether the answer is YES or NO. All problems in P are obviously also in BPP. However, many problems have been known to be in BPP but not known to be in P. The number of such problems is decreasing, and it is conjectured that P = BPP. For a long time, one of the most famous problems known to be in BPP but not known to be in P was the problem of determining whether a given number is prime. However, in the 2002 paper PRIMES is in P, Manindra Agrawal and his students Neeraj Kayal and Nitin Saxena found a deterministic polynomial-time algorithm for this problem, thus showing that it is in P. An important example of a problem in BPP (in fact in co-RP) still not known to be in P is polynomial identity testing, the problem of determining whether a polynomial is identically equal to the zero polynomial, when you have access to the value of the polynomial for any given input, but not to the coefficients. In other words, is there an assignment of values to the variables such that when a nonzero polynomial is evaluated on these values, the result is nonzero? It suffices to choose each variable's value uniformly at random from a finite subset of at least d values to achieve bounded error probability, where d is the total degree of the polynomial. It is known that BPP is closed under complement; that is, BPP = co-BPP. BPP is low for itself, meaning that a BPP machine with the power to solve BPP problems instantly (a BPP oracle machine) is not any more powerful than the machine without this extra power. In symbols, BPP BPP = BPP. The relationship between BPP and NP is unknown: it is not known whether BPP is a subset of NP, NP is a subset of BPP or neither. If NP is contained in BPP, which is considered unlikely since it would imply practical solutions for NP-complete problems, then NP = RP and PH ⊆ BPP. It is known that RP is a subset of BPP, and BPP is a subset of PP. It is not known whether those two are strict subsets, since we don't even know if P is a strict subset of PSPACE. BPP is contained in the second level of the polynomial hierarchy and therefore it is contained in PH. More precisely, the Sipser–Lautemann theorem states that \mathsf{BPP} \subseteq \Sigma_2 \cap \Pi_2 . As a result, P = NP leads to P = BPP since PH collapses to P in this case. Thus either P = BPP or P ≠ NP or both. Adleman's theorem states that membership in any language in BPP can be determined by a family of polynomial-size Boolean circuits, which means BPP is contained in P/poly. Indeed, as a consequence of the proof of this fact, every BPP algorithm operating on inputs of bounded length can be derandomized into a deterministic algorithm using a fixed string of random bits. Finding this string may be expensive, however. Some weak separation results for Monte Carlo time classes were proven by , see also . Relative to oracles, we know that there exist oracles A and B, such that P A = BPP A and P B ≠ BPP B . Moreover, relative to a random oracle with probability 1, P = BPP and BPP is strictly contained in NP and co-NP. There is even an oracle in which (and hence ), which can be iteratively constructed as follows. For a fixed E NP (relativized) complete problem, the oracle will give correct answers with high probability if queried with the problem instance followed by a random string of length kn (n is instance length; k is an appropriate small constant). Start with n=1. For every instance of the problem of length n fix oracle answers (see lemma below) to fix the instance output. Next, provide the instance outputs for queries consisting of the instance followed by kn-length string, and then treat output for queries of length ≤(k+1)n as fixed, and proceed with instances of length n+1. The lemma ensures that (for a large enough k), it is possible to do the construction while leaving enough strings for the relativized answers. Also, we can ensure that for the relativized , linear time suffices, even for function problems (if given a function oracle and linear output size) and with exponentially small (with linear exponent) error probability. Also, this construction is effective in that given an arbitrary oracle A we can arrange the oracle B to have and . Also, for a oracle (and hence ), one would fix the answers in the relativized E computation to a special nonanswer, thus ensuring that no fake answers are given. The existence of certain strong pseudorandom number generators is conjectured by most experts of the field. Such generators could replace true random numbers in any polynomial-time randomized algorithm, producing indistinguishable results. The conjecture that these generators exist implies that randomness does not give additional computational power to polynomial time computation, that is, P = RP = BPP. More strongly, the assumption that P = BPP is in some sense equivalent to the existence of strong pseudorandom number generators. László Babai, Lance Fortnow, Noam Nisan, and Avi Wigderson showed that unless EXPTIME collapses to MA, BPP is contained in \textsf{i.o.-SUBEXP} = \bigcap\nolimits_{\varepsilon>0} \textsf{i.o.-DTIME} \left (2^{n^\varepsilon} \right). The class i.o.-SUBEXP, which stands for infinitely often SUBEXP, contains problems which have sub-exponential time algorithms for infinitely many input sizes. They also showed that P = BPP if the exponential-time hierarchy, which is defined in terms of the polynomial hierarchy and E as E PH , collapses to E; however, note that the exponential-time hierarchy is usually conjectured not to collapse. Russell Impagliazzo and Avi Wigderson showed that if any problem in E, where \mathsf{E} = \mathsf{DTIME} \left( 2^{O(n)} \right), has circuit complexity 2 Ω(n) then P = BPP. Valentine Kabanets (2003). "CMPT 710 – Complexity Theory: Lecture 16". Simon Fraser University. Pages 257–259 of section 11.3: Random Sources. Pages 269–271 of section 11.4: Circuit complexity. Section 10.2.1: The class BPP, pp. 336–339. Arora, Sanjeev; Boaz Barak (2009). "Computational Complexity: A Modern Approach".

References

  1. Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved 2026-11-19." Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved. 2026-11-18. https://www.cs.sfu.ca/~kabanets/cmpt710/lec16.pdf. Accessed 24 November 2026.

    Chicago "Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved 2026-11-19." Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved. 2026-11-18. https://www.cs.sfu.ca/~kabanets/cmpt710/lec16.pdf.

    APA Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved. (2026). Valentine Kabanets, CMPT 710 - Complexity Theory: Lecture 16 , October 28, 2003 Wikipedia revision 1351368610, retrieved 2026-11-19. Retrieved November 24, 2026, from https://www.cs.sfu.ca/~kabanets/cmpt710/lec16.pdf

  2. P = BPP if E requires exponential circuits: Derandomizing the XOR Lemma · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "P = BPP if E requires exponential circuits: Derandomizing the XOR Lemma." Russell Impagliazzo and Avi Wigderson (1997). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "P = BPP if E requires exponential circuits: Derandomizing the XOR Lemma." Russell Impagliazzo and Avi Wigderson (1997). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Russell Impagliazzo and Avi Wigderson (1997). (2026). P = BPP if E requires exponential circuits: Derandomizing the XOR Lemma. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  3. Madhu Sudan and Shien Jin Ong. Massachusetts Institute of Technology: 6.841/18.405J Advanced Complexity Theory: Lecture 6: Randomized Algorithms, Properties of BPP . February 26, 2003. Wikipedia revision 1351368610, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Madhu Sudan and Shien Jin Ong. Massachusetts Institute of Technology: 6.841/18.405J Advanced Complexity Theory: Lecture 6: Randomized Algorithms, Properties of BPP . February 26, 2003. Wikipedia revision 1351368610, retrieved 2026-11-19." Madhu Sudan and Shien Jin Ong. 2026-11-18. https://people.csail.mit.edu/madhu/ST03/scribe/lect06.pdf. Accessed 24 November 2026.

    Chicago "Madhu Sudan and Shien Jin Ong. Massachusetts Institute of Technology: 6.841/18.405J Advanced Complexity Theory: Lecture 6: Randomized Algorithms, Properties of BPP . February 26, 2003. Wikipedia revision 1351368610, retrieved 2026-11-19." Madhu Sudan and Shien Jin Ong. 2026-11-18. https://people.csail.mit.edu/madhu/ST03/scribe/lect06.pdf.

    APA Madhu Sudan and Shien Jin Ong. (2026). Madhu Sudan and Shien Jin Ong. Massachusetts Institute of Technology: 6.841/18.405J Advanced Complexity Theory: Lecture 6: Randomized Algorithms, Properties of BPP . February 26, 2003. Wikipedia revision 1351368610, retrieved 2026-11-19. Retrieved November 24, 2026, from https://people.csail.mit.edu/madhu/ST03/scribe/lect06.pdf

  4. Complexity Zoo:B - Complexity Zoo · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Complexity Zoo:B - Complexity Zoo." 2026-11-18. https://complexityzoo.net/Complexity_Zoo:B#bpppath. Accessed 24 November 2026.

    Chicago "Complexity Zoo:B - Complexity Zoo." 2026-11-18. https://complexityzoo.net/Complexity_Zoo:B#bpppath.

    APA encyclopegia.org. (2026). Complexity Zoo:B - Complexity Zoo. Retrieved November 24, 2026, from https://complexityzoo.net/Complexity_Zoo:B#bpppath

  5. Lance Fortnow, Pulling Out The Quantumness , December 20, 2005 Wikipedia revision 1351368610, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Lance Fortnow, Pulling Out The Quantumness , December 20, 2005 Wikipedia revision 1351368610, retrieved 2026-11-19." 2026-11-18. http://weblog.fortnow.com/2005/12/pulling-out-quantumness.html. Accessed 24 November 2026.

    Chicago "Lance Fortnow, Pulling Out The Quantumness , December 20, 2005 Wikipedia revision 1351368610, retrieved 2026-11-19." 2026-11-18. http://weblog.fortnow.com/2005/12/pulling-out-quantumness.html.

    APA encyclopegia.org. (2026). Lance Fortnow, Pulling Out The Quantumness , December 20, 2005 Wikipedia revision 1351368610, retrieved 2026-11-19. Retrieved November 24, 2026, from http://weblog.fortnow.com/2005/12/pulling-out-quantumness.html

  6. Two theorems on random polynomial time · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Two theorems on random polynomial time." Adleman, L. 2026-11-18. https://en.wikipedia.org/wiki/Leonard_Adleman. Accessed 24 November 2026.

    Chicago "Two theorems on random polynomial time." Adleman, L. 2026-11-18. https://en.wikipedia.org/wiki/Leonard_Adleman.

    APA Adleman, L. (2026). Two theorems on random polynomial time. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Leonard_Adleman

  7. Relative to a Random Oracle A, P^A != NP^A != co-NP^A with Probability 1 · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "Relative to a Random Oracle A, P^A != NP^A != co-NP^A with Probability 1." Bennett, Charles H. 2026-11-18. https://en.wikipedia.org/wiki/Charles_H._Bennett_(computer_scientist). Accessed 24 November 2026.

    Chicago "Relative to a Random Oracle A, P^A != NP^A != co-NP^A with Probability 1." Bennett, Charles H. 2026-11-18. https://en.wikipedia.org/wiki/Charles_H._Bennett_(computer_scientist).

    APA Bennett, Charles H. (2026). Relative to a Random Oracle A, P^A != NP^A != co-NP^A with Probability 1. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Charles_H._Bennett_(computer_scientist)

  8. On relativized exponential and probabilistic complexity classes · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "On relativized exponential and probabilistic complexity classes." Heller, Hans (1986), "On relativized exponential and probabilistic complexity classes", Information and Control , 71 (3). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "On relativized exponential and probabilistic complexity classes." Heller, Hans (1986), "On relativized exponential and probabilistic complexity classes", Information and Control , 71 (3). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Heller, Hans (1986), "On relativized exponential and probabilistic complexity classes", Information and Control , 71 (3). (2026). On relativized exponential and probabilistic complexity classes. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  9. In a World of P=BPP · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "In a World of P=BPP." Goldreich, Oded (2011). 2026-11-18. https://www.wisdom.weizmann.ac.il/~oded/PDF/bpp.pdf. Accessed 24 November 2026.

    Chicago "In a World of P=BPP." Goldreich, Oded (2011). 2026-11-18. https://www.wisdom.weizmann.ac.il/~oded/PDF/bpp.pdf.

    APA Goldreich, Oded (2011). (2026). In a World of P=BPP. Retrieved November 24, 2026, from https://www.wisdom.weizmann.ac.il/~oded/PDF/bpp.pdf

  10. BPP has subexponential time simulations unless EXPTIME has publishable proofs · retrieved 2026-11-18 · rev 1351368610
    Cite this reference

    MLA "BPP has subexponential time simulations unless EXPTIME has publishable proofs." Babai, László; Fortnow, Lance; Nisan, Noam; Wigderson, Avi (1993). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "BPP has subexponential time simulations unless EXPTIME has publishable proofs." Babai, László; Fortnow, Lance; Nisan, Noam; Wigderson, Avi (1993). 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Babai, László; Fortnow, Lance; Nisan, Noam; Wigderson, Avi (1993). (2026). BPP has subexponential time simulations unless EXPTIME has publishable proofs. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

Cite this article

MLA

"BPP (complexity)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bpp-complexity. Accessed 24 November 2026.

Chicago

"BPP (complexity)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/bpp-complexity.

APA

encyclopegia.org. (2026). BPP (complexity). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/bpp-complexity

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Semiotic theory of complexity

stub · references available

BPP

stub · references available

BPP

stub · references available

Kolmogorov complexity

stub · references available

BPP Law School

stub · references available

Economic Complexity Index

stub · references available

language complexity

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1351368610 · 0.5 · snapshot enwiki-001351368610

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.