AD-2 Assignment I
AD-2 Assignment I
AD-2 Assignment I
AD
A9S1GNMENT 1
1. (a) (12)
(2) (G)
3)
(b)
G6
13 l6
6
2
3/s
(Gle).
Path flow
S’u0’W’Z 2
3
Max loo la
(c) (6/2)
(ale), (o)
Yab)
(oY
(3l3)
(l4)
() Elosw, Path
S’B-C-]
S ’B>D
Max flow ||
2l2 G/4
25
Mar- floo
Min Cuti
Romoing CA,D), 8,D),(ag) (&.ct
(b)
(/4)
(2l),
(5/%) (3|3)
(o)a),a,) , (a.D) (3.) (0)
(d) A tshich al edqes have capaity:
(e) Aigorithm avov30Ahoaudn each Ldge. te qaph.
Soareh a path bohwoen S .
Remae Qd h min caracity avd queul
taths :- Ss. a. ci
(b)
2/0
3)
2/8
3/5
s|8
214
2
\2/4
219
sLG
24
(o) f(a).(e),(dt
o)
(2h) ( ) (9) otll = 45442|y
(A) 2|2.
y(a)
1o/0
(a) (iotb|o4t)
o+ olo t) (bl)
(aa)
(lotbho4)
krom
S-(a)
(2)
(4)
(O).
(3)
(O (37
(9)
3)
(S) (3(3)
3)
sQ)
s(1)
Max
(b) Min eut i-
cat(ada) 14
(e) Cs,)=1
(a)
I(4)
( (alo)
(1)
(6)
3) (9 o)
Max flow 1 3
Sounca Sida
Min s-t Cu S
+3+84Sa
no
Curtain
4he n21 Qmaing Samo and Max lo)
Sliqhth dIlers
di4kers but bud inereag 'n
reault in de Caparty
max-flou). que
Ralse
iD a) A-}s)6),(2.6),(a ),(32) ,6.:), (48)
M-(s) Q6)(3.)
34.
3inta
t:p, a|l paths mut have he
matcling and eycle
() Algpridhn:
Create a ntook d.
Run Ah ford Eulkerson Aloorithm9).
obt ain he Maimum maBching
As tardinality minlL2) =0(v)
Max flouol G) o(v)
May
matehing tn bipbipatte
in
o(ve)= 0(vE)
As |e=le).
(d) Hoperott -karp aloprm
fine coýlbrity: o(ivieL)
path Brom Meral to
he pevig Ana
assiqnant, Auon Por no literal a, Aere dre both
path om gn ohor cuordh,
hot Stronay conmeokd component o G oortany
a; Hous in
(b) orom DES Aom apropiat hawea to {ind all
deert conheeed comppgents. he no o diferet
Connotted components in Dur angwer t.
1
oudput
eOnneete componort , end ge eomponont
nn. .each ne and m'in diamoler rom SBart
Componerh in each
(6)
+(ogty)+ (n4)
shos
Sooan Runetn SM into
Sakshoa 20f-SAT and
toitin Tolyno mia
tonaçh. Reducion
(9) S
(b) Algprtm
Auston)
find S; om Si,4-Snt
alajan
baitay
ollaing vala isie minimum
alove pikQt Si toT
1-10
1&. (a)
(6)
Plagtrui
Hor 'oery pairluv) in Aha gubset v}
Check, Ahat Ahoe to0 h-e an
bre ak,
20.(a) Assiqnnond o Auo sytems to each Btudert
21. bo
(a) Docision In such aa way Aha
ma oparod oh min c
Atham city juneios and
(e)
1 1
Value: o,1,3,A