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

DS Assignment

first assignment

Uploaded by

kewap77250
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)
8 views

DS Assignment

first assignment

Uploaded by

kewap77250
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/ 13
Usstgnment- ot Quet- 44 4 A be two - dimemio ral Foldn wh: ovnseuy (4 -. 9010 4-= By Signs oh Loud 99 ub tia “atosucl ak Lovation 49°, what fo tu addins 4 whine ALI E{1 7 Sek: Gare atdunye + Cid) A + Cid? > \oo py [a-synas+ (4-4) => loo + 254-25 44-4 = 45 4084 ae AM + 25445 by ‘i J 24) what do you muon by asym ptoe MotakCon 7 Wile OV Am on Kigoh Gla Tha ond Big Omar: ant Anympbotic Notation in Dube Shuckuu tb a way 4° wuawibe wow He ms at spare nepid dy On allgprithen grows os tne si tue input grows Te bulps us uundwisterd how ident von volgouitlme th wun ust aud vatuy Lange inputs. 4) Gig O metabion Lo): Te th wdiyinud vos upp bound mol Appi bound On on valgoritin ia Ae most ompumk % Het xeqytutd . Big 0 mrotatdn Uy wel do dubs tL asymptotic uppin Dowrd. Big 0 LAD :- TE dijtny as Lovo onurd Ore os iis te on. Or iY ty tee taut a oF Em Magid Che most nypilen: wo, OT In often world bse tom? Just Ark Onotakon Proud, om symp c ppt bowel - Reyna % the WoOX AR rroe+ AL Ln eee enter ge a Siq Tita. Te t diyint ao Bobtist bound onol tights & ae bound fb Hu pot o all He wourt wt ae a valylthrn tom delle a ae br Whot id Hae Lim ormplatty 9 te Follourivg puotyiom “ votd fum Unt n) Sine ay {oky Count 205 Pat Cte mia 4 teams deny fou Cie by feria gr td fou UR=L', beens k= KHL) loumk +47, 4 { fon MASI 03-9) Pra ne Of the Vela, Cdldsurs tn both ROW - Mode onal i 68678 5 {ven arue ee Cag J 62:4] 194 wien ii dae ee " Nee ao yb. © F000 orl is oy as pata) (to 1069 Letia3 Bart dott = 400 © Sto gy tae dimint = R byt Cetok Ayre) Row — mayo. ouolor > olds CAA LIL Lig luis 1) 3 Bat adds + CLI -10 & Stu 0 ode. Aimmnalons) + Cly~ri) 4sire Op, serene ngy monaion +. + Lis—ts) % wlbmunb slr. Mu U2 l, ibe2, tg 3, Lady lear, Colum, Maj OX onde, Bolo CBG LAI Ci IL) Lhd Lg) = Bane doles & [Ci - 15] 4 (sire 0 ota atmmemalon * Cun La) & Coen 4 surmatnsng dim endons) & — Liy= La) § dla a Total slommty = FL IOXL KEK = 29140- 4 b) Comiols 20 45 bur -dimunsioral nauk’, Bouse, adobuy = 1000 orl SY themimt =2, talleloke. odd Memintk Mouks LiBIL4I, In Karo major rely, ooh Coburn mojo Onder. Sh Aoy, duinwmi'on = 10S Bor. aobluy = 100 O Sit % tah. alumunk = 2 bys. amink 40 Pirol= vans Lig) ld Raw Majo aHollH ! bee polis = Bone flu t+ Cin Nov geo Ff EEL oy tlemunt- aclu = 1900 + UBS) L2 ag (ooo +186 Adena = USS A column Moye anol 1 Adolbum = Bore aod + Lat Mumbie q hows ety rsiue RollUY = tooo LULTO + WILD y em Robbing = 19 6 Quad Olsturs Hu sprue motrin 2 Sugqise a apace opident: Pup turtrtati'on. 61 spore Matr'r. BSA matte iy 2 tuo -aiimumsioral dake objeck craole Ge Mm vous nol wm Columns, thuyou hang Adtak myn Vous - T mose oF tne Ubrnints oY the wolrin pot 0 valur, tun it a allot o Apuut mawir- Arup Repaninintion'- 20 cua (A uacol Jp mapunink & Spume main tn which Hu au teal Hole Momiol as . Row > Inds qy Hou, Wau non — WHO uienrnie ib > Lowteol- if e column » Tila oj wolivran , whi wor wo imc tr Lo tokeol- Seemimmmeralubso te ot aun drink Loakol ve tyros - 6 x0W, Column) 00 304 005tO] _, 90080 i B56 Ome f iam ‘) b) How do you Prnol Hu wo bt ecu \ wulaion bum : Coimp ico on nm L Dusty, qours onawy al Ha om vou - ; stussiipolipcn cell AEM a Ours. waite on abgoui-thm 49 adcl “a Fe piakeal AVE + dams. ds Dye tu node struct 2+ buat a Rumekton so ddl two polmomialss’ © Tribiatie a new Linkiol Ut to bhore Hu mmulb . ° Use polnbur fo tromvium both Unkwol Wt, © Compa. dy exporntss Cg A Ae tay ce equal, adlol Hr MOyYdemb ord vale a aw nol, un th tL Sum. © tp one 4poninte to gruatin, ual a nic ode FS cut that tm © Move ME woos accordingly . Be Redwim the wale Minko ve - Qurt- Explain cirudar inkl Wye 2 wade tre fumetlong tO Pugorm tu Plloun'ng epuations {a a houbby Linisecl Abe. Vv dv. A Riteulax Unuct List t a Unked Hist whun ty dart woo. poinks back 4o He Aut noolt, Porming w Q- Buotton oy ist a00ls « b. Triton opti a sbeiplect woelt- c- delet He uct at agiven positon A- Sout Ht USE attorolg 4° oly wendideg e0UK. c. Display fom Wr buydnning to enol. Slr +E induct te Induadt < stollibsh> Struct Noolt £ ing date’; , ghru ue Noo * were’, | gg Shree, Neste ®, Pew Steet Nool # Guoke Use Cink ove LA, ahb sere) Ste net Noole © henol = NULL ', Struct Noclt # mp = NULL, Fou Cint t201, de sins, drt) ring Struet Nock nw Mold = Cstuek Nout } maploe Cau ‘ % Coteuct Node)» rap wool “3 data = 0001 LID sno red 2 nage = NULL “mp ed qu woolt a PLU = Wein", nail wg Clmp | = NYE pe dmp 3 nent = nw Moolt +, k wut & srenol. = new NoolL!, a Lump = New Noolt |, a putin hol} : int-data) votoh twink C Struet Nools* pew Noll: t dy Cpe volt == nowt) [ pany C8 Puuuiow noo Onnok oe MULL Ants, Jud steel Wools * nw NoolL = Cstruck Nous * ) mralloe (gu , C struct Nock), Nook -2 data= dokt", ae Nooll A wire = poy Weclt We » mw Noolt —> peur 2 pub Mock, a4 Low woot 3 nepe 1= NULL){L uw Moclt > Wet = tlle = nwo Woole Bis Moolb A nen & = now Vole), a vot ek MoolL & Wool - 24 dub post H'on) { da ole At fesiten Us Ay Ot hemol — pup = 2 VOLE) Mebuuns, shut Moot + Mumba © Kool — Hap *, fem Cint £20 4 dompl= Mv 2d Deposition das | timp = demp —> net 5 24 Utnp = 2 WeLL ) Aulus, we L& neool — suf Aermp) ool — Hap = temp aniits, ee Ldemp > net 1S VULL) tHmba nt pas Web-abuy Aq Wompr pay LE NULL) Lump pil 4 Mes tombe re Volo sort Dts uroling. CStruee Molt broil) £ Shut Neolt + d= bool, Struck Moot tq’= Nuvu y oly Crook = = NULL) serbutin ty Wile Cul snuee) f Panty WH ( gia LL) 5 Ah Uta data cg data) } dak tmp = 1 cata, 4 dota > § 2date', Ya dota = emp, fe domes d= fo ree y t= go nts juispleuy. ye Cstuee Noor rod) 4 Wade tnodl (= NULL E Pebntp CIAL woolk —2 dae) 5 woolk ~ nod —> nL y vatol 5 pringg CN "DS Tt es By WRC Prop ao NBER ee marine cn ings tine ied rae oil a eae RG mck lb ere dnt many Ine cu £2 £10)20,391 104 Dict woot weoel= uate Ue Com’ > Print CM onugnal uit D1, | Usp by Wst Cheaol) 5 : Sauk aytut C neal 2 nut t)25) 3 baring, L" Apter tudion | 4 Alsploy ust Chol) % Arte. at positon C shaaol 12d), ay Printe C" aytun olentbn at post ton 2? “Ds Asplay. Use Chaasl) y | Sout ois wroling Chanel) } Criwy C' Aptue amet ng In dus rolling. crcl. '')s, fay oliyplouy. ut Cheoel) » !A ai Cy Outpub : Ouginal dit: 10 20 30 YO Uytur imulon! 10 10 28 30 4° Uytn cleteHon. at positon 22 lo 1° 3°40 BALE souting In duunding oul 1 “oO Be 20 lo — Q+> a) Rank te Follouring. typtial bounolt on i é Oud 04 growth Halt: ology nd, Otne)d, © 4), OCmio¥r), Ay 001%), Otntoq nd, 0 tn?). - Ane & e . _ 3 aie, Creates oko tra on Altmink bn Alngle Bintudl 82 deqyinning Vy Erol Ga9 cyte gluta Chole, Golr- te incluolt 4 gtelto nh’? te incluolt C stdlibsny stuck Moot 1 wt dole, Str wok lode * nat > wo Strwet Noole* vuatt Nor steuet Noo * veonoolt = L Struct No vew Noolt —> dake = dake, New vod nets NULL sukuin. now) Noolt?, Veta ab Grol C owuck Nols * took — Hay , tk dal Steusk Nock + New Moolt= GUL Moot Cadet) 1, 4 LF aotol — Hay = NULL W Wool - Hep = nb Noolt 1, % tutu * Brunke Noo * lemp= * Weel - 4h > Wh, Clump 2 wr b= NULLIE , dnp = Hep nb & 5 Hamp 2 welt = nw Nocles, da. Cina adea) 1 clu Smabbo c. (sie o (Sued vote 4 4 Votel tne abit crolexr Live Nooli w+ Mod 4 Be bolt, tt ase) { Shuse NoclL * Lemp = * hoanl ~ uf fou ttnt 120} de lwalrt 45 Wmp l= Nu ely ee) Abn = Amp wie 7 $ But dmp = = MULL) f er be ue tae Ayumet belweon, ETT eg Panty " trolex ts awk op Honge .\n") 4 5 ut 5 Stuck Neole & Miw voole = burke Mocks ay mew Noolta nine = mb? ney eet imp A nen te = mow Moole 1, 4 Voto cuisplay Ust Lsturt Noclt * mocls) § wurle Cwoolt = NULL) L Prindt CYYsol—9 "woot > dasa’) », yee Modi nit } Printy C“ MULLIN") y awk moin 07, SWULE Wook & bio = NULLS, muck AL Evol Conenol ; (0) y Ynuik pt Evol C 4 ne01ol 22) 5 \OAIA <¢ 122) ie; eed, tt bol Ca hinol3® J, tude CO! u'yt : ET gor 1, alps Cees 4 bodadag, alening 0, dk Ayte Trolts (4 haaal , 2,25); Privcbp 0 Ut ogee teamoting p YE Molin 2s 7, sollsplay. ist Cherol, 5 Mrkun 01, ; O80) Ust Huw aswontage . . Angte wtual ee 4p Hebiol Lit ovum ay) » Blolimobtoral Cuomuoel ty pow'bl, bartwn olebst'on * Fyiuene Tatton rot. alton ab both only. ¢ Mou Pou plu, In Mandeuluny vel: © Subport fox drewlan Manaeen LL Shot on OnePlus wy aut tae ALypumet pubween artay orol Lhe Unt, bn “tompanison Map Undsal Uy de Baste 5 TE bq wmaibtint sob gee Te tA on onduuel set Ficeol nurmoue of data {er Cornpicising a. vertabse Meats, o4 dada (Lens, Q- Size > Spmtgiecl aware dudaration ——> (Mo odiol ko spuei4iy. 3-stoungt BUpation 3 LUmmt Wwation id -> bLument poritton io ello tattol. bud aonignsel. aumuing Me compile tmnt Aim em Ord @ He 5 Storuol onateubveby S- Steiuing ~ Binoy ranch ond er Unto Seou.eh O95 wrat io Linkroll Lit 9 what an its pplication: Explain how on ubment wn be wltlittel fom a \qOAl/ Einksicl List using C pr0 4am, o> Doubly Linkiol Ut Ir a type q Hnduol Link tn welch Wold omtuns Injormation ond tuo polntunr te Af Poimtut ova wight polmtit, The Lyt odsighe ae duap poluten. Upplicattons 1. ©) Doubly Lnkuol List tom be ust In nauigatton eystims wat pele ATWO orol batk waKel teaumuacl WO Maquisol drnplomink ollypoume Aree date A trucks, ©) TE ton bL utol 40 implement urd! xtdo oporakens, 4) Debt horn Ht font evol dal — noclt) ay Colo. wool ~y pau | = WOLLI deb wool 7 Pru prove = lel- nade yk Pune Cdl - wool y | Wa Balle lanelt ats D dakeke From innit noolt, > 44 Cdel— noolt> nee (= NULL) OL Wolk print pur = AA—Woolk - 7 PUY Ee Coll no ult paw | = ULL? oll. moult > PHY > NeKE Faue L otet - noolt)’, 4) DULL from. age end 3 > Ay C dut_ nook 7 paw | = NULL LU nw ot 7 pew rate = ah woole-2 nL EY, lel moot 7 EE Y Biv) Uek wart tae given btuel Hot ty of Hu WLL= Abumivaltgl a4 vob. Ty teu Ws © AuyelL y Pivol Hae Hrauk voce of Ht 100P- bra yoor u! Shot on OnePlus

You might also like