Arrow Research search
Back to FOCS

FOCS 1983

Optimum Algorithms for Two Random Sampling Problems (Extended Abstract)

Conference Paper Session 1 Algorithms and Complexity ยท Theoretical Computer Science

Abstract

Several fast new algorithms are presented for sampling n records at random from a file containing N records. The first problem we solve deals with sampling when N is known, and the the second problem considers the case when N is unknown. The two main results in this paper are Algorithms D and Z. Algorithm D solves the first problem by doing the sampling with a small constant amount of space and in O(n) time, on the average; roughly n uniform random variates are generated, and approximately n exponentiation operations are performed during the sampling The sample is selected sequentially and online; it answers an open problem in [Knuth 81]. Algorithm Z solves the second problem by doing the sampling using O(n) space, roughly n ln(N/n) uniform random variates and O(n(1 + log(N/n))) time, on the average. Both algorithms are time- and space-optimum and are short and easy to implement.

Authors

Keywords

  • Sampling methods
  • Iterative algorithms
  • Computer science
  • Sorting
  • Algorithm design and analysis
  • Time measurement
  • Read-write memory
  • Statistics
  • Application software
  • Quality control
  • Sampling Method
  • Random Variables
  • Random Sampling
  • Sample Types
  • Running Time
  • Time Constant
  • Optimal Time
  • Sequencing Of Samples
  • Sequencing Methods
  • Probability Function
  • First Pass
  • Number Range
  • Newton Method
  • Sequential Algorithm
  • Average Running Time
  • Unit Interval
  • Reservoir Size
  • Uniform Variables
  • Random Sample Of Size
  • Exponentiation Operations
  • Proof Of Theorem

Context

Venue
IEEE Symposium on Foundations of Computer Science
Archive span
1975-2025
Indexed papers
3809
Paper id
637029108977600207
v2026.09.13