Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Reservoir sampling?
Summarize this article for a 10 year old
Reservoir sampling is a family of randomized algorithms for choosing a simple random sample, without replacement, of k items from a population of unknown size n in a single pass over the items. The size of the population n is not known to the algorithm and is typically too large for all n items to fit into main memory. The population is revealed to the algorithm over time, and the algorithm cannot look back at previous items. At any point, the current state of the algorithm must permit extraction of a simple random sample without replacement of size k over the part of the population seen so far.
Oops something went wrong: