Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Given a sorted ring with 4 servers and k=3 virtual nodes each, find the correct server for 5 different user hash values using the clockwise upper-bound rule.
Sorted ring · 4 servers (A B C D) · k = 3 virtual nodes each
Rule: walk clockwise (right) from the user's hash position → first server you hit handles the request. Wrap to index 0 if you reach the end.
Each server appears 3 times in the ring (k = 3 virtual nodes). Finding the next entry clockwise is equivalent to a binary search for the upper bound in the sorted array.