Two hash keys landing close on a ring
A consistent-hashing scheme places keys uniformly at random on a ring of positions. Two keys "crowd" each other if they land within positions (a window of ).
What is the probability that at least one pair of keys crowds another?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Odds of a near-birthday in a group of tenDo two guests arrive within five minutes?The birthday attack on an N-bit hashColliding PIN codesWhen the square-root rule undercounts by one
All questions →