W4231: Analysis of Algorithms
11/3/1999
- Cuts and Flow
– COMSW4231, Analysis of Algorithms – 1
A Network
s a b c d t e g 3 8 6 4 4 2 2 4 1 7 4
4 – COMSW4231, Analysis of Algorithms – 2
A Flow in the Network
s a b c d t e g 3 8 6 4 4 2 2 4 1 7 4 3 7 1 4 6 1 2 7 4 3 3 1
4 – COMSW4231, Analysis of Algorithms – 3
A Cut in the Network
s a b c d t e g 3 8 6 4 4 2 2 4 1 7 4
4
S V−S
– COMSW4231, Analysis of Algorithms – 4
The Flow Through a Cut is Independent of the Cut
We want to prove: Theorem 1. Fix a flow f. For every cut S, V − S we have
- u∈S,v∈S,(u,v)∈E
f(u, v) −
- u∈S,v∈S,(v,u)∈E
f(v, u) is always the same, independently of S. As a special case, we have that
u f(s, u) = v f(v, t), so
that the cost of a flow is well-defined.
– COMSW4231, Analysis of Algorithms – 5
Proof
Assume f(u, v) is defined for every pair (u, v) and f(u, v) = 0 if (u, v) ∈ E.
- u∈S,v∈S
f(u, v) −
- u∈S,v∈S
f(u, v) =
- u∈S,v∈V
f(u, v) −
- u∈S,v∈S
f(u, v) −
- u∈S,v∈S
f(u, v) =
- u∈S,v∈V
f(u, v) −
- u∈V,v∈S
f(u, v)
– COMSW4231, Analysis of Algorithms – 6