知识卡片
朴素斐波那契递归重复求同值
直接递归计算F(n)会分别求F(n−1)和F(n−2),且反复计算相同子问题;其递推运行时间T(n)=T(n−1)+T(n−2)+Θ(1),呈Θ(φⁿ)指数增长。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第26章 并行算法 · 查看原书依据
This recurrence has solution T (n) = Θ(Fn), which we can establish by using the substitution method (see Section 4.3). To show that T (n) = O(Fn), we’ll adopt the inductive hypothesis that T (n) ≤ aFn −
参考来源
- 位置:《算法导论(第4版)》第26章《并行算法》(OEBPS/chapter026.xhtml,文本字符[5000,10000))。
- 结论依据:原文给出时间递推、指数解和调用树重复子问题示例;Art_P825–P827核对。
- 原始内容:This recurrence has solution T ( n ) = Θ( F n ), which we can establish by using the substitution method (see Section 4.3 ). To show that T ( n ) = O ( F n ), we’ll adopt the inductive hypothesis that T ( n ) ≤ aF n −