(picture)

October 11, 2003

SkipList

Via Patrick Logan: Skip Lists: a probabilistic alternative to balanced trees (PDF):

Skip lists are a simple data structure that can be used in place of balanced trees for most applications. Skip lists algorithms are very easy to implement, extend and modify. Skip lists are about as fast as highly optimized balanced tree algorithms and are substantially faster than casually implemented balanced tree algorithms.
Very nice. The paper is completely self-explanatory, and the cookbook has a little more detail, but if you want to see the illustrations in action, here's an applet to play with.