1 networks

A network is denoted by S = (G, c, s, t) where:

1.1 flow

A flow in S from the source s to the sink t is any function f: E \to [0, \infty) such that:

  1. 0 \le f(uv) \le c(uv)
  2. Kirchhoff’s law

1.1.1 value

Value of a flow f is W(f) = \sum f(su) - \sum f(us)

1.1.2 maximal flow

A flow from s to t is called maximal if it’s value is the largest possible.

f(A, V-A) = \sum_{e \in P(A)} f(e)

1.2 cut

let A \subseteq V

A cut P(A) is a set of edges (from E) from A to V - A

1.2.1 capacity

A capacity of a cut is the sum of all capacities in a cut P(A). Denoted by c(A, V-A)

1.2.2 minimal

A P(A) cut is called minimal if the capacity of this cut is the least possible.

1.3 lemma

If s \in A and t \in V-A then W(f) = f(A, V-A) - f(V-A, V)

1.4 Ford-Fulkerson Theorem

The value of a maximal flow from s to t is equal to the capacity of minimal cut between s and t

1.4.1 algorithm

FF(S):

  1. for each edge uv \in E
    1. do f(uv) \leftarrow 0
  2. while there exists an augmenting path P in S from s to t for the flow f
    1. do modify the flow f by increasing by the value of f along the path P

1.4.2 proposition

W(f) \le c(A, V-A)

1.5 augmenting paths

An augmenting path from s to t for a flow f is a sequence of vertices and edges v_0, e_1, v_1, \cdots, v_{l-1}, e_l, v_l where v_0 = s and v_l = t and e_i is useful from v_{i-1} to v_i

An edge is useful from u to v with respect to a flow f if:

f' - flow on the augmented path

\Delta(e_i) = \begin{cases} c(e_i) - f(e_i) & \text{if} & e_i\ \text{is a useful forward edge} \\ f(e_i) & \text{if} & e_i\ \text{is a useful reverse edge} \\ \end{cases}

\delta = \min\{\Delta(e_i)\}

f'(e_i) = \begin{cases} f(e_i) + \delta & \text{if} & e_i\ \text{is a useful forward edge} \\ f(e_i) - \delta & \text{if} & e_i\ \text{is a useful reverse edge} \\ \end{cases}

f'(e) = f(e) for all edges not belonging to our augmented path

1.6 theorem

These are equivalent:

1.7 multiple sources/sinks

Let s_1, s_2, \cdots s_p be the sinks and let t_1, t_2, \cdots t_q be sources