Pushing water through pipes: max flow and matching
Graphs · Open board
The graph board: dots joined by lines. This lesson gives every line a number, the most it can carry, and asks how much can pass through the whole graph.
In 1955 two analysts at the RAND Corporation, T. E. Harris and F. S. Ross, wrote a report on the Soviet and Eastern European railway network. They drew it as a graph. Each rail line got a number, the tons it could carry. Then they asked two questions. What is the most that can travel from Russia into Eastern Europe? And which lines, taken together, are the weak point that limits it? Their answer to both was the same number: 163,000 tons.
By the end of this lesson you will be able to find the largest flow through a network with the Edmonds-Karp method, name the pipes that limit it, and turn a matching problem into a flow problem.
The history (optional)
The report is RAND memorandum RM-1573. Alexander Schrijver’s history (see Go deeper) says 163,000 appears twice in it: as a flow, and as the capacity of lines that cut the network in two. Harris and Ross cared more about the cut. Ford and Fulkerson, also at RAND, cited it and published the augmenting path method in 1956. Yefim Dinitz published a faster version in 1970. Jack Edmonds and Richard Karp published the version in this lesson in the Journal of the ACM, volume 19, issue 2, April 1972, pages 248 to 264.