The Ford-Fulkerson Algorithm is a greedy algorithm for calculating maximum flow in a flow network.
Note
The central idea behind the algorithm is as follows: As long as any path exists from the source node to the sink node that has residual capacity, we send flow along one of the paths.
If more than one path is needed, these are known as augmenting paths.
Complexity
The complexity values for the Ford-Fulkerson Algorithm are:
Aspect | Complexity |
---|---|
Time | |
Space |
Example
What is the maximum possible flow through this graph from to .
The maximum flow going out of the source node, is .
Hence, we are free to send the full into and the full into .
However, can only output into the sink node, hence we must send down to before outputting from and from into the sink node.
Link to original