Solution: The solution is as follow:
- find a flow in which each edge has strictly positive capacity. Then find the bottleneck edge in the flow. Subtract each edge's capacity with the bottleneck edge's capacity.
- try to find another flow in which each edge has strictly positive capacity. Repeat step 1.
- if such flow cannot be found, terminate. The maximum flow is the sum of all the capacity of the bottleneck edge of the flow processed.
More: Maximum flow (minimum cut) is frequently used in the problem related to flow network. Some other problem which can be solved by (or converted to) maximum flow problem are maximum matching in bipartie graph, minimum path cover, etc.
See Also: Maximum Flow and Minimum Cut
No comments:
Post a Comment