by Maarten Behn
Group 5
Exercise 4.1
a) Give an example of a network in which and the number of iterations of the Ford-Fulkerson Algorithm is , where , is the largest capacity of any arc.
b) What is the size of the input for this example?
c) Prove that this leads to an exponential running time (w.r.t. the size of the input).
a)
Transclude of AA-UE-4.1.1.excalidraw
and therefore
Example for
“Worst” paths
If the Algorithm always happens to choose the path over the center edge
the algorithm takes Iterations.
Transclude of AA-UE-4.1.2.excalidraw
Ford-Fulkerson always choose an path over the center edge.
The incoming flow to t is increaes by one for every iteration.
t has an incoming flow of . Therefore Ford-Fulkerson takes up to iterations for this exmaple.
Proof that Ford-Fulkerson always choose an path over the center edge.
Ford-Fulkerson repeatly chooses s-2-1-t and s-1-2-t.
After every s-2-1-t path 1-2 has a capacity of 1 and s-1-2-t can be choosen next.
After every s-1-2-t path 2-1 has a capacity of 1 and s-2-1-t can be choosen next.
b)
Use the Graph from a) to construct:
Transclude of AA-UE-4.1.4.excalidraw
The input size is
c)
I proved in a) that Ford-Fulkerson can take up to Iterations for a sub graph .
In the Graph of b) consist of Sub graphs of a).
Therfore the of b) has edges.
In the Lecture the runtime of Ford-Fulkerson is with value of maximum flow.
For of b)
Therfore of b) has a Runtime of
which corresponds to a Runtime of
Exercise 4.2
Let be a flow in a network , and let be a flow in the residual network of w.r.t. .
Prove the following statements:
a) is a flow in .
b) If is a maximum flow in , then is a maximum flow in .
a)
Define the sum of flows as
and
capacity constraints
For
show that
since and
since
since and (there is only an backwards residual egde if there is a flow )
flow conservation
For
since and hold the flow conservation
b)
Since is a flow → a)
Proof by contradiction
Suppose that is not a maximum flow in . Then, there exists some flow in such that
this is a contradiction with being maximum.
Since is a maximum flow in the residual network , the Optimality criteria Theorem says:
The residual network has no augmenting s-t-paths.
Hence, by the Max-Flow Min-Cut Theorem, is a maximum flow in .
Exercise 4.3
Let be an s-t-network with edges.
Prove that there exists a maximum flow in N that is the sum of at most m flows , each of which takes positive values only on a single s-t-path in .
Moreover, prove that if all capacities in are integers, then can be chosen as integral flows.
Proof by induction
Assumption
where
- is either an s-t-path and an flow cicle. This means only the edges on the path or cicle have positive value.
- is an integral flow when is an integral flow.
Step repeat while
Define a residual graph based on
contains only edges with a positive flow
Pick an vertex with an non zero incoming flow.
Search for an s-t-path covering .
If there is no path then there must be a circle that covers .
Construct a new flow or from or where the value of all edges is
Proof
There can be at most s-t-paths in
And there is no path that are equal, because the edge with the minimum capacity is has a capacity of zero after the path of is found.
Proof is an integral flow when is an integral flow.
If is intigral is always intigral therefore is intigral.
Source:
https://theory.stanford.edu/~trevisan/cs261/lecture11.pdf (11.05.‘25 17:20)