Random Sampling with a Reservoir

  title={Random Sampling with a Reservoir},
  author={Jeffrey Scott Vitter},
  journal={ACM Trans. Math. Softw.},
We introduce fast algorithms for selecting a random sample of <italic>n</italic> records without replacement from a pool of <italic>N</italic> records, where the value of <italic>N</italic> is unknown beforehand. The main result of the paper is the design and analysis of Algorithm Z; it does the sampling in one pass using constant space and in <italic>O</italic>(<italic>n</italic>(1 + log(<italic>N/n</italic>))) expected time, which is optimum, up to a constant factor. Several optimizations are… CONTINUE READING
Highly Influential
This paper has highly influenced a number of papers. REVIEW HIGHLY INFLUENTIAL CITATIONS
Highly Cited
This paper has 1,076 citations. REVIEW CITATIONS

2 Figures & Tables



Citations per Year

1,077 Citations

Semantic Scholar estimates that this publication has 1,077 citations based on the available data.

See our FAQ for additional information.