知识卡片
主递归式含驱动函数
主方法处理 T(n)=aT(n/b)+f(n):a>0 表示同规模子问题数,b>1 表示规模缩小倍数;f(n) 是拆分与合并的非递归开销。
比较基准 n^log_b a 是递归叶子数量级,书中称为分水岭函数。
只有递归形状及函数条件满足时才可套用。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第4章 分治策略 · 查看原书依据
We call f (n) a driving function, and we call a recurrence of this general form a master recurrence.
参考来源
- 位置:《算法导论(第4版)》第 4 章 4.5 节(`OEBPS/chapter004.xhtml`,文本字符 [55000, 60000);公式图 Art_P129–P158)。
- 结论依据:4.5 节将 a、b 固定的等规模分治递归称为 master recurrence,将非递归项 f 称为 driving function;递归树的叶子规模给出分水岭函数。
- 原始内容:We call f ( n ) a driving function , and we call a recurrence of this general form a master recurrence .