知识卡片
递归树逐层汇总成本
递归树中每个节点代表一次子问题调用的非递归成本。
先求每层节点成本之和,再对各层及叶子求和,便可估计总成本并提出递归式解的猜测。
若画树时用了近似,应再用代入法严格验证。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第4章 分治策略 · 查看原书依据
In a recursion tree, each node represents the cost of a single subproblem somewhere in the set of recursive function invocations.
参考来源
- 位置:《算法导论(第4版)》第 4 章 4.3–4.4 节(`OEBPS/chapter004.xhtml`,文本字符 [40000, 45000))。
- 结论依据:4.4 节定义树节点为单个子问题的成本,先把同一深度节点求和,再跨深度相加;图形近似得到的猜测仍需归纳证明。
- 原始内容:In a recursion tree , each node represents the cost of a single subproblem somewhere in the set of recursive function invocations.