Imagine a road network with capacities on every lane. You want to know: if a flood cuts the city in two, which partition minimizes the total disrupted flow? Now imagine someone asks you that question for every pair of neighbourhoods simultaneously.
In a graph with n nodes, there are n(nâ1)/2 ordered pairs â and computing each pair's max-flow from scratch would cost at least max-flow runs. In 1961, Ralph Gomory and T. C. Hu found a far better way.
Their insight: build a weighted tree on the same n nodes using only nâ1 max-flow computations. This Gomory-Hu tree has a remarkable property â the minimum-weight edge on the unique path between any two nodes equals the max-flow between them in the original graph. All n(nâ1)/2 answers, compressed into nâ1 edges.
This is not an approximation. The tree is exact, and querying it takes only time â a linear scan along the path. It is one of the most elegant data-structure results in combinatorial optimization, sitting at the intersection of max-flow theory and spanning trees.
Comments
Loading comments...