8000 Merge pull request #1468 from This-is-Adroit/patch-1 · cp-algorithms/cp-algorithms@0da3b79 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0da3b79

Browse files
authored
Merge pull request #1468 from This-is-Adroit/patch-1
Update fixed_length_paths.md
2 parents 6befd12 + 06625c2 commit 0da3b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph/fixed_length_paths.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Then the following formula computes each entry of $L_{k+1}$:
6363
$$L_{k+1}[i][j] = \min_{p = 1 \ldots n} \left(L_k[i][p] + G[p][j]\right)$$
6464

6565
When looking closer at this formula, we can draw an analogy with the matrix multiplication:
66-
in fact the matrix $L_k$ is multiplied by the matrix $G$, the only difference is that instead in the multiplication operation we take the minimum instead of the sum.
66+
in fact the matrix $L_k$ is multiplied by the matrix $G$, the only difference is that instead in the multiplication operation we take the minimum instead of the sum, and the sum instead of the multiplication as the inner operation.
6767

6868
$$L_{k+1} = L_k \odot G,$$
6969

0 commit comments

Comments
 (0)
0