ArticleslgStudy

mathematics

Max-flow min-cut theorem

Max-flow min-cut theorem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Max-flow min-cut theorem rather than just read about it. In short: In computer science and optimization theory, the max-flow min-cut theorem states that in a flow network, the maximum amount of flow passing from the source to the sink is equal to the total weight of the edges in a minimum cut, i.e., the smallest total weight of the edges which if removed would disconnect the source from the sink. For example, imagine a network of pipes carrying water from a reservoir (the source) t…

Max-flow min-cut theorem — main illustration
Max-flow min-cut theorem — illustration

Key takeaways

  • Max-flow min-cut theorem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Max-flow min-cut theorem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Max-flow min-cut theorem from memory before moving on to harder problems.

Reference excerpt

In computer science and optimization theory, the max-flow min-cut theorem states that in a flow network, the maximum amount of flow passing from the source to the sink is equal to the total weight of the edges in a minimum cut, i.e., the smallest total weight of the edges which if removed would disconnect the source from the sink. For example, imagine a network of pipes carrying water from a reservoir (the source) to a city (the sink). Each pipe has a capacity representing the maximum amount of water that can flow through it per unit of time. The max-flow min-cut theorem tells us that the maximum amount of water that can reach the city is limited by the smallest total capacity of any set of pipes that, if cut, would completely isolate the reservoir from the city. This smallest total capacity is the min-cut. So, if there's a bottleneck in the pipe network, represented by a small min-cut, that bottleneck will determine the overall maximum flow of water to the city. This is a special case of the duality theorem for linear programs and can be used to derive Menger's theorem and the Kőnig–Egerváry theorem.

Definitions and statement The theorem equates two quantities: the maximum flow through a network, and the minimum capacity of a cut of the network. To state the theorem, each of these notions must first be defined.

Network A network consists of

a finite directed graph G = (V, E), where V denotes the finite set of vertices and E ⊆ V×V is the set of directed edges; a source s ∈ V and a sink t ∈ V; a capacity function, which is a mapping c:E→ℝ+ denoted by cuv or c(u, v) for (u,v) ∈ E. It represents the maximum amount of flow that can pass through an edge.

Flows A flow through a network is a mapping f:E→ℝ+ denoted by fuv or f(u,v), subject to the following two constraints:

Capacity Constraint: For every edge (u,v)∈E, fuv≤cuv. Conservation of Flows: For each vertex v apart from s and t (i.e. the source and sink, respectively), the following equality holds:∑{u:(u,v)∈E}fuv=∑{w:(v,w)∈E}fvw. A flow can be visualized as a physical flow of a fluid through the network, following the direction of each edge. The capacity constraint then says that the volume flowing through each edge per unit time is less than or equal to the maximum capacity of the edge, and the conservation constraint says that the amount that flows into each vertex equals the amount flowing out of each vertex, apart from the source and sink vertices. The value of a flow is defined by

|f|=∑{v:(s,v)∈E}fsv=∑{v:(v,t)∈E}fvt, where as above s is the source and t is the sink of the network. In the fluid analogy, it represents the amount of fluid entering the network at the source. Because of the conservation axiom for flows, this is the same as the amount of flow leaving the network at the sink. The maximum flow problem asks for the largest flow on a given network.

Maximum Flow Problem. Maximize |f|, that is, to route as much flow as possible from s to t.

Cuts The other half of the max-flow min-cut theorem refers to a different aspect of a network: the collection of cuts. An s-t cut C = (S, T) is a partition of V such that s ∈ S and t ∈ T. That is, an s-t cut is a division of the vertices of the network into two parts, with the source in one part and the sink in the other. The cut-set XC of a cut C is the set of edges that connect the source part of the cut to the sink part:

XC:={(u,v)∈E : u∈S,v∈T}=(S×T)∩E. Thus, if all the edges in the cut-set of C are removed, then no positive flow is possible, because there is no path in the resulting graph from the source to the sink. The capacity of an s-t cut is the sum of the capacities of the edges in its cut-set,

c(S,T)=∑(u,v)∈XCcuv=∑(i,j)∈Ecijdij, where dij=1 if i∈S and j∈T, 0 otherwise. There are typically many cuts in a graph, but cuts with smaller weights are often more difficult to find.

Minimum s-t Cut Problem. Minimize c(S, T), that is, determine S and T such that the capacity of the s-t cut is minimal.

Main theorem In the above situation, one can prove that the value of any flow through a network is less than or equal to the capacity of any s-t cut, and that furthermore a flow with maximal value and a cut with minimal capacity exist. The main theorem links the maximum flow value with the minimum cut capacity of the network.

Max-flow min-cut theorem. The maximum value of an s-t flow is equal to the minimum capacity over all s-t cuts.

Example

The figure on the right shows a flow in a network. The numerical annotation on each arrow, in the form f/c, indicates the flow (f) and the capacity (c) of the arrow. The flows emanating from the source total five (2+3=5), as do the flows into the sink (2+3=5), establishing that the flow's value is 5. One s-t cut with value 5 is given by S={s,p} and T={o, q, r, t}. The capacities of the edges that cross this cut are 3 and 2, giving a cut capacity of 3+2=5. (The arrow from o to p is not considered, as it points from T back to S.) The value of the flow is equal to the capacity of the cut, showing that the flow is a maximal flow and the cut is a minimal cut. Note that the flow through each of the two arrows that connect S to T is at full capacity; this is always the case: a minimal cut represents a 'bottleneck' of the system.

Linear program formulation The max-flow problem and min-cut problem can be formulated as two primal-dual linear programs.

The max-flow LP is straightforward. The dual LP is obtained using the algorithm described in dual linear program: the variables and sign constraints of the dual correspond to the constraints of the primal, and the constraints of the dual correspond to the variables and sign constraints of the primal. The resulting LP requires some explanation. The interpretation of the variables in the min-cut LP is:

duv={1,if u∈S and v∈T (the edge uv is in the cut) 0,otherwise zv={1,if v∈S0,otherwise The minimization objective sums the capacity over all the edges that are contained in the cut. The constraints guarantee that the variables indeed represent a legal cut:

… excerpt ends here. Continue reading the full article.

Illustrations

Max-flow min-cut theorem: A network formulation of the project selection problem with the optimal solution
A network formulation of the project selection problem with the optimal solution
Max-flow min-cut theorem: Each black node denotes a pixel.
Each black node denotes a pixel.

Worked examples

Example 1 — a first encounter with Max-flow min-cut theorem

Start with the simplest possible case. Write down what Max-flow min-cut theorem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Max-flow min-cut theorem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Max-flow min-cut theorem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Max-flow min-cut theorem

In research
Max-flow min-cut theorem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Max-flow min-cut theorem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Max-flow min-cut theorem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorial optimization, Network flow problem, Theorems in graph theory, so understanding it makes those chapters shorter.
In everyday life
Look for Max-flow min-cut theorem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Max-flow min-cut theorem” →

How to study Max-flow min-cut theorem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Max-flow min-cut theorem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Max-flow min-cut theorem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Max-flow min-cut theorem in simple terms?

In computer science and optimization theory, the max-flow min-cut theorem states that in a flow network, the maximum amount of flow passing from the source to the sink is equal to the total weight of the edges in a minimum cut, i.e., the smallest total weight of the edges which if removed would dis…

Why does Max-flow min-cut theorem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Max-flow min-cut theorem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Max-flow min-cut theorem.

Tags

  • Combinatorial optimization
  • Network flow problem
  • Theorems in graph theory

Keep exploring