Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alxv
· 9y ago · 0 comments
The method is called "Power of Two
Random Choices
" (
http://www.eecs.harvard.edu/~michaelm/postscripts/handbook20...
). And the two-choices paradigm is widely applicable beyond load balancing. In particular, it applies to hash table design (e.g. cuckoo hashing) and cache eviction schemes (
https://danluu.com/2choices-eviction/
).
Comments
[–]
mrkurt
9y ago
You're right, I updated the title. Got a little too clever with the whole "power" thing.
[–]
naiveattack
9y ago
"while each additional choice beyond two decreases the maximum load by only a constant factor"
Mathemagical!
[–]
adrianN
9y ago
It also works for solving SAT. Try two literals and recurse on the one that can be made to satisfy more clauses.