知识卡片
根成本可主导递归树
对 T(n)=3T(n/4)+Θ(n²),深度 i 的非叶成本为 (3⁄16)^i·Θ(n²),逐层构成收敛等比级数;叶子成本仅 Θ(n^log₄3)。
因此根的 Θ(n²) 已给出下界,全树也为 Θ(n²)。
须把叶子单独计入,不能只看内部节点。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第4章 分治策略 · 查看原书依据
Since the root’s contribution to the total cost is cn2, the cost of the root dominates the total cost of the tree.
参考来源
- 位置:《算法导论(第4版)》第 4 章 4.4 节(`OEBPS/chapter004.xhtml`,文本字符 [45000, 50000);图 4.1–4.2、公式图 Art_P118–P128)。
- 结论依据:4.4 节图 4.1 的第 i 层内部成本为 (3/16)^i·cn²,构成递减等比级数;叶子成本低于 n²,根成本 cn² 因而主导。
- 原始内容:Since the root’s contribution to the total cost is cn 2 , the cost of the root dominates the total cost of the tree.