Discussion about this post

User's avatar
Vipin Baswan's avatar

Thank you for the interesting article!

> SkipList needs less space compared to Self-balancing BST. The SkipList has less pointer overhead (Level and the next pointer) compared to a self-balancing BST where each node has two pointers (left and right)

1. So each node in both data structures have same number of pointers right? How does that make skip-list more memory efficient?

2. Aren't we also storing few elements multiple times? Shouldn't that make skip-list consume more memory?

3. For lists at higher level, how do we insert in the middle of the linked list if we don't store next and previous pointer (along with height to move down).

Expand full comment
1 more comment...

No posts