Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

Sidhosioar Mdharana

Roat tNor- 14I03426


SocionsCS1-B.

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

Break 4he lo0p, ohon re is no path


betooen no conneeivity.
3(a) (3)
(8) (
(s)
(9)

taths :- Ss. a. ci

(b)
2/0
3)

Man-floo- Q+34244 =14

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

(6) Yes $s-y -tf

(e) 3 (b) (D4)


(b)
(b)
(t0+b) (6)

(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)

(e) Min cut' 14 4 12t4 41


(A)213
V3

Max flow 1 3

(b) Min cut

Sounca Sida

(a) min- cut


643+8+3+54
Max lou0 S34& tS+34

(b], Ahe eurmont, low


louo is Ahe ma flou
netuork .

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.

(b) Supp thene oxist an Ap'eM.:


Constueh neu0 M,

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

3SSiomor mut be FALSE

he pevig Ana
assiqnant, Auon Por no literal a, Aere dre both
path om gn ohor cuordh,
hot Stronay conmeokd component o G oortany

1a- (a) Ever houe in colony haA aRaat Onu pine


yoing inin and
to be in gtaled n a mânngr sueh that
hal

Ougoing pipe but oo


ineoming pie qos a tank natald on at
ard Quey opih ony an incomig
and 0

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

Sinee 4ank Can be intaled ony on e


houne hav ing otgoing pipe and o
Ahg ore appropiak how to
start.fS rom e s parkom S rom
Such.tnyisikd iowey
(e) Ane es can 10ad to polyromjal ina
Blgor ithm.

(6)
+(ogty)+ (n4)
shos
Sooan Runetn SM into
Sakshoa 20f-SAT and
toitin Tolyno mia
tonaçh. Reducion

(a) fa( +9+2)( #Y-2)


(x+2)(*+Y42)(xe)
C4142)(R+)

(b) You Cannot


eluct teDO vertic o. an
simultanoouly AUo you (anno
Varialbla. and ts negation RUE simuttareouy"
ou vmust have a true wañable at. a claug:
Auo o maximto
numler gelacted
made
hom
bo

(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

You might also like