Maximum flow problem
From Wikipedia, the free encyclopedia
The maximum flow problem is to find a feasible flow through a single-source, single-sink flow network that is maximum. Sometimes it is defined as finding the value of such a flow. The maximum flow problem can be seen as special case of more complex network flow problems, as the circulation problem. The maximum s-t (source-to-sink) flow in a network is equal to the minimum s-t cut in the network, as stated in the Max-flow min-cut theorem.
Contents |
[edit] Solutions
Given a directed graph G(V,E), where each edge u,v has a capacity c(u,v), we want to find a maximal flow f from the source s to the sink t, subject to certain constraints. There are many ways of solving this problem:
Method | Complexity | Description |
---|---|---|
Linear programming | Constraints given by the definition of a legal flow. Optimize . | |
Ford-Fulkerson algorithm | As long as there is an open path through the residual graph, send the minimum of the residual capacities on the path. | |
Edmonds-Karp algorithm | O(VE2) | A specialisation of Ford-Fulkerson, finding augmenting paths with breadth-first search. |
Dinitz blocking flow algorithm | O(V2E) | In each phase the algorithms builds layered graph with breadth-first search on the residual graph. The maximum flow in a layered graph can be calculated in O(VE) time, and the maximum number of the phases is n − 1. |
General push-relabel maximum flow algorithm | O(V2E) | The push relabel algorithm maintains a preflow, ie. a flow function with the possibility of excess in the vertices. The algorithms runs while there is vertex with positive excess, ie. active vertex in the graph. The push operation increases the flow on a residual edge, and a height function on the vertices controls which residual edges can be pushed. The height function is changed with relabel operation. The proper definitions of these operations guarantee that the resulting flow function is a maximum flow. |
Push-relabel algorithm with FIFO vertex selection rule | O(V3) | Push-relabel algorithm variant which always selects the most formerly actived vertex, and makes push operations until the excess is positive or there are admissible residual edges from this vertex. |
Dinitz blocking flow algorithm with dynamic tree | O(VElog(V)) | The dynamic tree data structure speeds up the maximum flow computation in the layered graph to O(Elog(V)). |
Push-relabel algorithm with using dynamic trees | O(VElog(V2 / E)) | The algorithm builds limited size trees on the residual graph regarding to height function, these trees provide multilevel push operations. |
Binary blocking flow algorithm | The value U correspond to the maximum capacity of the network. |
For a more extensive list, see
.[edit] See also
[edit] References
- ^ Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein (2001). "26", Introduction to Algorithms, second edition, MIT Press and McGraw-Hill, 643–700. ISBN 0-262-53196-8.
- ^ Andrew V. Goldberg and S. Rao (1998). "Beyond the flow decomposition barrier". J. assoc. Comput. Mach. 45: 753–782. doi: .
- ^ Andrew V. Goldberg and Robert E. Tarjan (1988). "A new approach to the maximum-flow problem". Journal of the ACM 35: 921–940. ACM Press. doi: . ISSN 0004-5411.
- ^ Joseph Cheriyan and Kurt Mehlhorn (1999). "An analysis of the highest-level selection rule in the preflow-push max-flow algorithm". Information Processing Letters 69: 239–242.
- ^ Daniel D. Sleator and Robert E. Tarjan (1983). "A data structure for dynamic trees". Journal of Computer and System Sciences 26: 362–391. doi: . ISSN 0022-0000.
- ^ Daniel D. Sleator and Robert E. Tarjan (1985). "Self-adjusting binary search trees". Journal of the ACM 32: 652–686. ACM Press. doi: . ISSN 0004-5411.