知识卡片

普通读书笔记卡 · 3633.a.8.c.1.b

兄弟都最小时合并下降

理解等级:中级

在最小度为 t 的 B 树中,目标孩子和相邻兄弟都只有合法下限 t−1 个键时,兄弟没有余量可借;把父节点分隔键下移并与两孩子合并,得到含 2t−1 个键、可继续执行删除的节点。

此操作会减少父节点键数,因此根可能出现特殊的高度收缩。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第18章 B树 · 查看原书依据

      Case 3b: x.ci and each of x.ci’s immediate siblings have t − 1 keys. (It is possible for x.ci to have either one or two siblings.) Merge x.ci with one sibling, which involves moving a key from x down into the new merged node to become the median key for that node.

    参考来源

    - 位置:《算法导论(第4版)》第18章《B树》(OEBPS/chapter018.xhtml,文本字符[30000,35000))。 - 结论依据:原文Case 3b给出无法借键时的合并分支。 - 原始内容:Case 3b : x . c i and each of x . c i ’s immediate siblings have t − 1 keys. (It is possible for x . c i to have either one or two siblings.) Merge x . c i with one sibling, which involves moving a key from x down into the new merged node to become the median key for that node.