Check out my first novel, midnight's simulacra!

Skip Lists

From dankwiki
Revision as of 07:32, 28 January 2009 by WikiSysop (talk | contribs) (1 revision)

From NIST:

A randomized variant of an ordered linked list with additional, parallel lists. Parallel lists at higher levels skip geometrically more items. Searching begins at the highest level, to quickly get to the right part of the list, then uses progressively lower level lists. A new item is added by randomly selecting a level, then inserting it in order in the lists for that and all lower levels. With enough levels, searching is O(log n).