知识卡片
最小加法矩阵乘法表示路径扩展
路径矩阵乘法把普通乘法中的乘积换成路径权相加,把求和换成取最小:C[i,j]=min_k(A[i,k]+B[k,j])。将已有路径矩阵与边权矩阵相乘,相当于允许再走一条边。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第23章 所有结点对的最短路径 · 查看原书依据
We can see that the procedure EXTEND-SHORTEST-PATHS(L(r−1), W, L(r), n) computes the matrix “product” L(r) = L(r−1). W using this unusual definition of matrix multiplication.2 Thus, we can solve the
参考来源
- 位置:《算法导论(第4版)》第23章《所有结点对的最短路径》(OEBPS/chapter023.xhtml,文本字符[10000,15000))。
- 结论依据:原文将矩阵乘法的加乘运算替换为最小加法运算;Art_P686与P690可直接核对。
- 原始内容:We can see that the procedure E XTEND -S HORTEST -P ATHS ( L ( r −1) , W , L ( r ) , n ) computes the matrix “product” L ( r ) = L ( r −1) . W using this unusual definition of matrix multiplication. 2 Thus, we can solve the