Prove the max-flow min-cut theorem. Define the residual graph, show that no augmenting path means maximum flow, and construct the cut based on reachable nodes proving its capacity equals the flow.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Prove that if there's no augmenting path, the current flow is maximum
Prove that every flow is bounded by the capacity of any cut
Show that we can construct a minimum cut from the set of reachable nodes in the residual graph
Conclude that max flow = min cut
Let me organize this carefully and rigorously.
Definitions
Flow Network: A directed graph G = (V, E) with:
A source s ∈ V
A sink t ∈ V
Edge capacities c(u,v) ≥ 0 for each edge (u,v) ∈ E
Flow: A function f: E → ℝ that satisfies:
Capacity Constraint: 0 ≤ f(u,v) ≤ c(u,v) for all (u,v) ∈ E
Flow Conservation: For all v ∈ V \ {s,t}, ∑{u:(u,v)∈E} f(u,v) = ∑{v:(v,w)∈E} f(v,w)
The value of a flow f is: |f| = ∑_{v:(s,v)∈E} f(s,v)
Cut: A partition (S, T) of V where s ∈ S and t ∈ T.
The capacity of a cut is: c(S,T) = ∑_{u∈S, v∈T: (u,v)∈E} c(u,v)
Residual Graph: For a given flow f, the residual graph G_f contains the same vertices but with modified edges. Each original edge (u,v) generates a forward edge with residual capacity c_f(u,v) = c(u,v) - f(u,v) and a backward edge with residual capacity c_f(v,u) = f(u,v).
Augmenting Path: A simple path from s to t in the residual graph G_f.
Now I'll structure the proof by establishing that any flow is bounded by every cut's capacity, then showing that when no augmenting path exists, the flow achieves this bound.
Lemma 1: The flow value across any cut (S,T) equals |f| = ∑{u∈S,v∈T:(u,v)∈E} f(u,v) - ∑{u∈T,v∈S:(u,v)∈E} f(u,v).
Lemma 2: For any cut (S,T), the flow value is bounded by the cut's capacity: |f| ≤ c(S,T).
Lemma 3: An augmenting path in G_f allows us to increase the flow value.
Lemma 4 (Key): When no augmenting path exists in G_f, if I define S as the set of vertices reachable from s in G_f, then the cut (S, V\S) has capacity equal to |f|.
Conclusion: Combining Lemmas 2 and 4 yields the max-flow min-cut theorem: max_f |f| = min_{(S,T)} c(S,T).
Max-Flow Min-Cut Theorem: Complete Proof
1. Definitions
Flow Network
A directed graph G = (V, E) with:
Source s ∈ V and sink t ∈ V
Capacity c(u,v) ≥ 0 for each edge (u,v) ∈ E
For non-existent edges, c(u,v) = 0
Flow
A function f: V × V → ℝ satisfying:
Capacity Constraint: f(u,v) ≤ c(u,v)
Skew Symmetry: f(u,v) = -f(v,u)
Flow Conservation: For all v ∈ V \ {s,t}:
∑u∈Vf(u,v)=0
The flow value is: ∣f∣=∑v∈Vf(s,v)
Cut
A partition (S, T) where s ∈ S, t ∈ T, and S ∪ T = V.
The cut capacity is:
c(S,T)=∑u∈S,v∈Tc(u,v)
Residual Graph
Given flow f, the residual graph G_f = (V, E_f) has:
Residual capacity: cf(u,v)=c(u,v)−f(u,v)
An augmenting path is a path from s to t in G_f.
2. Key Lemmas
Lemma 1: Flow-Cut Relationship
For any flow f and cut (S,T):
∣f∣=∑u∈S,v∈Tf(u,
Proof:∣f∣=∑v∈Vf(s,v)=
By flow conservation, for v ∈ S \ {s}: ∑u∈Vf(u,v)=0
Therefore:
∣f∣=∑u∈Vf(u,s
Reorganizing by where flow crosses:
∣f∣=∑u∈S,v∈Tf(u
Lemma 2: Flow ≤ Cut Capacity
For any flow f and any cut (S,T):
∣f∣≤c(S,T)
Proof:∣f∣=∑u∈S,v∈Tf(u,
Since flow is non-negative and bounded:
∣f∣≤∑u∈S,v∈T
3. Augmenting Path Theorem
Lemma 3: Augmenting Paths Increase Flow
If an augmenting path P exists in G_f, then we can increase |f|.
Proof:
Let P be: s = v₀ → v₁ → ··· → vₖ = t
Define the bottleneck capacity:
cf(P)=mini=0
Augment flow by δ = c_f(P) along P:
f′(u,v)={
Then: ∣f′∣=∣f∣+δ>∣f∣□
4. Main Theorem
Theorem: Max-Flow Min-Cut
maxf∣f∣=min(S,T)c
Proof:
Step 1: By Lemma 2, every flow is bounded by every cut value, so:
maxf∣f∣≤min(S,T)
Step 2: We must show that the maximum flow equals some cut capacity.
Suppose f is a maximum flow with no augmenting path in G_f (if one exists, we could increase f, contradicting maximality).
Step 3: Construct the Cut
Let:
S={v∈V:v is reachable from s in Gf}T
Since no augmenting path exists: t ∉ S (if t were reachable, we'd have an augmenting path).
Thus s ∈ S and t ∈ T, so (S,T) is a valid cut.
Step 4: Show c(S,T) = |f|
For all u ∈ S, v ∈ T with (u,v) ∈ E:
If c_f(u,v) > 0: Then v would be reachable from u, contradicting v ∈ T.
Therefore: c_f(u,v) = 0, which means:
c(u,v)−f(u,v)=0⟹f(
Step 5: Calculate Cut Capacity
c(S,T)=∑u∈S,v∈T
=∑u∈S,v∈Tf(u,v)−
=∣f∣(by Lemma 1)
Conclusion:
maxf∣f∣≥c(S,T)=∣f∣
Combined with Step 1: fmax∣f∣=
5. Algorithm Implication: Ford-Fulkerson
code
MaxFlow(G, s, t):
f ← 0 for all edges
while augmenting path P exists in G_f:
δ ← min{c_f(u,v) : (u,v) ∈ P}
for each (u,v) in P:
f(u,v) ← f(u,v) + δ
return f
Termination: The algorithm terminates when no augmenting path exists.
Correctness: At termination, the constructed cut (S,T) has capacity = flow value, proving maximality.
Summary
Concept
Role
Augmenting Path
Indicator that flow is not maximum
Residual Graph
Tool to find augmenting paths
No Augmenting Path
⟺ Maximum flow achieved
Reachable Nodes
Define minimum cut
Cut Construction
Proves optimality
The theorem elegantly shows that flow optimization is fundamentally dual to cut minimization.
Forward edges: (u,v) with c_f(u,v) > 0
Backward edges: (v,u) with f(u,v) > 0
v
)
−
∑u∈T,v∈Sf(u,v)
∑v∈S∑u∈Vf(u,v)
)
∣s
=
∑u∈Sf(u,s)+
∑u∈Tf(u,s)
,
v
)
−
∑v∈S,u∈Tf(u,v)□
v
)
−
∑u∈T,v∈Sf(u,v)
f
(
u
,
v
)
≤
∑u∈S,v∈Tc(u,v)=
c(S,T)□
k−1
cf
(
vi
,
vi+1
)
>
0
f(u,v)+δf(u,v)if (u,v)∈Potherwise
(
S
,
T
)
c
(
S
,
T
)
=
V∖
S
u
,
v
)
=
c(u,v)
If (v,u) ∈ E: Then c_f(v,u) = 0 (otherwise u would be reachable from v).