Maximum flow with vertex capacities 2026-10-06
The maximum flow problem with internal vertex capacities reduces to the usual edge-capacitated problem by splitting each constrained vertex into input and output copies. The connecting edge carries its entire through-flow. Feasible flows correspond under this construction, preserving the source-to-sink value; the Ford-Fulkerson algorithm and max-flow min-cut theorem therefore apply to the transformed network.
Past exam of the mathematics course of the University of Cambridge 2005 ib Paper 4 20D Solution Created 2026-09-24 Updated 2026-10-14
Start with a feasible network flow, meaning capacity bounds and flow conservation at every vertex other than source and sink. Its residual network has, for an arc with capacity and current flow , a forward residual capacity and a reverse residual capacity . A reverse arc allows earlier flow to be cancelled. The Ford-Fulkerson algorithm repeatedly finds a residual source-to-sink augmenting path, takes the smallest residual capacity on it, and augments by , increasing forward flows and decreasing reverse flows as appropriate. Feasibility is preserved and the total flow increases by .
For rational capacities and initial flows, choose one common denominator and scale all quantities by . Every residual capacity and augmentation is then integral; each augmentation increases the integer-valued flow by at least one. The flow value is bounded by the finite sum of capacities out of the source, so termination occurs after finitely many augmentations. When no residual path remains, let be the vertices reachable from the source. Every original arc leaving is saturated and every original arc entering carries zero flow, or its reverse arc would extend reachability. Conservation then makes the flow value equal to the capacity of the cut . Every feasible flow is bounded by that cut capacity. Thus the terminating flow is globally optimal, proving the needed max-flow min-cut theorem conclusion.
For the given directed graph, begin at zero. One valid sequence of augmentations is:
Each amount is the current path bottleneck. The resulting nonzero arc flows areevery other arc has zero flow. Directly summing incoming and outgoing flows verifies conservation, and every displayed flow is at most its printed capacity. A minimum-cut certificate isIts only outgoing arcs are , , and , with capacities . ThereforeThe matching feasible flow and cut prove optimality independently of the augmenting-path choices.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 40 5 Solution Created 2026-10-03 Updated 2026-10-14
Label the two intermediate vertices . The four outer edges have capacity and the middle edge has capacity one. The cut separating from the other vertices has capacity , and the two paths and can each carry . Thus the maximum flow is .
A fast run of the Ford-Fulkerson algorithm chooses those two direct paths and augments by on each: it terminates in two augmentations. One augmentation cannot suffice, because every initial path has bottleneck at most .
For a run with augmentations, first choose and augment by one. The middle edge then has net flow from to . Its reverse residual capacity is , not one. Alternate crossing paths, next , then , and so on. Each of the next augmentations has bottleneck two. More explicitly, after crossing augmentations, , the total flow is , and the outer-edge flow totals on the pairs and are and in one order or the other. The middle net flow is . The next opposite crossing path uses the less-loaded outer pair and has reverse-middle capacity two. Until , its outer residual capacities are at least two.
After these augmentations, one outer pair is full and the other has one unit left. One final opposite crossing augmentation of one reaches . The total amounts are , then copies of , then , giving exactly augmentations. For the middle block is empty and this gives two augmentations as well. These are explicit requested path-choice histories. In an undirected network, need not be a bound on every possible history: for , choosing the crossing path, the two direct paths, and then the crossing path again gives four successive unit augmentations.
Direct and crossing flow augmentations, including reverse residual capacity two on the middle edge
. Details. For a general undirected network, let be the antisymmetric net flow. Feasibility gives , so the directed residual network has nonnegative capacities . For any cut with , , conservation at the internal vertices givesThus its outgoing residual cut capacity isThe subtracted flow value is the same for every cut. Taking the minimum and applying the max-flow min-cut theorem to the original and residual networks proves the residual maximum flow is the remaining optimality gap identity
Suppose now , and let consist of vertices reachable from through residual arcs of capacity at least . If , every outgoing arc from has capacity strictly below , since its head would otherwise be reachable. At most original undirected edges cross this cut, and each supplies exactly one outgoing directed arc. Hence , contradicting the residual minimum-cut value . Therefore , and a widest augmenting path has bottleneck at least . When , the current flow is already optimal and no such path is needed.
Let be the remaining residual maximum flow after augmentations of the modified rule, starting from zero flow. Its chosen widest path increases the flow by at least , soThis is the geometric convergence of widest-path augmentation. For , . Starting from zero with integer capacities keeps all flow values and residual optimality gaps integer. Thus makes and hence , giving termination in augmentations for . If , one positive integer augmentation suffices; if , none is required. A uniform statement is . With , a nonzero flow is also completed in one augmentation, consistent with the recurrence's zero contraction factor.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 35 3 a Solution Created 2026-10-03 Updated 2026-10-14
For a finite directed flow network with source , sink and nonnegative finite flow network edge capacities , the max-flow min-cut theorem statesHere feasible arc flows satisfy and flow conservation at every vertex except . Their strength of a flow is the net outflow at . A cut of a flow network has cut capacity equal to the sum of capacities on arcs directed from to .
For any feasible flow and any such cut of a flow network, summing flow conservation over cancels internal arcs and givesThus every flow value is bounded by every cut capacity.
A maximum flow exists: the feasible arc-flow vectors form a nonempty closed subset of the finite-dimensional compact box , and flow value is continuous. Choose one, . Its residual network has a forward arc of capacity and a reverse arc of capacity for each original arc. If a residual – augmenting path existed, its smallest positive residual capacity would permit increasing forward flows and decreasing reverse flows along the path. This preserves all capacity bounds and internal flow conservation while strictly increasing , a contradiction.
Let be the vertices reachable from through positive residual arcs. Then . Every original arc leaving is saturated, since otherwise its endpoint would also be reachable. Every original arc entering carries zero flow, since a positive flow would create a residual reverse arc leaving . ThereforeTogether with the universal upper bound, this proves both optimality claims and the theorem. This existence argument works for real capacities; it does not assume that arbitrary choices in the Ford-Fulkerson algorithm terminate. For integer capacities, positive augmentations are integral and increase the flow value by at least one, so the algorithm does terminate.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 35 3 b Solution Created 2026-10-03 Updated 2026-10-14
Start with zero flow and apply the Ford-Fulkerson algorithm. The following augmenting paths and bottlenecks use the capacities in the original PDF diagram:For example, the second path is limited by the remaining capacity two on and by capacity two on . After the third augmentation, has residual capacity one; the fourth path supplies it through . Every displayed increment is the smallest residual capacity of its path.
The resulting arc flows areHere denotes . These satisfy every capacity bound and flow conservation. The final residual network has source-reachable set . Its outgoing arcs are , , and , with capacities , all saturated. ConsequentlyThis is a minimum cut, and the equal flow and cut values certify optimality by the max-flow min-cut theorem. The cut immediately before node eight also has capacity six, so the minimum cut is not unique.
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 2 9H Solution Created 2026-09-24 Updated 2026-10-07
An cut of a flow network partitions a flow network into , with source and sink . Its cut capacity is the sum of capacities of arcs directed from to ; a minimum cut minimizes this sum.
Use the suggested nodes. Give capacity , each capacity , and each capacity . By the max-flow min-cut theorem, a flow of value exists once every cut capacity is at least .
Consider a cut of a flow network containing no crossing arc of capacity , and let be the intersections on the sink side. Every street incident to must also be on that side, or its arc to an endpoint in would cross the cut of a flow network. Hence at least source-to-street arcs cross, as do the intersection-to-sink arcs from the other intersections. Therefore its cut capacity is at leastA cut of a flow network crossing a capacity- arc has still larger capacity. The cut of a flow network just before the sink has capacity , proving the maximum flow value is exactly .
The integral max-flow theorem supplies an integral maximum flow. Every intersection sends units to the sink; each street can supply at most one unit, assigned to one endpoint. Orient each assigned street away from its assigned endpoint. Orient unassigned streets arbitrarily. Then each vertex has at least outgoing streets. An Ford-Fulkerson algorithm with integer capacities constructs this flow and therefore the street directions. Notice that the condition also is necessary: outgoing streets from vertices in are distinct edges incident to , so . This is an outdegree orientation criterion.
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 4 20H Solution Created 2026-09-24 Updated 2026-10-14
On a directed flow network with capacities , choose flows satisfying inflow equals outflow at every vertex except source and sink , and maximize the net source outflow . For a cut of a flow network containing but not , its capacity is . The max-flow min-cut theorem statesEvery feasible flow is bounded above by every cut capacity; equality for a feasible flow and a cut proves optimality.
The Ford-Fulkerson algorithm starts with a feasible flow, for instance zero. A forward edge has residual capacity and its reverse edge has residual capacity . Find a source-to-sink augmenting path in this residual network, and increase the flow along it by the minimum residual capacity on the path, reducing original-edge flows when reverse edges are used. Repeat until no such path exists. The vertices reachable from the source then define a saturated minimum cut of a flow network. With integer capacities and zero initial flow, all residual capacities and augmentations are integers. Each augmentation increases by at least one, while is bounded by the finite sum of source capacities, so termination takes finitely many steps.
For the original roads, a feasible maximizing flow is given below; every table entry is flow/capacity in vehicles per minute.
| Road | Before storm | After storm |
|---|---|---|
All road capacities are respected, and direct summation verifies flow conservation at each roundabout. The original flow value is . The cut separating from every other vertex consists of its two incoming roads and has capacity . Therefore the original maximum is 90 vehicles per minute.
To impose a vertex capacity, split into and . Send its incoming roads to and its outgoing roads from , and add a directed internal edge of capacity . Every unit passing through the roundabout must traverse this internal edge. This gives the standard maximum flow with vertex capacities construction.
Starting from zero, apply the Ford-Fulkerson algorithm with the following augmenting paths in order. First use : its residual capacities are , so augment by . Next use : the residual capacities are , so augment by . Finally use : the residual capacities at this stage are , so augment by . No reverse edge is needed in this valid run. The resulting original-road flows are precisely the after-storm column above, and the internal edge carries .
For termination and optimality, take the source-side set . Its outgoing edges are , and , of capacities . They are all saturated, and no positive-flow original edge enters this set. Consequently no residual path leaves the set, and its cut capacity equals the constructed flow value. The new maximum is therefore
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 4 20H a Solution Created 2026-09-24 Updated 2026-10-06
A maximum flow problem specifies a finite directed flow network, a source , a sink , and nonnegative arc capacities. A feasible flow assigns to each arc, with incoming flow equal to outgoing flow at each vertex other than . The objective is to maximize the net flow leaving , equivalently entering .
The Ford-Fulkerson algorithm starts with zero flow. Its residual network has a forward arc of capacity and a reverse arc of capacity for each original arc. If an – path has positive residual capacities, augment by their minimum: increase flow along forward arcs and decrease it along reverse arcs. This preserves capacity bounds and conservation, and increases the flow value by that positive bottleneck. Repeat until there is no augmenting path.
For rational capacities, choose a positive integer clearing every denominator. Initially all flows and residual capacities are integer multiples of , and augmentation preserves that property. Every augmentation therefore increases the flow value by at least . The flow value is bounded above by the sum of capacities of arcs leaving . Thus only finitely many augmentations can occur, independently of how the augmenting paths are chosen.
To see why termination supplies a maximum, let consist of vertices reachable from in the final residual network. The sink is not in . Each original arc from to its complement is saturated; each original arc entering has zero flow, since otherwise its reverse residual arc would leave . The resulting flow value equals the capacity of this cut. No feasible flow exceeds a cut capacity. Hence the algorithm terminates at a maximum flow for rational capacities, proving the relevant max-flow min-cut theorem conclusion as well.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 4 20H b Solution Created 2026-09-24 Updated 2026-10-05
The Ford-Fulkerson algorithm starts with zero flow. For each original edge , the residual network has a forward edge with residual capacity and a reverse edge with residual capacity . Distinguish these labelled residual edges if the original graph has antiparallel edges. While there is a source-to-sink augmenting path with positive residual capacities, increase the flow by the minimum residual capacity along it, adding on forward edges and subtracting on reverse edges. This preserves capacity bounds and flow conservation and increases the strength of a flow by that positive bottleneck.
A cut of a flow network is a partition with , , of capacity . Summing flow conservation gives . The max-flow min-cut theorem statesWhen no augmenting path remains, take to be the vertices reachable from in the residual network. Every original outgoing edge of this cut of a flow network is saturated and every incoming edge has zero flow; otherwise a positive residual edge would leave . Thus , certifying optimality and the theorem. For general finite real capacities, one can also apply this argument to an existing maximum: it cannot admit an augmenting path.
With integer capacities, each augmentation increases the value by at least one, so the Ford-Fulkerson algorithm terminates. Rational capacities can be scaled to integers. Arbitrary path choices with irrational capacities need not terminate; the existence theorem does not justify claiming finite termination in that generality. The given network has integer capacities, so this caveat does not obstruct its computation.
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 4 20H b i Solution 2026-09-29
Starting from zero, one valid run of the Ford-Fulkerson algorithm augments alongThe resulting nonzero edge flows areand they obey every capacity constraint and every flow-conservation equation. The flow value is
In a finite flow network, a maximum flow exists because the feasible flow set contains the zero flow and is a compact set: the capacity constraints bound every coordinate, and they and flow conservation define a closed set. The strength of a flow is a continuous function, so the extreme value theorem gives an attained maximum. An augmenting path in the residual network would permit positive augmentation, contradicting maximality. The source-reachable vertices in the residual network therefore define a cut of a flow network whose outgoing original edges are saturated and incoming original edges carry zero flow. Flow conservation makes the strength of a flow equal to this cut capacity, proving the max-flow min-cut theorem.
Existence and strong duality for finite real flow network edge capacities do not imply finite termination for every choice of augmenting paths in the Ford-Fulkerson algorithm. With irrational capacities, some choices can continue forever. With integer capacities, Integrality of the Ford-Fulkerson algorithm instead forces finite termination; rational capacities reduce to that case by a common denominator. Choosing shortest augmenting paths as in the Edmonds–Karp algorithm avoids dependence on capacity magnitudes.[ref]
https://courses.csail.mit.edu/6.854/21/Notes/n06-flow.html. Karger, MIT 6.854 Notes 6, section 2.1, rational and real capacities


