You are on page 1of 8

bove

table
wegot
4.
A 1 2 <3 is %
ig
pjs
Y-
lommen
engt
B -1
n
Subs hocanel
2 2 3 3 4-3
ahigs,
{ABCBDA
max
1(6)
Anstwer longst
A 2
length
DAB3
BA?
Y-fBOCA <2 3 3 the
Jien
Gicn
AO
tO00
12 t2<-22
tigmax. LCS
stand'
erhen s that
Stey
BCB ehng
the
evalua X- ginen
BO1+1
e1
BO1
2 12
AO112
fhe BCBA

BO1 ’BDAB
X-{A DOMD sthing Can
CO
1 On LCS
that
A C
Subnie oill beoy 4 (hamcis. Ansues 1(el)
Algo t e LS Given,
Chjet Velae
2
3.
n-kogts()
1
2
wtiglt
2
3
3
5
(to, i]+o
Siz e Krapssck, m= 6
solue the Ol1 Knpsck
Con
-i"
Lsiy Dyvanie Pagammg
13. else
(tij]¢ (ti,j-31
Vri,w]- may Vti-,wl, vEi, w-wi] t Pti
hene i- in cle yJnunler of objcct
1.
2

cbiat lueigt Value O 1 2 3 5 6


11 O
6
1 2 1 11 1
7. 32
2 3 2 1 22 3 3

33 4 1
5
06jt
have
Se, lucet Capruty koupsoch
6-3-3 3
As.
gain Topogical,
3-3= O DFS. sonting 's rainy
Kuppsk maxi wm
So, andl
taken (cts 2 cudl 3 ).
the D6jtofs DESC6)
y sing est's
net toing Ohjct 1 vissted to he knkef
nglecting (not Ad the
st
sFal Sokution : 011 (i) Retin he uentiss m the ied s(.
(xclesion- CO
’ Objec 1 -(not oken)
) in clus ion -1
-> 06jet 2 - (taken
S/12
>Object 3 - (tahen) inçlasion, -1
8

Final solktion: 011 Tepoa sont is


AnswesQ(6)
Qulens and 0, 73 0
4Qraans pe
poovided
bcrocnd e he to
x4 chess in (hees
10,637
To, 73
21,5|co
22, si 234o1fo clead 2,
-

18? clend en d
5=5,l, 12, 13, 15,
| 22,50
end lad nel
Teogeked Sum,1- 30 S= 73 clerd
12,6
all elnent
lnel enel
Stum
30,5
O, 73I Ano thes Solion O01001
I,0
15, 58
So, the selet'ons
11 001o
21,96 8,18 Iz,91 / O01 001
40.33 10110O
2?.46 27,1Lw J..
ncl
42,31 2,44 lnel end

lnol
dae dend
nel

soluti on Is 110010
Anoher oluton is 10110 o
44 Cucens paublem Qnel
pruvided ith 4 lueenshgne fo 3
toc is no pa
anel we
(hessbocoel
ens in (hess bonel
thos ?
Such Hhat and
" No To qutens u pl Ced On he Some o 2
afts berch Gackiny
we

" No Two on the Sne aifel


Solutions; - (12), (2, 4), (03)nel (4. 3)
het us Constden a 4X4 chesbomd b
Can Soy that silay.
Qnd
2 3
2 2
1 Q
placing Q in ll, ) Q3
2
3
position. + Yb, 3d, 29, Jc
4 Sini lankey this
1 2 3 probem
Canno t ploce Q
2
( 2,1), C2,2) Se, b, 3d, 29, Jc
3 Phcing it pn ( 2,3). , 3q d, 1h
(an be MDr Solutns other n
tuo mlkiened abne
Aosse 3C)
Gien pu22/t.
2

I3 14 12

hod pzzk
Lt take (olers ,(RG?
5
q 13
4:R
Sory 2
1b-6 b 3
b S

(3 12
claded
Crel
down t
leed h2
denl 2 h4
2 |3 41
3 2 3

cleed 6 8)
13 4 (2 13 |13y s 2) 13 4IS
dend,
olyad enel
h: 3
clown
J,h 3
ddeal Solton: 123 4
2|34

yltion (12 3 9 12
So, the solhensa down
4R, b-6, (- R, db, (-R, f-6 >1 2 3
9-6.b- R, C-6, c-k, e-o, 4-R 5
T2
he l5Is pNZZk probkn is o

Bound apyach. inin -4 2)-9 {2, 33


boun dl we seeK
bonh
soluhon Can sy tat
Optimal Sokhen, -
e fin d
The so kehon fea th Aiucn, Pite is
iitial zzle is
Dewn>Rigkt Don 123
enel

Ansoes 3cc)
So, the sol&tion o1 KopscK
Guven Probls tusing Branch & Bound
fProch
Chicct Value O11
obicct 1 : Exclasion- O
06jct 2 Cnclasion - 1
Size g frapsac
Kinapsot k,m7 Ojet 2 Doetasiem 1
As, w kaue to sove thi's 1O Rapsik
protln asig he boah &Boud Soletion O11 |
approach Lyue to take e
minim) Value Objtit
insteadl maxnum.
Chswer 3()
Te banch anel bound ppoch is
pponch Hat tenc to
minimizc the Soleton
that to find n
Cphnal 4oetiOn.
Bancb & Boene tetho d:
’ FIFO (Finst in
tn Fnst Dut)
LIFO ( is t in Fnst Ot)
FIFO is wilely sed
lop -doutn apprech it is
qeick y Compe to 2IFO.
Cbe an Solue, |55 PZzle ProblGin,
ol1 Knapsck pello, Travellivg slsran
Prollem, Leas t Cest Soncl the
help Branch e Bond dppsench .

You might also like