此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
B树删除需防节点过稀
B 树删除可以作用于内部节点,删除前后必须保持非根节点至少 t−1 个键。
若沿下降路径走进恰好下限的孩子,再删除可能欠填并迫使回溯;因此删除算法会预先处理过稀风险。
具体调整方式须继续读后文。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 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).