Skip List vs. Binary Search Tree

前端 未结 7 1795
广开言路
广开言路 2020-11-28 16:57

I recently came across the data structure known as a skip list. It seems to have very similar behavior to a binary search tree.

Why would you ever want to use a ski

相关标签:
7条回答
  • 2020-11-28 17:50

    Also, in addition to the answers given (ease of implementation combined with comparable performance to a balanced tree). I find that implementing in-order traversal (forwards and backwards) is far simpler because a skip-list effectively has a linked list inside its implementation.

    0 讨论(0)
提交回复
热议问题