Skip to main content

Network flow and the maximum-flow minimum-cut theorem for HSC Maths Standard 2

Syllabus dot point

“Solve network flow problems, including finding the maximum flow using the maximum-flow minimum-cut theorem”

HSCMaths Standard 2Year 12: Networks16 min read

Quick answer

Maximum flow is the greatest amount that can pass from the source to the sink of a directed, capacitated network. Edges in series are limited by their smallest (bottleneck) capacity, separate parallel paths add, and you must not double-count a shared edge. A cut is a line separating source from sink; its capacity sums only the edges crossing in the source-to-sink direction. By the maximum-flow minimum-cut theorem the maximum flow equals the capacity of the minimum cut, so find the smallest cut and that is the answer. For several sources or sinks, add a super-source and super-sink and solve as a single source to a single sink.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions
  4. Practice questions

What this dot point is asking

NESA gives you a directed network (a graph whose edges carry arrows). It has one starting vertex, the source, and one finishing vertex, the sink. Each edge has a capacity: the most it can carry. Your job is to find the maximum flow, the greatest amount that can pass from source to sink at once. You confirm that maximum using cuts and the maximum-flow minimum-cut theorem. If a network has more than one source or sink, you add a super-source and super-sink.

The capacity can be anything that moves through a one-way channel: water in kilolitres per minute through pipes, cars per hour along one-way roads, or data in megabits per second across links. The method is identical in each case; only the units change.

The answer

Capacitated water network from source S to sink TA directed water network. The source S on the left feeds A and B with pipe capacities 12 and 14 kilolitres per minute. A feeds C with capacity 7 and feeds B with capacity 3; B feeds C with capacity 5 and D with capacity 6. C feeds the sink T with capacity 13 and D feeds T with capacity 10. Every pipe is one-way in the direction of the arrow.121473561310SABCDTsourcesinkCapacities in kilolitres per minute. Arrows show the one-way direction of flow from source S to sink T.

The vocabulary you must use

A flow network is a directed graph (the edges carry arrows), so flow only travels the way the arrow points. The pieces have precise names, and exam questions expect them:

  • Source. The single vertex where everything starts. Here it is SS. The source is the analogue of the "start" in critical path analysis.
  • Sink. The single vertex where everything ends. Here it is TT, the analogue of the "finish".
  • Capacity. The weight on an edge: the most that edge can carry. Pipe SS-AA has capacity 1212, meaning at most 1212 kilolitres per minute can pass along it.
  • Flow. The amount actually travelling along an edge. The flow on an edge can be anything from 00 up to its capacity, never more.
  • Saturated edge. An edge whose flow equals its capacity. It is full and cannot carry any more, so it is a candidate bottleneck.
  • Excess (spare) capacity. Capacity minus current flow: the room still left on an edge. This is the flow-network cousin of float time in critical path analysis.

The single most important fact is the first rule of capacity: the flow on any edge can never exceed that edge's capacity. Everything that follows is a consequence of squeezing flow through edges that each have a ceiling.

Flow must be conserved at every vertex

At every vertex except the source and the sink, whatever flows in must flow out. Water does not pile up at a junction or appear from nowhere. So if 99 kilolitres per minute arrive at vertex CC, then 99 must leave CC. This is conservation of flow, and it is why a single narrow edge anywhere along a route throttles the whole route: the flow that squeezes through the narrow edge is all that can continue past it.

Key fact

For edges joined in series (one after another along a single path), the flow is limited by the smallest capacity on that path, the bottleneck. For separate parallel paths that do not share any edge, the flows add. The overall maximum flow from source to sink is found by combining these two ideas, and it always equals the capacity of the minimum cut (see below).

Finding the maximum flow by inspection

For a small network you can find the maximum flow by eye, building it from paths:

  1. Trace a path from source to sink and read off its bottleneck. The flow you can push along a single path is the smallest capacity on it (the series rule). Send that much, and mark each edge on the path as carrying that flow.
  2. Reduce the capacities you have used. Subtract the flow you just sent from every edge on that path. Some edge becomes saturated (drops to 00 spare); that is the bottleneck that limited the path.
  3. Find another path that still has spare capacity and repeat, adding its flow to the running total.
  4. Stop when no path from source to sink has spare capacity left. The running total is the maximum flow.

Step 2 is the part that trips students, and textbooks gloss over it. If two paths share an edge, you cannot just add their separate bottlenecks. The shared edge can only carry its own capacity in total. So you must subtract used capacity as you go, which stops a shared edge from being over-committed (asked to carry more than it can). The traffic worked example below is built to expose this trap.

Cuts: a cleaner way to pin the maximum

On a bigger network, inspection becomes error-prone: it is hard to be sure you have not missed a better combination of paths. Cuts give a check that does not rely on finding the right paths.

A cut is an imaginary line drawn right across the network. It completely separates the source from the sink, so every route from source to sink is cut. Think of it as a set of pipes you could close to stop all flow getting through. Because a cut blocks every route, the flow can never beat the total capacity of the pipes it crosses. That fact leads straight to the theorem.

The capacity of a cut is the sum of the capacities of the edges crossing it, but only those running from the source side to the sink side. This direction rule is the part most often got wrong:

  • An edge pointing from the source side to the sink side is counted: flow uses it to cross, so it limits the cut.
  • An edge pointing from the sink side back to the source side is not counted: it carries flow the wrong way across the cut, so it does not help flow get from source to sink and is ignored entirely.

A cut separating the source side from the sink sideThe same water network with a dashed cut line dividing it into a source side containing S, A and B, and a sink side containing C, D and T. The cut crosses three pipes in the source-to-sink direction: A to C capacity 7, B to C capacity 5 and B to D capacity 6. Their capacities add to 18, which is the capacity of this cut. It is the minimum cut, so the maximum flow is 18 kilolitres per minute.121473561310SABCDTcutsourcesinkCut capacity = 7 + 5 + 6 = 18 (only source-to-sink crossings). This is the minimum cut, so max flow = 18.

In the cut shown, the dashed line puts SS, AA and BB on the source side and CC, DD, TT on the sink side. The three pipes crossing it from source side to sink side are AA-CC (77), BB-CC (55) and BB-DD (66), so the cut capacity is 7+5+6=187 + 5 + 6 = 18. Notice it does not count SS-AA, SS-BB or the internal pipe AA-BB, because those stay entirely on the source side and never cross the line.

The maximum-flow minimum-cut theorem

Every cut is a complete barrier, so the flow can never beat the capacity of any single cut. The tightest barrier, the minimum cut, is therefore the true ceiling, and the theorem says that ceiling is always reached.

Key fact

Maximum-flow minimum-cut theorem. In any flow network, the maximum flow from source to sink equals the capacity of the minimum cut (the cut of smallest capacity). So to find the maximum flow, find the cut with the least total source-to-sink capacity, and that number is the answer.

In our network the minimum cut is the one drawn above, with capacity 1818, so the maximum flow from SS to TT is 1818 kilolitres per minute. The bottleneck is the middle layer of pipes, not the source pipes (which together carry 12+14=2612 + 14 = 26) nor the pipes into the sink (which carry 13+10=2313 + 10 = 23). That is the lesson the theorem makes vivid: the constriction can sit anywhere in the network, and the minimum cut finds it for you.

Why the two numbers must agree

You can see why a flow can never beat a cut without any algebra. Picture any cut as a line across all the pipes. Every drop that reaches the sink had to start at the source. So it had to cross that line somewhere, along a source-to-sink pipe. The total crossing the line can therefore be no more than the total capacity of those pipes, which is the cut capacity. This holds for every cut, so the flow is at most the smallest cut. The theorem also claims you can always set up a flow that exactly equals the smallest cut, so the two values meet. In Standard 2 you use the result, not its proof, but the picture is what makes it clear.

Multiple sources or multiple sinks

Some networks have more than one source (say two reservoirs feeding a town) or more than one sink (say two ocean outlets). The trick is to reduce the problem to the single-source single-sink case you already know:

  • Add one super-source: a new vertex joined by an edge to every real source.
  • Add one super-sink: a new vertex joined by an edge from every real sink.
  • Give each artificial edge a capacity at least as large as everything that source can emit or that sink can receive (a safe choice is the sum of the real pipes at that vertex), so the artificial edges never become the bottleneck themselves.

Now find the maximum flow from the super-source to the super-sink exactly as before. Because the artificial edges are never the constriction, the answer is the genuine maximum total flow through the original network. The stormwater worked example below carries this out in full.

How exam questions ask about network flow

The wording shifts with the context, but each version maps onto the same toolkit. Learn to translate it:

  • "Find the maximum flow from SS to TT." Either build it up by inspection (paths, bottlenecks, subtracting used capacity) or, more reliably, find the minimum cut and quote the theorem. State the value with units.
  • "Find the capacity of cut C1C_1 / each of the cuts shown." Sum the capacities of the edges crossing in the source-to-sink direction only; ignore any edge crossing the other way.
  • "Use the maximum-flow minimum-cut theorem" or "verify your answer with a cut." They want both: a flow that achieves a value, and a cut of the same capacity confirming nothing larger is possible.
  • "Which edges are saturated at maximum flow?" Name the edges whose flow equals their capacity. The saturated edges of a minimum cut are exactly the bottleneck.
  • "A pipe / road is upgraded (or closed)." Change that one capacity, then re-find the minimum cut. Upgrading a pipe that is not on the minimum cut changes nothing; only relieving the bottleneck raises the maximum flow.
  • "There are two sources / two sinks." Add a super-source and super-sink, then solve the single-source single-sink problem.
  • "Find one example of how the maximum flow can be achieved." Give an actual flow on each edge (not just the total) that sums to the maximum and never exceeds any capacity.

A distinction worth a mark: maximum flow is about pushing the most through a directed network from one vertex to another, and is not the same as a minimum spanning tree (connect every vertex as cheaply as possible) or a shortest path (the single cheapest route between two vertices). Read the directed arrows and the word "capacity" as your signal that it is a flow problem.

Worked example

Maximum flow through pipes in series and in parallel

A small irrigation system carries water in kilolitres per minute. First consider one straight run, then two independent runs.

Set up the series case
Water flows source SS to AA to sink TT. Pipe SS-AA has capacity 2525 and pipe AA-TT has capacity 5858. These pipes are joined in series (one after the other on a single path).
Apply the bottleneck rule
Flow on a series path is limited by the smallest capacity on it. The smaller of 2525 and 5858 is 2525, so at most 2525 can flow. The wide pipe AA-TT runs below its capacity: it carries the 2525 that the narrow pipe lets through and has 58−25=3358 - 25 = 33 kilolitres per minute of spare capacity. The narrow pipe SS-AA is saturated.
Answer (series)
the maximum flow is 2525 kilolitres per minute, set by the narrowest pipe.
Now set up the parallel case
Add a second, separate route. Route 1 is SS-AA-TT with capacities 4040 then 3030. Route 2 is SS-BB-TT with capacities 2020 then 3535. The two routes share no edge.
Find each route's bottleneck, then add
Route 1 is limited by min⁡(40,30)=30\min(40, 30) = 30. Route 2 is limited by min⁡(20,35)=20\min(20, 35) = 20. Because the routes are independent (no shared pipe), their flows add: 30+20=5030 + 20 = 50.
Answer (parallel)
the maximum flow is 30+20=5030 + 20 = 50 kilolitres per minute. Adding the route bottlenecks is valid here only because no edge is shared, the condition the next example removes.

Maximum traffic flow through a shared road

A one-way road network carries cars per hour. The source is AA and the sink is EE. The roads are AA-BB (300300), BB-CC (600600), AA-DD (500500), DD-CC (150150) and the final shared road CC-EE (400400). Both routes to EE run through CC and then down the single road CC-EE. Find the maximum traffic flow from AA to EE.

Read the two routes and their bottlenecks
Route 1 is AA-BB-CC-EE with bottleneck min⁡(300,600,400)=300\min(300, 600, 400) = 300. Route 2 is AA-DD-CC-EE with bottleneck min⁡(500,150,400)=150\min(500, 150, 400) = 150. Naively adding these gives 300+150=450300 + 150 = 450.
Spot the shared edge and correct
Both routes funnel through the single road CC-EE, which has capacity only 400400. The proposed 450450 would force 450450 cars per hour down a road that holds 400400, which is impossible. So CC-EE is the bottleneck for the combined flow, not the individual routes. This is exactly the trap: route bottlenecks may not be added when an edge is shared.
Confirm with a cut
Put CC, EE on the sink side and everything else on the source side. The only edge crossing source-to-sink is CC-EE, capacity 400400, so this cut has capacity 400400. No cut can be smaller than the single road every car must use, so by the maximum-flow minimum-cut theorem the maximum flow is 400400.
Answer
the maximum traffic flow from AA to EE is 400400 cars per hour, limited by the shared road CC-EE. A valid split is 300300 cars per hour via BB and 100100 via DD, totalling 400400 and respecting every capacity.

Cut capacities and the minimum cut on a data network

A data centre streams from server SS to client TT across one-way links measured in megabits per second: SS-AA (1010), SS-BB (88), AA-CC (66), BB-AA (44), BB-DD (99), CC-TT (77), DD-TT (55) and a cross-link CC-DD (33). Note the link BB-AA points from BB to AA. Find the maximum flow from SS to TT by computing cut capacities.

Compute a cut with a back-pointing edge
Take the cut with source side {S,A}\{S, A\} and sink side {B,C,D,T}\{B, C, D, T\}. The edges crossing source-to-sink are SS-BB (88) and AA-CC (66). The link BB-AA crosses the other way (sink side to source side), so it is not counted. Cut capacity =8+6=14= 8 + 6 = 14.
Compute a few more cuts
Source side {S,A,B}\{S, A, B\}: crossings AA-CC (66) and BB-DD (99), capacity 6+9=156 + 9 = 15. Source side {S,A,B,C,D}\{S, A, B, C, D\} (everything but the sink): crossings CC-TT (77) and DD-TT (55), capacity 7+5=127 + 5 = 12. Source side {S,A,B,D}\{S, A, B, D\}: crossings AA-CC (66) and DD-TT (55), capacity 6+5=116 + 5 = 11.
Take the minimum
The smallest cut capacity found is 1111, from the cut {S,A,B,D}\{S, A, B, D\} versus {C,T}\{C, T\}, crossing AA-CC and DD-TT. No combination of paths can beat the tightest barrier.
Answer
by the maximum-flow minimum-cut theorem the maximum flow from SS to TT is 1111 megabits per second. The bottleneck links AA-CC (66) and DD-TT (55) are saturated when the flow is at its maximum.

Maximum stormwater flow with two sources and two sinks

Storm water enters at Dunlop North (PP) and Dunlop South (QQ) and drains to the ocean at Outlet 1 (YY) and Outlet 2 (ZZ), through junctions RR and SS. Capacities in kilolitres per minute are PP-RR (88), PP-SS (66), QQ-SS (99), QQ-RR (44), RR-YY (77), RR-ZZ (55), SS-YY (33) and SS-ZZ (1010). Find the maximum total rate at which water leaves the network.

Add a super-source and super-sink
There are two sources and two sinks, so introduce a super-source XX feeding both PP and QQ, and a super-sink WW fed from both YY and ZZ. Give each artificial pipe the total capacity at that vertex so it is never the bottleneck: XX-P=8+6=14P = 8 + 6 = 14, XX-Q=9+4=13Q = 9 + 4 = 13, YY-W=7+3=10W = 7 + 3 = 10 and ZZ-W=5+10=15W = 5 + 10 = 15. The problem is now a single source XX to a single sink WW.
Test the cut just before the outlets
Put everything except YY, ZZ, WW on the source side. The crossing edges are the four pipes feeding the outlets: RR-YY (77), RR-ZZ (55), SS-YY (33) and SS-ZZ (1010). Cut capacity =7+5+3+10=25= 7 + 5 + 3 + 10 = 25.
Test the cut just after the sources
Put only XX, PP, QQ on the source side. The crossing edges are the four pipes leaving the sources: PP-RR (88), PP-SS (66), QQ-SS (99) and QQ-RR (44). Cut capacity =8+6+9+4=27= 8 + 6 + 9 + 4 = 27.
Take the minimum and read the answer
The smaller of these is 2525, and checking shows no cut is smaller, so the minimum cut is 2525. By the maximum-flow minimum-cut theorem the maximum total flow is 2525 kilolitres per minute. The bottleneck is the set of pipes feeding the ocean outlets (2525), not the pipes leaving the suburbs (2727).
Answer
the maximum total rate water can leave the network is 2525 kilolitres per minute. The artificial super-source and super-sink let two sources and two sinks be solved as one ordinary flow problem.
Common traps
Adding route bottlenecks when an edge is shared
Two routes through the same pipe cannot each send their full bottleneck; the shared edge caps their combined flow. Subtract used capacity as you go, or find the minimum cut.
Counting a cut edge that points the wrong way
A cut's capacity sums only the edges crossing from the source side to the sink side. An edge crossing back the other way is ignored, not subtracted.
Stopping at the first cut you draw
The theorem uses the cut of least capacity. Test several cuts and take the minimum; the bottleneck is often in the middle, not at the source or the sink.
Ignoring the arrows
Flow networks are directed. Flow can only travel the way an arrow points, so a one-way pipe never carries flow backwards.
Forgetting conservation of flow
Flow in must equal flow out at every vertex except the source and sink. A junction cannot store or create flow.
Leaving a multi-source or multi-sink problem un-reduced
Add a super-source and a super-sink first, with artificial capacities large enough that they are never the bottleneck, then solve as a single source to a single sink.
Exam technique

Lead with the minimum cut: it is the most reliable way to nail the maximum flow and earns the method marks. Draw a candidate cut line, list the edges it crosses, and add only the source-to-sink crossings (watch for any edge pointing the wrong way, which you ignore). Test several cuts and quote the smallest, then write one line invoking the theorem: "the maximum flow equals the minimum cut, so the answer is ...". Always state the value with units (kilolitres per minute, cars per hour, megabits per second). If the question says "verify", give a flow that achieves the value as well as the matching cut. For two sources or two sinks, set up a super-source and super-sink before doing anything else. And before you start, confirm it is a flow problem (directed edges, capacities) and not a shortest path or minimum spanning tree.

Note

Picture water running through a set of pipes from a tap to a drain. Each pipe can only take so much at once, so the question is how much can get from the tap to the drain in total. The answer is set by the tightest squeeze in the system, like the narrowest part of a funnel. It is not always the pipe at the tap or the pipe at the drain. The clever trick is to imagine slicing right across the pipes so the tap is fully cut off from the drain, then add up what those sliced pipes can carry. The cheapest place to slice tells you the most that can ever flow.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

2022 HSC-style4 marks
Water flows through a network of pipes from source SS to sink TT. The capacities, in kilolitres per minute, are SS-AA 1414, SS-BB 1010, AA-CC 99, AA-BB 55, BB-CC 88, CC-TT 1212, BB-TT 66. All pipes are one-way from SS towards TT. Find the maximum flow from SS to TT, justifying your answer with a cut.
Show worked answer →

Find the maximum flow by locating the minimum cut. A cut is an imaginary line that completely separates SS from TT; its capacity is the sum of the capacities of the edges crossing it in the source-to-sink direction only.

Test cuts that separate more and more of the network from the sink:

  • Cut {S}\{S\} on the source side: crossings SS-AA and SS-BB, capacity 14+10=2414 + 10 = 24.
  • Cut {S,A}\{S, A\}: crossings SS-BB, AA-CC, AA-BB, capacity 10+9+5=2410 + 9 + 5 = 24.
  • Cut {S,A,B}\{S, A, B\}: crossings AA-CC, BB-CC, BB-TT, capacity 9+8+6=239 + 8 + 6 = 23.
  • Cut {S,A,B,C}\{S, A, B, C\}: crossings CC-TT, BB-TT, capacity 12+6=1812 + 6 = 18.

The smallest cut capacity is 1818, so by the maximum-flow minimum-cut theorem the maximum flow is 1818 kilolitres per minute. The bottleneck is the pair of pipes feeding TT.

Markers reward identifying several cuts, summing only the source-to-sink crossings, choosing the minimum, and quoting the theorem to convert the minimum cut into the maximum flow, with units.

2023 HSC-style5 marks
Storm water enters a pipe network at Dunlop North (MM) or Dunlop South (NN) and leaves at Outlet 1 (GG) or Outlet 2 (HH). Capacities in kilolitres per minute are MM-UU 66, MM-VV 99, NN-UU 77, NN-VV 44, UU-GG 88, UU-HH 33, VV-GG 55, VV-HH 1111. Find the maximum total rate at which water can leave the network at the two outlets.
Show worked answer →

There are two sources and two sinks, so add a super-source XX joined to both real sources and a super-sink WW joined from both real sinks. Give each artificial pipe a capacity equal to the total capacity of the pipes at that source or sink, so the artificial pipes never become the bottleneck: XX-M=6+9=15M = 6 + 9 = 15, XX-N=7+4=11N = 7 + 4 = 11, GG-W=8+5=13W = 8 + 5 = 13, HH-W=3+11=14W = 3 + 11 = 14.

Now it is a single-source single-sink problem from XX to WW. Find the minimum cut. The maximum flow works out to 2424 kilolitres per minute, and a cut achieving it crosses MM-VV 99, NN-VV 44, UU-GG 88 and UU-HH 33, which sum to 9+4+8+3=249 + 4 + 8 + 3 = 24.

Markers reward the super-source and super-sink construction, reducing two sources and two sinks to one of each, finding the maximum flow with a confirming cut, and stating the total rate with units.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marks
Water flows in kilolitres per minute through two pipes joined in series: source SS to junction AA with capacity 1818, then AA to sink TT with capacity 2727. Every pipe is one-way from SS towards TT. Find the maximum flow from SS to TT.
Show worked solution →
Read the path
There is one route, SS to AA to TT, with the two pipes joined in series (one after the other).
Apply the bottleneck (series) rule
Flow on a series path is limited by its smallest capacity. The smaller of 1818 and 2727 is min⁡(18,27)=18\min(18, 27) = 18, so at most 1818 can pass. The wide pipe AA-TT then carries only 1818 and has 27−18=927 - 18 = 9 kilolitres per minute of spare capacity, while SS-AA is saturated.
Confirm with a cut
Put just SS on the source side. The only pipe crossing source-to-sink is SS-AA, so the cut capacity is 1818. No cut can be smaller than the single pipe leaving SS, so by the maximum-flow minimum-cut theorem the maximum flow is 1818.
Check
The flow 1818 equals the cut 1818, and 18≤1818 \le 18 and 18≤2718 \le 27 respect both capacities. The maximum flow is 1818 kilolitres per minute.
foundation2 marks
A network carries cars per hour along one-way roads from source SS to sink EE by two separate routes that share no road. Route 1 is SS-AA-EE with capacities 1616 then 99. Route 2 is SS-BB-EE with capacities 1111 then 2020. Find the maximum traffic flow from SS to EE.
Show worked solution →
Find each route's bottleneck
On a series route the flow is capped by the smallest capacity. Route 1 is limited by min⁡(16,9)=9\min(16, 9) = 9. Route 2 is limited by min⁡(11,20)=11\min(11, 20) = 11.
Add the routes
The two routes share no road, so their flows are independent and add: 9+11=209 + 11 = 20 cars per hour.
Confirm with a cut
Take the source side {S,A}\{S, A\}. The pipes crossing source-to-sink are AA-EE (99) and SS-BB (1111), giving cut capacity 9+11=209 + 11 = 20. This matches the flow, so by the maximum-flow minimum-cut theorem 2020 is the maximum.
Check
Flow 2020 equals the cut 2020; sending 99 via AA and 1111 via BB breaks no capacity. The maximum flow is 2020 cars per hour.
foundation3 marks
Water flows in kilolitres per minute through one-way pipes from source SS to sink TT: SS-AA 1313, SS-BB 77, AA-TT 1010, BB-TT 1212. (a) Find the capacity of the cut that puts only SS on the source side. (b) Find the maximum flow from SS to TT, justifying it with a cut.
Show worked solution →

(a) Cut around the source. With only SS on the source side, the pipes crossing source-to-sink are SS-AA (1313) and SS-BB (77). The cut capacity is 13+7=2013 + 7 = 20.

(b) Test more cuts. A cut is a line separating SS from TT; sum only the source-to-sink crossings.

  • Source side {S}\{S\}: crossings SS-AA, SS-BB, capacity 13+7=2013 + 7 = 20.
  • Source side {S,A}\{S, A\}: crossings SS-BB (77), AA-TT (1010), capacity 7+10=177 + 10 = 17.
  • Source side {S,B}\{S, B\}: crossings SS-AA (1313), BB-TT (1212), capacity 13+12=2513 + 12 = 25.
  • Source side {S,A,B}\{S, A, B\}: crossings AA-TT (1010), BB-TT (1212), capacity 10+12=2210 + 12 = 22.

Take the minimum. The smallest is 1717, so by the maximum-flow minimum-cut theorem the maximum flow is 1717 kilolitres per minute.

Check. A flow of 1010 along SS-AA-TT and 77 along SS-BB-TT totals 1717 and breaks no capacity, matching the minimum cut 1717.

foundation3 marks
A water network has one-way pipes measured in kilolitres per minute: SS-AA 88, SS-BB 66, AA-CC 55, BB-CC 99, CC-TT 77. Every route from source SS to sink TT passes through the single pipe CC-TT. Find the maximum flow from SS to TT.
Show worked solution →
Spot the shared final pipe
Both routes (SS-AA-CC-TT and SS-BB-CC-TT) funnel through the one pipe CC-TT, which has capacity only 77. No flow can pass CC to TT faster than 77.
Confirm with a cut
Put CC and TT on the sink side and SS, AA, BB on the source side. The only pipe crossing source-to-sink is CC-TT (77), so the cut capacity is 77. No cut can be smaller than the single pipe every drop must use.
Read the theorem
By the maximum-flow minimum-cut theorem the maximum flow equals this minimum cut, so it is 77 kilolitres per minute. Upstream the network is wider (the pipes into CC carry 5+9=145 + 9 = 14), but CC-TT throttles everything.
Check
A flow of 55 via AA and 22 via BB gives 5+2=75 + 2 = 7 into CC and 77 out along CC-TT, respecting every capacity and matching the cut 77.
core4 marks
A pipe network carries water in kilolitres per minute with one-way pipes SS-AA 1010, SS-BB 99, AA-BB 44, AA-TT 77, BB-TT 1111. Note the internal pipe AA-BB runs from AA to BB. Find the maximum flow from SS to TT, justifying it with a cut.
Show worked solution →

Test the cut into the sink. Put SS, AA, BB on the source side and only TT on the sink side. The crossings are AA-TT (77) and BB-TT (1111), so this cut has capacity 7+11=187 + 11 = 18.

Check it is the minimum. Compare other cuts so 1818 is not beaten:

  • Source side {S}\{S\}: crossings SS-AA (1010), SS-BB (99), capacity 10+9=1910 + 9 = 19.
  • Source side {S,A}\{S, A\}: crossings SS-BB (99), AA-BB (44), AA-TT (77), capacity 9+4+7=209 + 4 + 7 = 20.
  • Source side {S,B}\{S, B\}: crossings SS-AA (1010), BB-TT (1111), capacity 10+11=2110 + 11 = 21.

The smallest is 1818.

Read the theorem. By the maximum-flow minimum-cut theorem the maximum flow is 1818 kilolitres per minute.

Check with an actual flow. Send SS-AA 99, SS-BB 99, AA-BB 22, AA-TT 77, BB-TT 1111. Vertex AA takes in 99 and sends out 2+7=92 + 7 = 9; vertex BB takes in 9+2=119 + 2 = 11 and sends out 1111. The total into TT is 7+11=187 + 11 = 18, matching the cut.

core4 marks
Data flows in megabits per second across one-way links SS-AA 1212, SS-BB 88, AA-CC 1010, BB-DD 77, CC-DD 33, CC-TT 66, DD-TT 99. Find the maximum flow from source SS to sink TT, and name the links that are saturated when the flow is at its maximum.
Show worked solution →

Test the cut into the sink. Put everything except TT on the source side. The crossings are CC-TT (66) and DD-TT (99), so this cut has capacity 6+9=156 + 9 = 15.

Check it is the minimum. Try other cuts:

  • Source side {S}\{S\}: crossings SS-AA (1212), SS-BB (88), capacity 12+8=2012 + 8 = 20.
  • Source side {S,A}\{S, A\}: crossings SS-BB (88), AA-CC (1010), capacity 8+10=188 + 10 = 18.

Neither beats 1515, so the minimum cut is 1515.

Read the theorem
By the maximum-flow minimum-cut theorem the maximum flow is 1515 megabits per second.
Find a flow and its saturated links
Send SS-AA 88, SS-BB 77, AA-CC 88, CC-TT 66, CC-DD 22, BB-DD 77, DD-TT 99. Conservation holds at every junction, and the total into TT is 6+9=156 + 9 = 15. The links carrying their full capacity are CC-TT (6=66 = 6) and DD-TT (9=99 = 9), which are exactly the minimum-cut bottleneck.
Check
Flow 1515 equals cut 1515, confirming the answer; the saturated links are CC-TT and DD-TT.
core4 marks
Cars per hour travel one-way roads SS-AA 99, SS-BB 1111, AA-CC 77, AA-DD 44, BB-DD 88, CC-TT 66, DD-TT 1010 from source SS to sink TT. Find the maximum traffic flow from SS to TT by computing cut capacities.
Show worked solution →

Test several cuts. Sum only the source-to-sink crossings.

  • Source side {S}\{S\}: crossings SS-AA (99), SS-BB (1111), capacity 9+11=209 + 11 = 20.
  • Source side {S,A,B}\{S, A, B\}: crossings AA-CC (77), AA-DD (44), BB-DD (88), capacity 7+4+8=197 + 4 + 8 = 19.
  • Source side {S,A,B,C,D}\{S, A, B, C, D\} (all but the sink): crossings CC-TT (66), DD-TT (1010), capacity 6+10=166 + 10 = 16.
Take the minimum
The smallest cut found is 1616, the pair of roads feeding TT.
Read the theorem
By the maximum-flow minimum-cut theorem the maximum flow is 1616 cars per hour.
Check with an actual flow
Send SS-AA 99, SS-BB 77, AA-CC 66, AA-DD 33, BB-DD 77, CC-TT 66, DD-TT 1010. At AA: in 99, out 6+3=96 + 3 = 9. At DD: in 3+7=103 + 7 = 10, out 1010. The total into TT is 6+10=166 + 10 = 16, matching the minimum cut 1616.
core5 marks
Water flows in kilolitres per minute through one-way pipes SS-AA 1010, SS-BB 66, AA-CC 77, BB-CC 99, CC-TT 88 from source SS to sink TT. (a) Find the maximum flow. (b) The council upgrades pipe CC-TT to capacity 1515. Find the new maximum flow. (c) Explain why the increase is not the full amount CC-TT was widened.
Show worked solution →
(a) Find the original minimum cut
Put SS, AA, BB, CC on the source side. The only crossing is CC-TT (88), so that cut is 88. The cut {S}\{S\} gives SS-AA (1010) plus SS-BB (66) =16= 16, and {S,A,B}\{S, A, B\} gives AA-CC (77) plus BB-CC (99) =16= 16, both larger. The minimum is 88, so the maximum flow is 88 kilolitres per minute.
(b) Re-find the minimum cut after the upgrade
Now CC-TT has capacity 1515, so the cut {S,A,B,C}\{S, A, B, C\} is 1515. The other cuts are unchanged: {S}\{S\} is 1616, and the cut {S,A}\{S, A\} gives SS-BB (66) plus AA-CC (77) =13= 13. The new minimum is 1313, so the new maximum flow is 1313 kilolitres per minute.
(c) Explain the size of the gain
Widening CC-TT from 88 to 1515 moved the bottleneck off that pipe and onto the pipes feeding AA and on into CC: the cut {S,A}\{S, A\}, crossing SS-BB (66) and AA-CC (77), now caps the flow at 1313. The flow rose by only 13−8=513 - 8 = 5, not 15−8=715 - 8 = 7, because once a different cut becomes the minimum, further widening of CC-TT adds nothing.
Check
A flow of SS-AA 77, SS-BB 66, AA-CC 77, BB-CC 66, CC-TT 1313 gives 7+6=137 + 6 = 13 into CC and 1313 out, matching the new minimum cut 1313.
exam5 marks
Data flows in megabits per second across one-way links SS-AA 1111, SS-BB 99, BB-AA 44, AA-CC 88, BB-DD 77, CC-DD 33, CC-TT 66, DD-TT 1010. Note the link BB-AA points from BB to AA. (a) Find the capacity of the cut with source side {S,A}\{S, A\}. (b) Find the maximum flow from SS to TT.
Show worked solution →

(a) Apply the direction rule. With source side {S,A}\{S, A\} and sink side {B,C,D,T}\{B, C, D, T\}, the links crossing source-to-sink are SS-BB (99) and AA-CC (88). The link BB-AA crosses the other way (sink side to source side), so it is not counted. The cut capacity is 9+8=179 + 8 = 17.

(b) Test more cuts. Sum only the source-to-sink crossings.

  • Source side {S,A,B}\{S, A, B\}: crossings AA-CC (88), BB-DD (77), capacity 8+7=158 + 7 = 15.
  • Source side {S,A,B,D}\{S, A, B, D\}: crossings AA-CC (88), DD-TT (1010), capacity 8+10=188 + 10 = 18.
  • Source side {S,A,B,C,D}\{S, A, B, C, D\}: crossings CC-TT (66), DD-TT (1010), capacity 6+10=166 + 10 = 16.
Take the minimum
The smallest is 1515, from {S,A,B}\{S, A, B\}.
Read the theorem
By the maximum-flow minimum-cut theorem the maximum flow is 1515 megabits per second.
Check
A flow of SS-AA 88, SS-BB 77, AA-CC 88, BB-DD 77, CC-TT 66, CC-DD 22, DD-TT 99 sends 6+9=156 + 9 = 15 into TT and obeys every capacity, matching the cut 1515.
exam6 marks
Storm water enters at Dunlop North (PP) and Dunlop South (QQ) and drains to the ocean at Outlet 1 (YY) and Outlet 2 (ZZ) through junctions RR and SS. Capacities in kilolitres per minute are PP-RR 99, PP-SS 55, QQ-SS 88, QQ-RR 66, RR-YY 77, RR-ZZ 44, SS-YY 33, SS-ZZ 1111. Find the maximum total rate at which water leaves the network.
Show worked solution →
Add a super-source and super-sink
Two sources and two sinks reduce to one of each. Add super-source XX feeding PP and QQ, and super-sink WW fed from YY and ZZ. Give each artificial pipe the total capacity at that vertex so it is never the bottleneck: XX-P=9+5=14P = 9 + 5 = 14, XX-Q=8+6=14Q = 8 + 6 = 14, YY-W=7+3=10W = 7 + 3 = 10, ZZ-W=4+11=15W = 4 + 11 = 15.
Test the cut just before the outlets
Put everything except YY, ZZ, WW on the source side. Crossings RR-YY (77), RR-ZZ (44), SS-YY (33), SS-ZZ (1111) give 7+4+3+11=257 + 4 + 3 + 11 = 25.
Test a mixed cut
Put XX, PP, QQ, RR on the source side. The crossings are PP-SS (55), QQ-SS (88), RR-YY (77) and RR-ZZ (44), giving 5+8+7+4=245 + 8 + 7 + 4 = 24. Note QQ-RR and PP-RR stay inside the source side and are not counted.
Take the minimum
The smaller is 2424, and no cut is smaller, so the minimum cut is 2424. By the maximum-flow minimum-cut theorem the maximum total flow is 2424 kilolitres per minute.
Check
A flow with PP-RR 55, PP-SS 55, QQ-RR 66, QQ-SS 88, RR-YY 77, RR-ZZ 44, SS-YY 33, SS-ZZ 1010 delivers 1010 to YY and 1414 to ZZ, a total of 2424 leaving the network, matching the minimum cut.
exam6 marks
Water flows in kilolitres per minute through one-way pipes SS-AA 1414, SS-BB 1010, AA-CC 99, AA-DD 55, BB-DD 88, CC-DD 33, CC-TT 1111, DD-TT 99 from source SS to sink TT. By testing several cuts, find the maximum flow from SS to TT and state the minimum cut that achieves it.
Show worked solution →

Test cuts that move more of the network to the sink side. Sum only the source-to-sink crossings.

  • Source side {S}\{S\}: crossings SS-AA (1414), SS-BB (1010), capacity 14+10=2414 + 10 = 24.
  • Source side {S,A,B}\{S, A, B\}: crossings AA-CC (99), AA-DD (55), BB-DD (88), capacity 9+5+8=229 + 5 + 8 = 22.
  • Source side {S,A,B,C,D}\{S, A, B, C, D\} (all but the sink): crossings CC-TT (1111), DD-TT (99), capacity 11+9=2011 + 9 = 20.
  • Source side {S,A,B,D}\{S, A, B, D\}: crossings AA-CC (99), DD-TT (99), capacity 9+9=189 + 9 = 18.
Take the minimum
The smallest is 1818, from the cut {S,A,B,D}\{S, A, B, D\} versus {C,T}\{C, T\}, crossing AA-CC (99) and DD-TT (99). Note CC-DD runs from the sink side back to the source side, so it is not counted.
Read the theorem
By the maximum-flow minimum-cut theorem the maximum flow is 1818 kilolitres per minute.
Check
A flow of SS-AA 1414, SS-BB 44, AA-CC 99, AA-DD 55, BB-DD 44, CC-TT 99, DD-TT 99 sends 9+9=189 + 9 = 18 into TT and obeys every capacity, matching the minimum cut 1818.
exam7 marks
Cars per hour travel one-way roads SS-AA 1313, SS-BB 1111, AA-CC 88, AA-DD 66, BB-DD 99, BB-EE 44, CC-TT 1010, DD-TT 77, EE-TT 1212 from source SS to sink TT. (a) Find the maximum flow from SS to TT. (b) State a minimum cut whose capacity equals it. (c) Give one example of a flow on each road that achieves the maximum.
Show worked solution →

(a) Test cuts to locate the bottleneck. Sum only the source-to-sink crossings.

  • Source side {S}\{S\}: crossings SS-AA (1313), SS-BB (1111), capacity 13+11=2413 + 11 = 24.
  • Source side {S,A,B}\{S, A, B\}: crossings AA-CC (88), AA-DD (66), BB-DD (99), BB-EE (44), capacity 8+6+9+4=278 + 6 + 9 + 4 = 27.
  • Source side {S,A,B,C,D}\{S, A, B, C, D\}: crossings BB-EE (44), CC-TT (1010), DD-TT (77), capacity 4+10+7=214 + 10 + 7 = 21.
  • Source side {S,A,B,D}\{S, A, B, D\}: crossings AA-CC (88), BB-EE (44), DD-TT (77), capacity 8+4+7=198 + 4 + 7 = 19.

The smallest found is 1919. By the maximum-flow minimum-cut theorem the maximum flow is 1919 cars per hour.

(b) State the minimum cut
The cut with source side {S,A,B,D}\{S, A, B, D\} and sink side {C,E,T}\{C, E, T\} has capacity AA-CC (88) plus BB-EE (44) plus DD-TT (77) =19= 19. The bottleneck is a mix of middle and final roads, not one clean layer.
(c) Give an achieving flow
Send SS-AA 1111, SS-BB 88, AA-CC 88, AA-DD 33, BB-DD 44, BB-EE 44, CC-TT 88, DD-TT 77, EE-TT 44. Conservation holds: at AA, in 1111, out 8+3=118 + 3 = 11; at DD, in 3+4=73 + 4 = 7, out 77. The total into TT is 8+7+4=198 + 7 + 4 = 19.
Check
The flow 1919 equals the minimum cut 1919 and the three cut roads AA-CC, BB-EE, DD-TT are all saturated, confirming the maximum.

Practise this

Sources & how we know this

ExamExplained