This algorithm doesn't always give the optimal solution, look up Ford-Fulkerson for an algorithm that does. This one's a really useful starting point though.
Best explanation I've ever seen of anything. I spent hours trying to understand how this works, now it's explained so beautifully and simple in an animation. Thank you so much!
The exhaustion of paths does not always give the optimum result,
i.e. maximum flow is not always the one found with this algorithm.
To get the max flow, you should in the end construct a residual network (with forward and backward arcs) and try to find the so called augmenting paths.
The algorithm is called Flow augmenting path algorithm, and it is optimal.
This algorithm doesn't always give the optimal solution, look up Ford-Fulkerson for an algorithm that does. This one's a really useful starting point though.
JonesyMints 3 weeks ago
Thanks. Glad it was helpful.
1652449 1 month ago
Best explanation I've ever seen of anything. I spent hours trying to understand how this works, now it's explained so beautifully and simple in an animation. Thank you so much!
gawd0r 1 month ago
emege saygi +rep
ncmglr 1 month ago
Just a note.
The exhaustion of paths does not always give the optimum result,
i.e. maximum flow is not always the one found with this algorithm.
To get the max flow, you should in the end construct a residual network (with forward and backward arcs) and try to find the so called augmenting paths.
The algorithm is called Flow augmenting path algorithm, and it is optimal.
Thank you for the video!
DaxXx988 1 month ago
very helpful. Thank you!
EnvyProjekt 3 months ago
i love it really it helps me alot in understanding network flow
chivaslestlee01 5 months ago
What about the path S-U-W-Z-T? Why is the smallest capacity for this path not identified?
kenshiro3007 7 months ago
@kenshiro3007 Because when identifying the path S-U-W-T , the capacity of of the edge U-W was exhausted. Therefore it couldn't be used any further.
You could choose to use the path S-U-W-Z-T (ie choose to solve the problem using a different order) But this should not effect the end result.
1652449 7 months ago 2
can you post a mathematical solution? as in excel with solver or similar?
tomlooway 8 months ago
@tomlooway it's an algorithm
Jackpotur 3 months ago