SkiplistList: An Efficient Random-Access List
Learn to implement a SkiplistList.
We'll cover the following...
A SkiplistList
implements the List
interface using a skiplist structure. In a SkiplistList
, contains the elements of the list in the order in which they appear in the list. As in a SkiplistSSet
, elements can be added, removed, and accessed in time.
The length of an edge
For this to be possible, we need a way to follow the search path for the element in . The easiest way to do this is to define the notion of the length of an edge in some list, ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy