0% found this document useful (0 votes)
16 views

Algorithms Lab

Uploaded by

revicse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views

Algorithms Lab

Uploaded by

revicse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
[ME/UTech DEGREE EXAMINATIONS, APRIVMAY 803 Compute Sine a Engng Resmi nce wa pete 2 Tnpat Amo iia onl alts ‘mgen Orgone hm) > insetzonh ‘an ghee ch ded per curnecuve 4 ini Sai Te ‘hsping Te ve me om gph Cig hep at ce 8h "phn Spin ping wi atu gh ae ot 5 sence srt dite, hie gph it ph hm el sere talpn ontop sey eee eee yao neti fd ‘srt i yyy oe me ng "ce pt le epana pn ace ey eins a new opt, ewe ee ‘mente nt sta pti eee et Teese ys opt yi wih owe tn (manne pote por op ont ep Tete pin iv gig re tt pnd caunyces beet ar a ose hyo ne at ‘That ceg oon ay SES nn ma ah at ae on ALCORTIO Spor Ax Ib) ‘agar Anant en endear supa Tense cat comenn tat ahs K re ire mmc de Mies nama tg etn Caney 2 ea ing sce oh ound inthe it etn, 1 intr be march ou hangar opr. 1 Tm nannccne ona hr arch aot peters) peat ‘ante Comisty 1" Renney tla in ace amy tat 1th he wen mar nar argc pres) pence Pounce po the array, te of the Ute sar sta Om) ‘oyna Sanne os) ‘Gen tig chr ced he fn sng of arcs) ‘ae pate nd satin othe tuts he Pern crates quce Ine ont os nem ove te bead ut fan gue a ent ngou aati Send GuphTvena loti ‘nce hl pti ond oti seh enka he ph ‘lp van st pin eens gape per een es arse pete nen weet ecw de 8 rsa) reatve GAS vind fe ISG) Ln Dec 1 na as) ‘Dstt ins the short pute pap wr in oe au ye rn Fe at fh on 1 oyaeaeson ce Mapes bdo vie and congue ear a gv amy AD] soos ‘Divide ayn aes Aon and A ‘Sete tem carrey cling mero at erg i red ary ino go ne ma rg vr teh So at eee tt wl ich bt con gle ‘Senet and eying one san mane tli ed ALGORTIDM Megs {ons ay Any ees merge sort {Mapu Aasray 0 ef one eeants (Postpu Aray lta] nom dering oder Copy Aor}. ‘Copy Ay «alt loo Merge sor (0a Merges (1-102) aLAltps4q~10 ‘Merges sored ays intone sted aay ‘Mop Avays Op I} and C= both sorted {POxtpae Sod ary Alp +4 Ifthe cements of Band C pera) while pant at a= 960 ‘pemea acne singe way tocompte the uperboen iso adore aa ot th te aed sh, rat othe remain ep othe napa IW andthe espera aya onthe remain et wich whe Wish) item mi one po} wm ‘etm =P at nites pa manip ae ‘Tir ea eh he dn prin “whe lca be veel a pipet ER an Nec hye Metal ns yoni pion y ing 0 ioe pan ea ‘rates 8 ftw eas" poms) ae ‘Ape Nanda po ee ine dh Be Hannan Ce rey pot nh oda Cin polyoma ie Neopets “Ape ope pt tied ant Compete Tek ppm ne ecto we ect MoS {beaut ct N nd NPC ua potians EXP apron eo hen Qs “Westy Qu NPCompla FQuUNP Had ana ENP Tike QundRunrind Qt aN ad 1 Randombet Ou om aes ‘Quon is poplar sing sgt at hoe pits and sos th iapt et ‘Stunt pt emet anda quick rs eed dee he acs fhe algritn big ate in {he omc te compat oi) Te wot ese ie compen fuck se aie wen ing gen an aay sei ot ai Sw 7 pe terpaiwt ah th pt on Shap arh enn eae) te n= 1) compan, Thee a 60 dogo nyt nt a eee =memn SEE eciem: Se hese ey ‘Pro senyeI-1 [ex oF BeERLOOF eps: SETAKKY +3] +TaM [BNDOFLOOF! sep BT 7, ee eas) hein ma or espe such hath tl number amet malpeston nin -Marnix-CHAIN-ORDER(P) 1 n= tenghip)~ 1 2 frie lion 3 domi] <0 4 forle-2ton—>isthechsin length. 5 doferi ~tton—/41 ‘ oj mist-t 7 mii. j= 20 8 fork i t0j-1 9 dog = ill k} + mlb + 1, f1+ Pai) 0 tg emit.) 0 then ml jl —@ 2 alee 13 return mand

You might also like