知识卡片
B树高度由最小分支约束
设 B 树共有 n≥1 个键、最小度为 t≥2、树高为 h。根至少有一个键;仅当根不是叶子(h>0)时,它才至少有两个孩子。其他内部节点至少有 t 个孩子、非根节点至少有 t−1 个键,因此第 d 层节点数至少按 t 的幂增长。对各层最少键数求和可得 t^h≤(n+1)/2,即 h≤log_t((n+1)/2);较高最小度因而能减少最坏磁盘访问层数。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第18章 B树 · 查看原书依据
The number n of keys therefore satisfies the inequality so that th ≤ (n + 1)/2. Taking base-t logarithms of both sides proves the theorem.
参考来源
- 位置:《算法导论(第4版)》第18章《B树》(OEBPS/chapter018.xhtml,文本字符[10000,15000))。
- 结论依据:定理18.1用各层最少节点数推出高度不等式,并联系外存节点访问数。
- 原始内容:The number n of keys therefore satisfies the inequality so that t h ≤ ( n + 1)/2. Taking base- t logarithms of both sides proves the theorem.