Another interesting data structure related to skiplists but not mentioned here are zip trees: https://arxiv.org/abs/1806.06726
The are a tree-based version of skiplists and thus more suited to functional programming / immutable datastructures.
The are a tree-based version of skiplists and thus more suited to functional programming / immutable datastructures.
I'd also like to see better investigations into Treaps balanced not for fairness but for average access time, so that more frequently used values are faster to look up than uncommon values.
For a project I made a version that uses the memory location of the entries to construct the (random) rank on the fly.
So it’s a binary tree structure that requires the same memory as a linked list (two pointers) only!
https://github.com/open62541/open62541/blob/master/deps/zipt...
https://stackoverflow.com/questions/61944198/what-is-a-zip-t...