← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3667

朴素斐波那契递归重复求同值

理解等级:中级

直接递归计算F(n)会分别求F(n−1)和F(n−2),且反复计算相同子问题;其递推运行时间T(n)=T(n−1)+T(n−2)+Θ(1),呈Θ(φⁿ)指数增长。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 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 −