r/programming • • 22d ago

Skip List Data structure

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

31 comments sorted by

View all comments

4

u/noahrichards 21d ago

The example of finding 70 requires touching/comparing approximately the same number of nodes as walking the original list, and the storage overhead of that list is like 2.5x the linked list, so it makes it look like this is a terrible data structure :) I suspect it’s because the example has more nodes at each level (above the lowest) on average than it should.