知识卡片
八路矩阵分治仍为立方
把 n×n 矩阵分为四块后,每个结果块由两次子矩阵乘法累加而来,共有 8 个规模 n/2 的递归调用。索引分块和原地累加使额外工作为 Θ(1),故递归式 T(n)=8T(n/2)+Θ(1),解仍为 Θ(n³)。递归树分支数会压过单节点工作量的减少。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第4章 分治策略 · 查看原书依据
The total time for the recursive case, therefore, is the sum of the partitioning time and the time for all the recursive calls, or Θ(1) + 8T (n/2).
参考来源
- 位置:《算法导论(第4版)》第 4 章 4.1 节(`OEBPS/chapter004.xhtml`,文本字符 [15000, 20000))。
- 结论依据:伪代码的八次递归调用分别累加四个输出块中的两项;原文随后比较八叉与归并排序二叉递归树。
- 原始内容:The total time for the recursive case, therefore, is the sum of the partitioning time and the time for all the recursive calls, or Θ(1) + 8 T ( n /2).