知识卡片
逐次扩展全点对耗时四次方
从 L^(0) 起连续做 n−1 次最小加法矩阵乘法,每次允许多走一条边,最终得到 L^(n−1)。
每次三重循环 Θ(n³),总时间 Θ(n⁴)。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第23章 所有结点对的最短路径 · 查看原书依据
The procedure SLOW-APSP on the next page computes this sequence in Θ(n4) 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 ×
参考来源
- 位置:《算法导论(第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 ×