Qm

Two hash keys landing close on a ring

A consistent-hashing scheme places 3030 keys uniformly at random on a ring of 10001000 positions. Two keys "crowd" each other if they land within 22 positions (a window of ±2\pm 2).

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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. 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 →