You are on page 1of 25
ga ahh agta ger INDSRA GANDEE NATIONAL OPH URUIVERSETY | © whet /Assignment fyomen Bas [or os ; -MCA-Sth SEMESTER Scanned with CamScanner Course Code | MCSE-011 Course Title : Parallel Computing Assignment Number : MCA (V)EOL1/Assignment/2019-20 Maximum Marks : 100 Weightage : 28% Last Dates for Submission : 15" October, 2019 (For July, 2019 session) 15" April, 2020 (For January, 2020 session) Note: 20 marks are for viva voce. All questions given carry equal marks. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. QU. Develop a Parallel Algorithm for Matrix multipl tion. Make necessary assumptions. (40 Marks) Q2. The traveling salesman problem is to find the shortest route connecting a set of cities, visiting each city only once. This problem is known to be NP-complete and the simulating annealing method has been used to solve it heuristically. Write a Message Passing Interface parallel Algorithm / Program to solve the problem for a fixed number of citics. (40 Marks) 16 Scanned with CamScanner CORSE CODES HCSE-ol| COURSE TITLES PARALISL COMPUTING frst Develop a Paraltel Maosithmn fot. Hodsix ~yrwlti piftadtion - Hoke necessoruy axsurnptions. ; fulaicationd concountig paroftell fmblomontalion of, 2 maby - machi TALK Sicadfonn continue 0d appear voth .remnc whesdiy . Th dom Odd an algovittrn dhak con doe eprewed ak On dlokemant” ama Bree ested’ Loofs desowes thy pect parciig TRE -pober provtcles dome Tr a BW parlor $6 comblex ? Poricticag seins Arak we amahx omubtiplicaden tend go ue aloo Shaped mmabices, amd othe ef dhe mabices com santtfearntly Tmback ate pertrmance of onahix anubtiptication. we provid theese analysts and expercivramtag sasukts do expat Hho aiforores fn perf ymamee achieved whom dhue algorithms ot. applied do itl ekontty shaped abies Thds amabyts 2c Shs Stage pt buenid olgerthmns vWidn hoot tekooen dh alyorihens based on dha shobes of Ma nahi ces Inwobled WSL a smolves ag nuumbs, of fgsuds, Ut endrcduds Jafth afceusdfon of a murmbe dtreckfona - get do be bwuud . Scanned with CamScanner Atebs in Alger thm e Stags ch, soo walrices . © Gleubste all frodudd, a bg . © Colewlote zuma woken lay 9 Th comet. Adgosttion Ba Procedure May Hus? Beal 40 k=l do n=] Hy how Tad) uty a ut 5 greta Shon kK dhon Fotdke a ty dt dived on ond Of WS NvY greater, thom k dhen, shitty {ny Aha dtpwreded dhredion and Sf fot ol PR» uohere ond} dfs bahoeen | \ and combi ait Haaladt a Jona pra astia kk fn dnl Ate 4 Jot Kl RE Oe Meat hoods Meal Scanned with CamScanner sult? a fy Sabb dredi oy orotate b ih dhe ubwoord airedton c= cx axB Ewd Hypercube eloak. A Jpper clot Ta an 1 -dimenstenal eonthud whore edges ars Haar ee ameng thon— Abus and we. of oun stength. fm M-dime- niora aude’ SA also kiteudy ak on: n-cuke a an - dimongionad cubs . Reade ob WU pborauke colt OS node, © Dlamale. =k © Btseodon’ width = S41 - amber of RAgea= IK ; Hodd Wuubliptfeotion sing yp edeadbe, NekoAR Crono Apeci}feation | Hupberoub a. Murch — © fakN=I™ Jno tho chted ywmbuL, oL pro ersels. lok dhe. proeerschs bao, Py 7 Fo 2 LF Tand tt da duro Petorgers, ot, AU dhe proenten, 9 1 doustion 4) §9 es he produce ety ky= ACS )K) xB io) . “ghehs = Ww. 409 6(0,3 KETC) yk) foe OTR NA, whBA OXF, Kx. k I Block Moly y — Block Baba ot porkittonad | mahi x woe anaty wh each element Ste Seafored ont on {ndividurod mah, These frdfvidual sections Lo QHL, Knevs oS a bhedk OL gubb -mahix. Examales — phar h 4 Men a a Cpe (ay gue ey Scanned with CamScanner Mar 8: ft ott Mobi co) | Vf 64 8A lyre Cc) aruba ots x Dz |: oO | © 5 oO Yio fh Hare () Mabox Xa \ 2 \ \ \ SP NP 45 8S go ® Gl, Ou Ow SA ES lO BY tye Gh) To ffywre (a), 1 dad & cahock mati shure, HB, C.D ane anol dharadues. Fyne CH) Sheuss dhe dotad mohix, A Bork Mab Multiplication 5— Whon uso bhods, mabsces Ow AY one web (a, A Scanned with CamScanner EEO Thon ahoy cae. marcttipotecl Gust dha way We, Pesdoviey Aimable amohix, meotti plication. for example, Ay Bt XY Ao a2) _ Sl Ch pa {7 | atic A\G248) D2 CAA2+OCD ~—-CIB2AO} D2 we have systomati'cablty presented “yet curallyats cund Jp SeogutLts a ord of forte mnatth ayes lok’ of Ths allows boi Nigh pedbetmamee cto bo attainad Across o Sromge of Ahaes “of wot — vices. As mmontronsd the Susults prerented th he poenfous redPen ane €x poel?minssy « asa 3 dhe fist Seasults Computed oa rte apo Sa fnfest ~AXKey amol i “et peal algest Hrs « Py j (A) god manos Ly dha cerketity qualitedy ahs model Jepled dhe recited performance, exon puomtikalvely the Initfal Susutins oes 97950 rots | thaw WOE ng Surprise" ie byth ABA mods con dhe Grn pPrfead oye Scanned with CamScanner =e be — Avs 2 —a sofledest whol we expecteol from exper once . Abstract § The stroueting ~ sollemoun problem can be Ja oe On NP hodd rrbOem. TE dette solve dslution l chowtfstic thnk Sud ad Armalatel eget, ofa thie mmigahon jbvsa deah , amd qonet. ith WAL wed . However, Shere algorithms She. ' one easy, 40 fast Flo Goad obttrnfgation ol hone Jew et Comnedgence, paboimomnce, AG babar pba A nao algertthm based en Avnuboted aynsniting and yore —eebyaxal en pry - cramming do fatter solve dhe pevblom. Tn Hue AY , Ue Lire sivmmated annesding to {necreare “dhe Alvord of dhs Gone Tmkn do : BDL (Lua IO (best) . 4. ay OL <0 Hom B Lheat Ansan, 4. 0d &. Sb D4 — 0 then P eDt : ‘ah c Kardon b Avo Scanned with CamScanner ‘. Xbest Xnewd 4 We ekge \S > Xbas- Xba\y IG. end Sf G- end YY is. f Pav, 1. Th KW, QS and wskide TRS Rakuson X bests Wee, SiLE erot weftfey fn aho, Arovetor “Sales porter PrckBem com dae encoded Py om woke Goan i, Fewer Coda Sabrent Q (parc cnad oh Visite ol bay Sho goleamom, Consider dhe dtmble dhsomeyere © Sasleno, competed of oy Harp with wine cBitese Ro apatfol amc of dhe chromosome, Wwhidh fs aroron fs hurar th shoven fr Awe 3. Ta Ww dha drovdling Soule af dha drowedd ~saderman , voor BLA bath yt darting ed inti Shy amd shou fn pray : Oo 1 2° 38 YF 618 gc T A FD HE dreemeaeri cl a Mwhttgont family Scanned with CamScanner BN 9 ane ON : d expoexsion -of dhe absve, éhaomosome . (Rhnevs Fanchitom of the “Tet -SA GrePy TRe -fthness anaion Js Oy Smpottont Jor we? do gabe dha drovediifng - salermen .preblum. we Knero nok kha obfedtve of dhe Shronsetiing soll mom muda do ful dhe Andbuat Suouke gn dhe Lorton dha woe dade anal Soahg sprit dia Sky Tha fihnews fundion dhs algorithm move By Sra convede aPradion Tt & Abvieus thot WS Comat Afrecteoy wade Fev SSenath so ath a of yikes; as due SAKA whe corr 1, : sha Indivtdsral. So, fat Zach generator, ; itnes Ai df dhe 1th Enbiyidvual Jia dhe gth gemetafien fy avalusted the de pratfons - At ay tN seh Tt ais ERE eL ane dour fe enaded ts, oho. Seat of te Ubud popustton, Scanned with CamScanner —_ "We = BFR ee and AT va dhe dength of ghe swe -encodert iy She Th Gnaividwad ~ Prom equotfon, we knéco + dhe Hhnoa of che Wsrak KdiyPduat of she pole Rom Sa ahuseois equal, de on. Nyorttirn Deseriptton®, — ae Ty older do bette weve graph verter drawesed Opi ntyatiion paolo , dhe pober 4orpedce ata . Vidlng —Sadewrnon . daored en TSP—SAGEP. ra deacaabrion of PoP SA OEP fa slnilos, dro Alyo- Sten 4) desde otha Biyoronces behoeen Tsf- SAGER ound Agodithrn 4 ase. as fathered i WW Tn ToP- SNere? dha pabuiotfon fs Witioblzed accrding do Aye | (D Fo Tsk singh She fErrars valu of Ae Tat Vena Tn dhe [polation 1A enaluakid aceerdtngy (3) TRR- SHOE? tebe She ask graph veakerto— Nerdal QW, : exparkmental eunreranrunt ey —— To Joatten, axblotn dh ehectivenci, aund speasilily of, Rw ~prrbot Trastance, Bites optimal solution Warag 26 43] Sto T° 615 yr ba ho 6A Feb Uy ud. 501% a 66 666 244,358 JL |304 \3o4 452, 148 Scanned with CamScanner Ag a RBad a heuristic algorithm, dhe poder: vmamer, a TSP- SAEP As affeded day the day - sor Volurs of dhe powmaters, ‘Tabl2 provider GRE posamses dhat the propesed algorithrn Oke. TW stongth a otha Omometome in Tse - saree TA erpeclalty se ociehding do she afmunaionns in Talal. Tabled. Podcamaler, of ctrowebing - salesman i bared on dlinudatil annealing and genereiprursion Poepramming: (rst saoer )- Fosameker Ten Voll Fritfal emperor. \oo _ MEntnuwm dembsature, (or The -probobiilte of domprrodwadnp 0-8 Poburation Ate 500 Tra Mumbo of, Susy \o The nubs dL qnunotions (060 ts “Promapeltion sol 0-3 RIS Tromsbosition Gol 0-3 Gene. Tanipetitton ait Oe} er ond-peink vacombination jc 0-4 “Tos0- point otecombtradt on doth O3 (tere xecembinsdt on jae, Oe| Scanned with CamScanner expurtment 12— Te verdfy athe ebedtvenams oh Tare?-s , we conmbaxe At gp gamep usith chrode— Monod GieP Hor a8 dota sa fn Tabbe 1, Power means dhet indude dhe bot selullon she worst Aatudfon, number af ginexatiens, ame dhe ow Sage Susy atime el doo algosithma were, Wed do evalucke duro Sthyu. Table. Shewr thot TSP ga ue? sth. €& botox. “thom the AraaiMenad ee algerttim ty the abwe YOR MendUKLs, Hoamushfle ,we Bi ied” AG! Sulliotih daetuoew dhe Number of, Suind and, Shs crower Sength Joh ait dalebare Sn Tobee, [. Rorsust ero {y oye « The vol of diborane B deeved ‘in Equostionty, e = That = Copit at Prac wha x Subracnt the Jolt of diforomne, Phot Suprarertty tha best Adtutfon bared on TSP SAGER, cond Pobiimal ubracns The knew Brod Achutten. Ral ef Aiperwnce J based en TSP— GAGEP ond droditfenand Oe? fy ©; 0) 0, 000 636, 01033, amd OOIGT Ol AAf2E ;st Tt and aio Snstancea, Se peb Yur, Ge G66. amd Scanned with CamScanner SA Boy Trapouncea, saapectivey , ound, cha sate of, Looe baresl en TEP-sAcier and dvaditenat CEP Ls 0 00065 , 0+ 000207 , 01000 6(6 , 1006S 00535 ; AMA GH Lo0g, Suapedtvely TALS Fas “\Wuudrcke hod dhe door Aobakien bowed 61) Tse —cncrer La deat than uvaditienad Ge? Tria ins moaindy checawue m0 -bobulatien qorwration : pokey oma mutation eboralcr. bored on —? Pritily Queue do get tous, 4) Fo (k= 0 ton /7 Hist permutation vedo, Scanned with CamScanner SYR < Ky 6) tends page Lrg cota Ce city nam’); /] StodA cbvem aweded i. Vy Pa otthy Queue<-Warki add (tow) // gtk the M0 Gurcated gow. and add into Queue : @) Laie Ch wood .f4 Emnply O))// brranch onl berona| Qoob » do VA) Tour exaent <5 get vthe dew, \e) Index <—qeb dhe coro trae, \W) NiK- qt the wvoont Galulton; 18) Ty (index =n) // cpu permitatfen Ved. 8) FUE Cowl [Mi [may ICV! Co] 70) 22 curcant dist < best Tow) ) || Jp Sb getwun edge amd kato dham .aasSher WU) beat TO <- ger the asoant di'stance’, dhe List ~yy $onx she slate Pn 15) Ty (debde) Hom acetptel bevund te. f we Scanned with CamScanner V1) Path too Long ond Sajecked| ound » obae. \8) Thread thread | <- nwo Treat URummabl tay Fun () 40) TH C TstPnafces worked, contostrs (fndedd) Sedwoy Ay Jor Ck: Inder, Kn, ka ‘) as) {Swab (0 index, k)y aa) TECE Ls Cinder] Lilie Ko) Comtivons BX wR vada Crowe LVL, Prdex ty vot}; // TOPE Spinal portation &5) hata< Vi Tindex}: ab) for Cx= frdex | dom) any WKY WOK a8) N\ Torr }xr hab 53) ag) Hrread |) Sun ly 4 ®) 4 Scanned with CamScanner

You might also like