← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10294.a.3.d.2.e · 生成模型:未记录

跳表按概率建立高速层

理解等级:中级

每个节点的随机高度让越高层的节点越稀疏。在顶层向前走,下一节点越过目标时从前驱下一层继续,直到定位目标或其前驱。插入时只在新节点达到的层数修改前驱链接,删除时各层跨过该节点。多数操作不需旋转,但散落的小节点可能损害缓存局部性。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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