Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
chpatrick
· 2y ago · 0 comments
Another nice one is O(1) weighted sampling (after O(n) preprocessing).
https://en.wikipedia.org/wiki/Alias_method
Comments
No comments yet.
Better HN