Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
unsupported
· 8y ago · 0 comments
Reservoir sampling or Algorithm R. It allows you to randomly choose a sample of k items (with equal probability) from an "infinite" stream of items. At first it sounds impossible, but the solution and proof are extremely simple and elegant.
Comments
No comments yet.
Better HN