Assign 2
Assign 2
2. Find a feasible solution or determine that there are no feasible solutions for the following
system of difference inequalities.
x1 − x2 ≤ 4
x1 − x5 ≤ 5
x2 − x4 ≤ −6
x3 − x2 ≤ 1
x4 − x1 ≤ 3
x4 − x3 ≤ 5
x4 − x5 ≤ 10
x5 − x3 ≤ −4
x5 − x4 ≤ −8.
5. Consider the flow graph in Figure 1. Compute the maximum flow of this flow graph
using two approaches (both approaches run Ford-Fulkerson algorithm but asks you to
pick a path from s to t in the residual graph in a particular way if there are more than
one such path):
• In the first approach, always pick an augmenting path from s to t in the residual
graph which has the maximum number of edges.
1
• In the second approach, always pick an augmenting path from s to t in the residual
graph which has the minimum number of edges.
1000
1000
1
s t
1000 1000
6. Let G = (N, E, c) be a flow graph and f be a feasible flow of this flow graph. Assume
that c : E → Z+ (integer capacities) and f : E → R+ (real flow). Show that there
exists another feasible flow f 0 of this flow graph such that ν(f 0 ) = dν(f )e and f 0 (i, j) ∈
{bf (i, j)c, df (i, j)e} for all (i, j) ∈ E.