Randomized algorithms use X=random(S) as a primitive, so is a random variable uniformly distributed over . Each random is considered independent.

Correctness and running time are random variables:

  • 
  • , where  is the random variable associated to worst-case complexity

Usually there are two techniques:

  • LAS VEGAS, which are always correct and the randomization only affects running time
  • MONTE CARLO, in which algorithms can be incorrect () and may affect running time

See also

References