Math 2.0

Computer science Definition

ZPP

Builds on Probabilistic Turing machineComplexity classRP

Definition

A language L⊆{0,1}∗L \subseteq \set{0,1}^* is in ZPP if there are a polynomial pp and a probabilistic Turing machine MM such that, for every input xx:

  1. MM halts with probability 11, and when it halts it outputs 11 if x∈Lx \in L and 00 if x∉Lx \notin L;
  2. the expected number of steps of MM on xx, over its coin flips, is at most p(∣x∣)p(\abs{x}).

Remarks

Equivalently, ZPP=RP∩co-RP\mathrm{ZPP} = \mathrm{RP} \cap \text{co-RP}, with RP the class of one-sided error. Suppose LL has an RP machine M1M_1 and its complement has an RP machine M2M_2. Run both in rounds until one of them accepts. An accepting run of M1M_1 proves x∈Lx \in L, and an accepting run of M2M_2 proves x∉Lx \notin L. Each round succeeds with probability at least 1/21/2, so the expected number of rounds is at most 22. Conversely, by Markov's inequality a ZPP machine stopped after 2p(∣x∣)2p(\abs{x}) steps has halted with probability at least 1/21/2, which gives RP machines for LL and its complement.

Example: every language in P is in ZPP, using a machine that ignores its coins.

Non-example: a machine that runs in polynomial time but answers wrongly with probability 1/101/10 on some input fails clause 1.

Another equivalent form: there is a polynomial-time machine with outputs 00, 11 and "?" that never gives a wrong 00 or 11 and outputs "?" with probability at most 1/21/2.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Complexity class concept
  2. Probabilistic Turing machine concept
  3. RP concept
  4. ZPP definition

Further reading

  1. Web https://en.wikipedia.org/wiki/ZPP_(complexity)
About this page
TagXQQVHNQ3FW
URIm2://XQQVHNQ3FW
Kinddefinition
WritingW0 stub
MSC68Q15, 68Q10, 68W20
DefinesZPP
UsesProbabilistic Turing machine, Complexity class, RP
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.