知识卡片
跳表按概率建立高速层
每个节点的随机高度让越高层的节点越稀疏。在顶层向前走,下一节点越过目标时从前驱下一层继续,直到定位目标或其前驱。插入时只在新节点达到的层数修改前驱链接,删除时各层跨过该节点。多数操作不需旋转,但散落的小节点可能损害缓存局部性。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · Skiplist
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Skiplist · 查看原书依据
Lookups work by following the node pointers on the highest level. As soon as the search encounters the node that holds a key that is greater than the searched one, its predecessor’s link to the node on
参考来源
- 位置:《Database Internals》Chapter 7. Log-Structured Storage(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch07.html#skiplist,段 198)
- 结论依据:第 194–206 段解释随机平衡、查找示例与增删。
- 原始内容:Lookups work by following the node pointers on the highest level. As soon as the search encounters the node that holds a key that is greater than the searched one, its predecessor’s link to the node on