The Ford-Fulkerson algorithm (named for L. R. Ford and D. R. Fulkerson) computes the maximum flow in a flow network. The name Ford-Fulkerson is often also used for the Edmonds-Karp algorithm, which is a specialisation of Ford-Fulkerson.
The idea behind the algorithm is very simple: As long as there is a path from the source (start node) to the sink (end node), with available capacity on all edges in the path, we send flow along one of these paths. Then we find another path, and so on. A path with available capacity is called an augmenting path.
This means that the flow through the network is a legal flow after each round in the algorithm. We define the residual network to be the network with capacity and no flow. Notice that it is not certain that , as sending flow on might close (it is saturated), but open a new edge in the residual network.
The path can be found with for example a breadth-first search or a depth-first search in . If you use the former, the algorithm is called Edmonds-Karp.
A variation of the Ford-Fulkerson algorithm with guaranteed termination and a runtime independent of the maximum flow value is the Edmonds-Karp algorithm, which runs in O(VE2) time.
The following example show the first steps of Ford-Fulkerson in a flow network with 4 nodes, source A and sink D. The augmenting paths are found with a depth-first-search, where neighbours are visited in alphabetical order. This example shows the worst-case behaviour of the algorithm. In each step, only a flow of 1 is sent across the network. See that if you used a breadth-first-search instead, you would only need two steps.
| Path | Capacity | Resulting flow network |
|---|---|---|
| Initial flow network | ||
|
|
||
|
|
||
| Final flow network |
Notice how flow is "pushed back" from C to B when finding the path A,C,B,D.
Algorithmus von Ford und Fulkerson | Algorithme de Ford-Fulkerson | Algoritmo di Ford-Fulkerson | Algoritmo de Ford-Fulkerson
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Ford-Fulkerson algorithm".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world