知识卡片

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

B树删除需防节点过稀

理解等级:中级

B 树删除可以作用于内部节点,删除前后必须保持非根节点至少 t−1 个键。

若沿下降路径走进恰好下限的孩子,再删除可能欠填并迫使回溯;因此删除算法会预先处理过稀风险。

具体调整方式须继续读后文。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      Just as a node should not get too big due to insertion, a node must not get too small during deletion (except that the root is allowed to have fewer than the minimum number t − 1 of keys).

    参考来源

    - 位置:《算法导论(第4版)》第18章《B树》(OEBPS/chapter018.xhtml,文本字符[25000,30000))。 - 结论依据:原文说明内部节点删除和最小占用约束,并引出防止下降后回溯的要求。 - 原始内容:Just as a node should not get too big due to insertion, a node must not get too small during deletion (except that the root is allowed to have fewer than the minimum number t − 1 of keys).