SkiplistSSet: An Efficient SSet

Learn to implement a SkiplistSSet.

A SkiplistSSet uses a skiplist structure to implement the SSet interface. When used in this way, the list L0L_0 stores the elements of the SSet in sorted order.

The find() method

The find(x) method works by following the search path for the smallest value yy such that yxy \ge x:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy