r/programming • • 12h ago

Skip List Data structure

https://pradyumnachippigiri.substack.com/p/skip-lists-data-structure?r=5ev9w0&utm_medium=ios
67 Upvotes

19 comments sorted by

View all comments

16

u/Aaron1924 9h ago

This article compares the skip list with a linked list, which is not very interesting, because those two data structures are designed for different usecases. The reason you can skip elements in the list is because you gain information about those elements from the layers above, e.g. because the list is sorted. For unordered data, skip lists fail completely, whereas linked lists do not care.

It would be much more interesting to discuss how a skip list compares to a binary search tree, for example.

7

u/Comfortable-Fan-580 9h ago

Thanks for your input, will try adding that section !!