UNIT 2 (Backtracking) AND UNIT - 5 (Branch and Bound PART1)

You might also like

Download as pdf
Download as pdf
You are on page 1of 33
bua puncion usin Pr Minimiged bar a qien oe » |Deplcik constraints ; ‘Thue ow the wales which debemine » whch df Pre tuples on the setubiin space sababy the ikea] hounding purctin Explick consbrarita * The are the tiles hich resbich eneuy sods [bo take m valucs only prom a guen sek Pasblom stake 4 + Back node tis Ere bree dehirer the fucblem stab \ solution syace 7 RL baples tha socaihy the explicit cuba dekuies a posschle solution Space fpra fooducl pubance 4 a prcblem solution state Binasc aunts rose probiem, nee for which | from the sort bo Mie giueblon steele Bist Rs ret eee JEb Bo gnurated nodle thak w either wok to be expanded puller Gn one for while all of Us childien hare been generated iy kppbicatrons: Me W- Queens (4 Queens bs Queens) Wtonstder an n¥n Chessboard Leb there are NW Queens andl there Queens ore be be placed on nxw chetboarcd seo that no bwo Queens art on the Same celumn, Same Wow or Same diagonal 4 Ques Neos a 4x4 chushoord old lek thee ore 4 Queens; The chpectrie U be place thc. 4 Quem Om a AY chesshoord fuck a way Hat he boo quenns placed Un han ayue, 22 | Same, coum Cag on L postion 2 Beet > odes Solution veckor’ (Ws Ray 135 M4) (245153) t » 8 Queens, ; a + Conscdan #Ke Be seahas0h ii “Lek Ue on # Queens: The objec a be Fe pee ae 8 peace: om AP we hesbous N Queen Ngeith ‘ My a place(kyt) Dacbuns bed aia placedat khan and Uh column obhewde hin bale i WA1I- global amay fer J bo (k4) do q ) s)sebsliir4)) td ony, —— asblun | Jt @ be a graph consuterg ga sek dh Vertes, Jand sek do edges and tek m be a i? || posture inkager Graphs coteAsing [eblen Sa problem a | thowng Cach verter in Sproph ca such a way mon number d colors Ataurtred bo color TApW vw called rchromatrs number”, | a | PROMO 0: 4 Uetal Towreduiction +crl Adiccion _ = alty é Parl, ( Yaad Scanned woth CamScanner 2 3 i é a 2 tly = 53 as es PAL Ot °o 00 0 BIRD $8 4 2¢ “ye asta et | > 43] ! Krong alt (4) has ehortest peth So (ors trot makna as the orviqaral max C-e- Scletk (bu) as orginal makin’ econ oO ray 2 Oo 1 ~ 0 ig €3 6 OD RQ poo BF ita, 0d! 0 ’ 3x % eo | 0 4 Now qo fer He columns which are not | AM vow + : | Consider the path (42) Convert all uth row and ard col tr © and “% yeas tototia oo 1 ng ANS t ° +t re astiltoro 236 g al (4,2) has rhoukot pach so comiden | malic os origural makne ! (4a) a HM qnol mabit T2asylatot Ue 5an Consus the pally (55) Convert Mt pnd wow v sth col bo Eo) Sek (sja) 20 Hee [52) a al a. Pod — oo & | wm “sek (St) 200 0 0 © 0 |) 0 eS) Di lo 09 5 D000 | ww wm 0 6 Dla 070 Dw Ye aBtO+tO4F0 =2s (D5) has thoutst path ce 4 Conscdn Hae far (sy 3) E onset alt aa ano sek (45) 20 a sisi —_ canned With CamScanner 0 VEQIES=EFO Y=Q949-+4 234 Considey path {I)3) se 31) =0 OO 0 & 0 mo © OO olo © © «0 o 0 | ° CN Se lea ed Vy ES et GEOR Sisco (3 60 6 © A2lo . lo ¢ % 6 ‘| op 6 00 0 6 Peete | Peal ib a Msides path U4) set (yi) 20 O 0 0 oH DQ 2 DB 0 CO] o 7 30 J ne 0 ® 32 0 Oo 03 © © g | —> 10 3 6 wo 3/0 moa 3 0 2 0 Z/0 | lo 6 J) 0 0 9950 | ON 06 614 v2 Te AFElt +4 238 Path Los) sek SI) =0 g a Tp 3, oe = ee © ta ~~ ™ ¥ +o BE Be ae alae ce sd 2 8 agttzoto=ayq Consedler pat (5)4) Sek (45) ~ = 4 T]aset+ltoto some seleck a T= 24t6+llta= 48 Constdr path (34) sek (453) =0 6 oe H 0 Ol, = 8.0 Y= 244+ 0t0 +0 = aq Conscdew BOBOR © 0 2 oO, 0 ce} ~ 50 “oO 0 2] & ob od OD oO 0 0 0 | oO o 0 © 10 Poe, 1 |, 0 2 a o5|0 () 0 Orginal mabi canned woth CamScanner oP co, ON & a 21torote = 35 ta) set (oa) 2 od od od Ae wo 0d 0 we aqtotoro~*4 par: [1-5-3-4-9) Scanned woth CamScanner ei), a) He bound (eM) MY Pas Fa PY Glonyert rere i Mega Seite ci | kets) ™ = l~ ee =| M4 wy=6 Kart Mie 84>, pret = Pimitraxa TPRRSTPYRY -telt)—to(t) 12) —E (274) = 3 Upper bound (uri) fi Pa Pa Py 10 tO 42 Ls ie bsee Ww, sa Kz} Ree w,2y haz} MW > tea =o 326 R32) (oy usp bound dont | hata wy =F Ry2O bake frackrons » ES Stake Space bree io 8) M2 3 UAL) 2-34 Y3aed (SERS ka = 74 pach = rath ta thay ' S 20 (0 qora tt) 44 (Zr) ~ to-ta—to = -32 uppes bound ACP) Roe sr CY -10 -la -Ut soy) ta.) 4 (20) 2 to 1a = ae AU)=-3 8 vA) =-3% Objeck 2: (rnclude and obj) ia Bo Huw while inmedcting firsk que i by the and objeck Py Lower bound eA) 8 - | Kae} mea yd A Xtet A fh. Pe Ps woth CamScanner PUR iy Stor —la° 9 Wy =a wd Wa=6 X3=t wyaq Xy= Yq Prefck = ~ro i421) 274) cA(2) > to-1a-1y =~36 Wd) = -lo-12 --aa wy Oy} wa Ciro. V4 Bo gst ate ne mets wpe Xr meta wary ka | m=4 MHS Ay AM! profit = —lo-lo-ls = 38 Av) UALS) = -38 ate: inclrtn wy Wa Ws sf feta Pe 3* rH +o -to +2 ~ls i Mets Wy =4 ha a wy, =2 xi =) ™m <4 wa=Y pz) X3>0 mr0 Wa eb Loh) = —1p tole ~ -38 eisai? 1° ~ -¢. mas (ime Pa

-32 [rst we did t Oh eres 105 Bal seh ppaie chile Pete latin (or 3 (AS we ate He Mager “G4 urs 0-12 2-22 For node 6 » exclude st obj 5 qe for 25354 He poche ; 3 hy Pas crs oe (74) = 32 ” an yrs toqa=-ag 4 For nods 7: Exclude (Stand obj only role 354 4 \"4\ ~ts aa is[e Jig, cl\= 12-8 = -30 UAs 12-18 = -30 Now the Queue becomes - fatstets] so ge for TH nede qurersten or node 8: Tablade 1) apg Crebudesutreode Ye ts) 0) order’ 356 at puri che late 10 F(39) = 38 } Ae -\aAoA0= -32 cAz -lo-lo 18 = -38 vAz to -10-te =-3 8 Az -to-to da =-32 , VAS 4o40-12=-32 cA= 1040 = -do isTah to A= 0-10 =-a0 Frasdble solution ph M=A Wasi W320 XY 2 free catned = te) +10) AS) +t =1o+ loter = 35 Scanned woth CamScanner Foc nod \6; order 2A-344 Awaya . ch e324 2 Pal visas ¢ Ho as

You might also like