Skip to content

Commit

Permalink
add simple step-by-step to floyd-warshall
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikVL committed Nov 22, 2020
1 parent abdfc49 commit a9aa353
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Algoritmer/Grafer/floyd-warshall.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Returnerer en forgjengermatrise $\Pi=(\pi_{ij})$
## Trinn for trinn
<!-- Pseudokode med forklaring -->

1. Takes in matrix $W$ ($n \times n$)
2. For each row $k$ in matrix $W$: Get the matrix $D^{k}$
3. For each vertex $i$: for each vertex $j$: find shortest path from $i$ to $j$

## Korrekthetsbevis

## Styrker og svakheter sammenlignet med andre
Expand Down

0 comments on commit a9aa353

Please sign in to comment.