知识卡片
分隔键的半开区间
按本章约定,每个分隔键充当右子树的含下界;两个邻近分隔键之间的子树负责“左界 ≤ 目标 < 右界”。因此在内部页找第一个严格大于目标的键,就知道应沿哪根指针下降;等于分隔键时走向它右侧。页与页的范围由这条规则拼接,分裂后父页也按同一规则路由。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics Separator Keys · 查看原书依据
The first pointer in the node points to the subtree holding items less than the first key, and the last pointer in the node points to the subtree holding items greater than or equal to the last key.
参考来源
- 位置:《Database Internals》Chapter 2. B-Tree Basics(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch02.html#separator_keys,段 91)
- 结论依据:原文给出首末指针规则及中间子树的半开区间。
- 原始内容:The first pointer in the node points to the subtree holding items less than the first key, and the last pointer in the node points to the subtree holding items greater than or equal to the last key.