i
0 Carta 0Cnn
I
i
trytttlarqstcap.edg e.fi i’Emts.EE
qyogtEEeri
se
t
s
buesutcap.edgs
astitent
Exert
Ho
t
20
U
feet
20
soL l gourd
0
O wir
ee
Iforwardedge
w
cap
Ce
Ce
backward edge ol
1
r forward edge wi
w
cap
1 backward is a
cap Ce fee x f e
Iif
s
Gts gditerftjs.no
fokst
s
t
s
t
f
t
f
th
U
Hf
31
t
fl
feel bottleneck P Office
Hut Ce
feel
Ce
bottleneck
p O
feel fcey
7
f’t e
z Z
Ce f C
fee
G Befoe
N
y T
After
is
Casey
s
Being offorwardeder
tb b
Case2iBoHsarebaetewardetgsWde ease3j.eeiames.r.ws aform dseeit.o.aba
m
It
I
O
e
Hfi
Etfs
tease loopmaftterfEiferations
so
E
f
Max Proof
of the
value oftheflow
CAB Cat
so the Max Flor cap ofevery
s
t
rift Cf
fateA fateA
SE
e of
f
C
is
LAB
bounded by the af
f
fi
cap
ee out A
It
c
Hf
v
AA
Att
B’t
E G
footCA’t fin
ATB
t
Cf Max value ofanyflow
G tactics
in AABH has the Min cap of any s
say youhave Max Flor f How doyou find Min at
construct Gf
off defLegchablefrom sin Gf
At
Is
min
cat
unique
TY
No t
tell if mini art is
How
can we unique
rightmost Mein cats are the same
unique
ifleftmost
TI
t
old 4Th 0cm
overallcomplexity
0km7
pseudopolynomials
a s
so
I
t
in
of
D 64
r res.cap L
D
AB4
E sf
e
fCe’s CD
once
0
O
2M
ago
01mL
oomf
polynomial ti weary
complexity overall OCm.bg
Cw toga
Discussion 8
1. You have successfully computed a maximum s-t flow f for a network G = (V; E) with integer edge capacities. Your boss no gives ou another netork G that is identical to G ecept that the capacit of exactly one edge is decreased by one. You are also explicitly given the edge whose capacity was changed. Describe ho ou can compute a maimum flo for G in O(V + E) time.
2. You need to transport iron-ore from the mine to the factory. We would like to determine how long it takes to transport. For this problem, you are given a graph representing the road network of cities, with a list of k of its vertices (t1, t2,…, tk) which are designated as factories, and one vertex S (the iron-ore mine) where all the ore is present.
We are also given the following:
Road Capacities (amount of iron that can be transported per minute) for each road (edges) between the cities (vertices).
Factory Capacities (amount of iron that can be received per minute) for each factory ( at t1, t2,…, tk)
The amount of ore to be transported from the mine, C
Give a polynomial-time algorithm to determine the minimum amount of time necessary to transport and receive all the iron-ore at factories.
3. In a daring burglary, someone attempted to steal all the candy bars from the CS department. Luckily, he was quickly detected, and now, the course staff and students will have to keep him from escaping from campus. In order to do so, they can be deployed to monitor strategic routes.
More formally, we can think of the USC campus as a graph, in which the nodes are locations, and edges are pathas or corridors. One of the nodes (the instructors office) is the burglars starting point, and several nodes (the USC gates) are the escape points if the burglar reaches any one of those, the candy bars will be gone forever. Students and staff can be placed to monitor the edges. As it is hard to hide that many candy bars, the burglar cannot pass by a monitored edge undetected.
Give an algorithm to compute the minimum number of students/staff needed to ensure that the burglar cannot reach an escape points undetected (ou dont need to output the corresponding assignment for students the number is enough). As input, the algorithm takes the graph G = (V,E) representing the USC campus, the starting point s, and a set of escape points P ⊆ V . Prove that your algorithm is correct and runs in polynomial time.
4. We define a most vital edge of a network as an edge whose deletion causes the largest decrease in the maximum s-t-flow value. Let f be an arbitrary maximum s-t-flow. Either prove the following claims or show through counterexamples that they are false:
(a) A most vital edge is an edge e with the maximum value of c(e).
(b) A most vital edge is an edge e with the maximum value of f (e).
(c) A most vital edge is an edge e with the maximum value of f (e) among edges belonging to some minimum cut.
(d) An edge that does not belong to any minimum cut cannot be a most vital edge.
(e) A network can contain only one most vital edge.
Casca
case 2
Lee
ah s.AE
EIii
fees
Maxton change
feel
doesn’t Ce
I
ai
s
Is s
57
t
Faith t