All Questions
Consistent Hashing hard

In the Chord DHT protocol (a P2P consistent hashing implementation), naive lookups are O(N). How does Chord optimize this to O(log N)?

  1. A It relies on a centralized hierarchy of index servers that maintain the full global topology of the decentralized network.
  2. B It uses a blind 'Flooding' (Broadcast) mechanism where requests are forwarded to every connected peer until the data is found.
  3. C It caches every single key-to-node mapping locally on every participant node to ensure O(1) direct routing at the cost of memory.
  4. D It utilizes 'Finger Tables' where each node knows neighbors at distances of 2^i, allowing O(log N) jumps around the virtual ring.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions