知识卡片

普通读书笔记卡 · 3645.i.4.a.1.a

逐次扩展全点对耗时四次方

理解等级:中级

从 L^(0) 起连续做 n−1 次最小加法矩阵乘法,每次允许多走一条边,最终得到 L^(n−1)。

每次三重循环 Θ(n³),总时间 Θ(n⁴)。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《算法导论(第4版)》第23章《所有结点对的最短路径》(OEBPS/chapter023.xhtml,文本字符[10000,15000))。 - 结论依据:原文给出SLOW-APSP迭代不变量及 n−1 次三重循环成本。 - 原始内容:The procedure S LOW -APSP on the next page computes this sequence in Θ( n 4 ) time. The procedure takes the n × n matrices W and L (0) as inputs, along with n . Figure 23.1 illustrates its operation. The pseudocode uses two n ×