Randomized
The class RP consists of all languages L that have a polynomial-time randomized algorithm A with the following behavior:
if \(x\in L,\) then A accept \(x\) in prob at most \(\frac{1}{2}\). and if \(x\notin L\) A always reject
The class BPP consists of all languages L that have a polynomial-time randomized algorithm A with the following behavior:
if \(x\in L,\) then A accept \(x\) in prob \(\ge \frac{3}{4}\). and if \(x\notin L\) A accept in prob \(\le \frac{1}{4}\)
(random algo) Given n digits strings \(a,b\in R^n\) and \(x\in \{ 0,1\} ^n\) then \( \Pr (ax=bx)\le 1/2\)
supose \(a_j\neq b_j\) Let \(\alpha =\sum a_ix_i,\beta =\sum b_ix_i\) when \(i\neq j\). then \(ax=\alpha +a_ix_i\), \(bx=\beta +b_ix_i\) then
(Adelman’s Theorem) Every \(L\in BPP\) can be decided by a family \(\{ C_n\} _{n\in N}\) of poly-size circuts