Information about Ford Fulkerson Algorithm
The Ford-Fulkerson algorithm (named for L. R. Ford, Jr. and D. R. Fulkerson) computes the maximum flow in a flow network. It was published in 1956. 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.
, with capacity
and flow
for the edge from
to
. We want to find the maximum flow from the source
to the sink
. After every step in the algorithm the following is maintained:
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.
Algorithm Ford-Fulkerson
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.
Notice how flow is "pushed back" from C to B when finding the path A,C,B,D.
..... Click the link for more information.
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.
Algorithm
Given is a graph
, with capacity
and flow
for the edge from
to
. We want to find the maximum flow from the source
to the sink
. After every step in the algorithm the following is maintained:
. The flow from
to
does not exceed the capacity.
. Maintain the net flow between
and
. If in reality
units are going from
to
, and
units from
to
, maintain
and
.
for all nodes
, except
and
. The amount of flow into a node equals the flow out of the node.
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.
Algorithm Ford-Fulkerson
- Inputs Graph
with flow capacity
, a source node
, and a sink node 
- Output A flow
from
to
which is a maximum
- #
for all edges 
- # While there is a path
from
to
in
, such that
for all edges
:
- ## Find

- ## For each edge

- ###
(Send flow along the path)
- ###
(The flow might be "returned" later)
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.
Complexity
By adding the flow augmenting path to the flow already established in the graph, the maximum flow will be reached when no more flow augmenting paths can be found in the graph. However, there is no certainty that this situation will ever be reached, so the best that can be guaranteed is that the answer will be correct if the algorithm terminates. In the case that the algorithm runs forever, the flow might not even converge towards the maximum flow. However, this situation only occurs with irrational flow values. When the capacities are integers, the runtime of Ford-Fulkerson is bounded by O(E*f), where E is the number of edges in the graph and f is the maximum flow in the graph. This is because each augmenting path can be found in O(E) time and increases the flow by an integer amount which is at least 1.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.
Example
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 | ||
![]() |
![]() ![]()
| |
![]() |
![]() ![]()
| |
After 1998 more steps![]() | ||
| Final flow network |
Notice how flow is "pushed back" from C to B when finding the path A,C,B,D.
External links
References
- Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms, Second Edition. MIT Press and McGraw-Hill, 2001. ISBN 0-262-03293-7. Section 26.2: The Ford-Fulkerson method, pp.651–664.
Lester Randolph Ford, Jr. (born September 23, 1927) is an American mathematician specializing in network flow programming, and son of Lester R. Ford, Sr..
His 1956 paper with D. R. Fulkerson on the maximum flow problem established the maxflow-mincut theorem.
..... Click the link for more information.
His 1956 paper with D. R. Fulkerson on the maximum flow problem established the maxflow-mincut theorem.
..... Click the link for more information.
Delbert Ray Fulkerson (August 14, 1924 - January 10, 1976) was a mathematician who co-developed the Ford-Fulkerson algorithm, one of the most used algorithms to compute maximal flows in networks.
Fulkerson received his Ph.D. at the University of Wisconsin-Madison in 1951.
..... Click the link for more information.
Fulkerson received his Ph.D. at the University of Wisconsin-Madison in 1951.
..... Click the link for more information.
maximum flow problem is to find a feasible flow through a single-source, single-sink flow network that is maximum [1]. Sometimes it is defined as finding the value of such a flow.
..... Click the link for more information.
..... Click the link for more information.
In graph theory, a flow network is a directed graph where each edge has a capacity and each edge receives a flow. The amount of flow on an edge may not exceed the capacity of the edge.
..... Click the link for more information.
..... Click the link for more information.
In computer science and graph theory, the Edmonds-Karp algorithm is an implementation of the Ford-Fulkerson method for computing the maximum flow in a flow network in . It is asymptomatically slower than the relabel-to-front algorithm, which runs in , but it is often faster in
..... Click the link for more information.
..... Click the link for more information.
In mathematics, computing, linguistics, and related disciplines, an algorithm is a finite list of well-defined instructions for accomplishing some task that, given an initial state, will proceed through a well-defined series of successive states, eventually terminating in an
..... Click the link for more information.
..... Click the link for more information.
General Data
Class: Search Algorithm
Data Structure: Graph
Time Complexity:
Space Complexity:
Optimal: yes (for unweighted graphs)
Complete: yes
In graph theory, breadth-first search (
..... Click the link for more information.
Class: Search Algorithm
Data Structure: Graph
Time Complexity:
Space Complexity:
Optimal: yes (for unweighted graphs)
Complete: yes
In graph theory, breadth-first search (
..... Click the link for more information.
General Data
Class: Search algorithm
Data Structure: Graph
Time Complexity:
Space Complexity: where is the length of the longest simple path in the graph.
..... Click the link for more information.
Class: Search algorithm
Data Structure: Graph
Time Complexity:
Space Complexity: where is the length of the longest simple path in the graph.
..... Click the link for more information.
In computer science and graph theory, the Edmonds-Karp algorithm is an implementation of the Ford-Fulkerson method for computing the maximum flow in a flow network in . It is asymptomatically slower than the relabel-to-front algorithm, which runs in , but it is often faster in
..... Click the link for more information.
..... Click the link for more information.
In computational complexity theory, big O notation is often used to describe how the size of the input data affects an algorithm's usage of computational resources (usually running time or memory).
..... Click the link for more information.
..... Click the link for more information.
In computational complexity theory, big O notation is often used to describe how the size of the input data affects an algorithm's usage of computational resources (usually running time or memory).
..... Click the link for more information.
..... Click the link for more information.
In computer science and graph theory, the Edmonds-Karp algorithm is an implementation of the Ford-Fulkerson method for computing the maximum flow in a flow network in . It is asymptomatically slower than the relabel-to-front algorithm, which runs in , but it is often faster in
..... Click the link for more information.
..... Click the link for more information.
In computational complexity theory, big O notation is often used to describe how the size of the input data affects an algorithm's usage of computational resources (usually running time or memory).
..... Click the link for more information.
..... Click the link for more information.
Thomas H. Cormen is the co-author of Introduction to Algorithms, along with Charles Leiserson, Ron Rivest, and Cliff Stein. He is a Full Professor of computer science at Dartmouth College.
..... Click the link for more information.
..... Click the link for more information.
Charles E. Leiserson is a computer scientist, specializing in the theory of parallel computing and distributed computing, and particularly practical applications thereof; as part of this effort, he developed the Cilk multithreaded language.
..... Click the link for more information.
..... Click the link for more information.
..... Click the link for more information.
Clifford Stein is a computer scientist, currently working as a professor at Columbia University in New York, NY. He earned his BSE from Princeton University in 1987, a MS from Massachusetts Institute of Technology in 1989, and a PhD from Massachusetts Institute of Technology in
..... Click the link for more information.
..... Click the link for more information.
Introduction to Algorithms is a book by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. It is used as the textbook for algorithms courses at many universities.
..... Click the link for more information.
..... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus






