8000 Update src/graph/fixed_length_paths.md · cp-algorithms/cp-algorithms@06625c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06625c2

Browse files
authored
Update src/graph/fixed_length_paths.md
1 parent 9c49a33 commit 06625c2

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 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