Information About

Edmonds-karp Algorithm





ALGORITHM


The algorithm is identical to the Ford-Fulkerson Algorithm , except that the search order when finding the augmenting path is defined. The path found must be the shortest path which has available capacity.


COMPLEXITY


Given that the augmenting path is found with a Breadth-first Search , the running time of the Edmonds-Karp algorithm is O(VE^2). This can be seen from the following argument:



Notice how the length of the Augmenting Path found by the algorithm never decreases. The paths found are the shortest possible. The flow found is equal to the capacity across the Smallest Cut in the graph separating the source and the sink. There is only one minimal cut in this graph, partitioning the nodes into the sets \{A,B,C,E\} and \{D,F,G\}, with the capacity c(A,D)+c(C,D)+c(E,G)=3+1+1=5.


REFERENCES