Sample Sort Selection
Use sampling to approximate order statistics and refine selection efficiently.
4 notes
Use sampling to approximate order statistics and refine selection efficiently.
Select k distinct integers uniformly from a fixed range without shuffling the whole range.
Select a random sample from a stream where each item has a nonnegative weight.
Select a uniform random sample from a stream of unknown length using fixed memory.