Software Engineering KB

Home

❯

01 Foundations

❯

01 Algorithms

❯

01 Concept

❯

Reservoir Sampling

Reservoir Sampling

Feb 10, 20261 min read

  • algorithms
  • randomized
  • reservoir-sampling

Reservoir Sampling

← Back to Randomized & Probabilistic

An algorithm for randomly selecting k items from a stream of unknown length, ensuring each item has an equal probability of being selected. Used when data cannot fit in memory.

Key Properties

  • Streaming Data
  • Uniform Sampling

algorithms randomized reservoir-sampling


Graph View

  • Reservoir Sampling
  • Key Properties

Backlinks

  • Randomized & Probabilistic
  • Streaming Data
  • Uniform Sampling

Created with Quartz v4.5.2 © 2026

  • GitHub