Skip to content

Commit 70177da

Browse files
authored
Merge pull request #1199 from maiquang04/patch-1
Update min_cost_flow.md
2 parents beb1e09 + 1393761 commit 70177da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph/min_cost_flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ the residual network contains only unsaturated edges (i.e. edges in which $F_{i
4242

4343
Now we can talk about the **algorithms** to compute the minimum-cost flow.
4444
At each iteration of the algorithm we find the shortest path in the residual graph from $s$ to $t$.
45-
In contrary to Edmonds-Karp we look for the shortest path in terms of the cost of the path, instead of the number of edges.
45+
In contrast to Edmonds-Karp, we look for the shortest path in terms of the cost of the path instead of the number of edges.
4646
If there doesn't exists a path anymore, then the algorithm terminates, and the stream $F$ is the desired one.
4747
If a path was found, we increase the flow along it as much as possible (i.e. we find the minimal residual capacity $R$ of the path, and increase the flow by it, and reduce the back edges by the same amount).
4848
If at some point the flow reaches the value $K$, then we stop the algorithm (note that in the last iteration of the algorithm it is necessary to increase the flow by only such an amount so that the final flow value doesn't surpass $K$).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy