Randomized

Theorem

The class RP consists of all languages L that have a polynomial-time randomized algorithm A with the following behavior:
if xL, then A accept x in prob at most 12. and if xL A always reject

c0RP(2nc)=NPRP(nc)=RP(12)=RP(12nc)

Theorem

The class BPP consists of all languages L that have a polynomial-time randomized algorithm A with the following behavior:
if xL, then A accept x in prob 34. and if xL A accept in prob 14

coRP=BPP(12,1)BPP(αnc,α+nc)=BPP(2nc,12nc)

Theorem

(random algo) Given n digits strings a,bRn and x{0,1}n then Pr(ax=bx)1/2

Proof

supose ajbj Let α=aixi,β=bixi when ij. then ax=α+aixi, bx=β+bixi then

axbx=(αβ)+(aibi)xiPr(axbx=0)=Pr(xiαβbiai)1/2

Theorem

(Adelman’s Theorem) Every LBPP can be decided by a family {Cn}nN of poly-size circuts