Analysis and Evaluation of Address Arithmetic Capabilities in Custom DSP Architectures

Size: px
Start display at page:

Download "Analysis and Evaluation of Address Arithmetic Capabilities in Custom DSP Architectures"

Transcription

1 Anlysis n Evlution o Arss Aritmti Cpilitis in Custom DSP Aritturs Aso Sursnm Stn Lio Srinivs Dvs Dprtmnt o Eltril Enginring Avn Tnology Group Dprtmnt o EECS Printon Univrsity Synopsys, In. MIT Astrt Mny pplition-spii ritturs provi inirt rssing mos wit uto-inrmnt/rmnt ritmti. Sin ts ritturs gnrlly o not tur n inx rssing mo, st-llot vrils must ss y lloting rss rgistrs n prorming rss ritmti. Susuming rss ritmti into uto-inrmnt/rmnt ritmti improvs ot t prormn n siz o t gnrt o. Our ojtiv in tis ppr is to provi mto or omprnsivly nlyzing t prormn nits n rwr ost u to n uto-inrmnt/rmnt tur tt vris rom,l to +l, n llowing ss to rss rgistrs in n rss gnrtor. W provi tis mto vi prmtrizl optimiztion lgoritm tt oprts on prour-wis sis. Hn, t optimiztion tniqus in ompilr n us not only to gnrt iint or ompt o, ut lso to lp t signr o ustom DSP rittur m isions on rss ritmti turs. W prsnt two sts o xprimntl rsults s on slt nmr progrms: () t vlus o l n yon wi tr is littl or no improvmnt in prormn, n () t vlus o l n wi rsult in minimum o r. I. INTRODUCTION Miroprossors su s miroontrollrs n ix-point igitl signl prossors (DSPs) r inrsingly ing m into mny ltroni prouts. Two min trns in t sign o m systms r oming lr: () t mount o m sotwr is growing inrsingly lrgr n mor omplx, n () ll t ltronis miroprossor, RAM, ROM, n ASICs r ing inorport into singl intgrt iruit. Sin progrm o rsis in on-ip ROM, t siz o tis o trnslts irtly into silion r n ost. It is tror n importnt prolm to minimiz t siz o t progrm o, wil simultnously optimizing prormn. Howvr, urrnt ompilrs or miroontrollrs n ix-point DSPs gnrt o tt is xtrmly unstistory wit rspt to o siz n prormn [8] tus, progrmming in ig-lvl lngug n inur pnltis on o siz n prormn. W liv tt gnrting t st o or m prossors will rquir not only tritionl optimiztion tniqus (.g., []), ut lso nw tniqus tt t vntg o spil ritturl turs tt rs o siz. Our rnt orts Prmission to m igitl/r opy o ll or prt o tis wor or prsonl or lssroom us is grnt witout provi tt opis r not m or istriut or proit or ommril vntg, t opyrigt noti, t titl o t pulition n its t ppr, n noti is givn tt opying is y prmission o ACM, In. To opy otrwis, to rpulis, to post on srvrs or to ristriut to lists, rquirs prior spii prmission n/or. DAC 97, Anim, Cliorni 997 ACM /97/06..$.50 in tis irtion r summriz in [7]. Mny ritturs, su s t VAX, Txs Instrumnts TMS0C5, n most m ontrollrs, provi inirt rssing mos wit uto-inrmnt/rmnt ritmti. Ts turs llow or iint squntil ss o mmory n inrs o nsity, sin ty susum rss ritmti instrutions n rsult in sortr instrutions in vril-lngt instrution ritturs. In prtiulr, DSPs n m ontrollrs r sign ssuming tt sotwr tt runs on tm woul m vy us o uto-inrmnt rssing. In mny ss, DSPs n ontrollrs o not provi n rssing mo or inxing wit onstnt ost. Tus, utomti vrils (tos vrils tt r ynmilly llot on t st rm) must ss y lloting rss rgistrs n prorming rss ritmti. Susuming rss ritmti into uto-inrmnt ritmti improvs ot t siz n prormn o t gnrt o. Dtrmining t storg ssignmnt o utomti vrils so s to mximiz t us o uto-inrmnt ritmti s riv mu rnt ttntion. Brtly [] ws t irst to rss simpl vrsion o t ost ssignmnt prolm,n prsnt n ppro s on ining mximum-wigt Hmiltonin pt o n ss grp. Ost ssignmnt prolms or unit inrmnts on multipl rss rgistrs v n rss y Lio t l. [6] n Luprs [5]. Wil tiv lgoritms v n propos, t min mol in ts wors is quit rstritiv n os not rlt t rss ritmti pilitis o som o t mor vn DSP ritturs. For instn, t prlll prossor in t Txs Instrumnts TMS0C80 turs igt rss rgistrs n llows or inrmnts rnging rom,7 to +7. In tis ppr, w xtn prvious wor y prmitting multipl rss rgistrs wit ritrrily-lrg inrmnts. T motivtion or tis ppr is s on t ollowing snrio: suppos tt signr o ustom DSP rittur, givn st o pplitions, wiss to trmin t numr o rss rgistrs n t rng o uto-inrmnt or t rss gnrtion unit. Inrsing t numr o rss rgistrs my improv t xution sp n/or stti instrution ount. Furtrmor, nlrging t rng o inrmnt [,l, l] my lso ru t numr o xpliit rss ritmti instrutions. Howvr, inrsing itr or l my inrs t numr o its rquir to no t instrution wor. Our ojtiv in tis ppr is to provi mto or omprnsivly nlyzing t prormn nits n rwr ost (in trms o o r) u to n uto-inrmnt tur tt vris rom,l to +l, n llowing ss to rss rgistrs in n rss gnrtor (w us t trm o r to mpsiz t t tt t ovrll o siz pns not only on t numr o instrutions, ut lso t wit o t instrution Hnort, inrmnt will us to rprsnt ot inrmnt n rmnt.

2 wor). W provi tis mto vi prmtrizl optimiztion lgoritm tt oprts on prour-wis sis. Tus, w illustrt t importnt rol n optimizing ompilr plys in rittur sign. To tis n, w prsnt gnrliz ormultion o t storg ssignmnt prolm, prmtriz y t mximum llowl inrmnt l n t numr o rss rgistrs. Tis ppr is orgniz s ollows: in S. II, w giv n xmpl illustrting t simpl ost ssignmnt prolm wit inrmnt rng [,l, l] (wi w ll l-soa); in S. III, w prsnt gnrliztion o t SOA lgoritm givn in [6] or l-soa; in S. IV, w rily gnrliz t gnrl ost ssignmnt prolm wit inrmnt rng [,l, l] (wi w ll (l, )-GOA); in S. V, w sri ow n ost ssignmnt or n ntir prour my trmin; S. VI provis xprimntl rsults two igligtso ts rsults r () t vlus o l n yon wi tr is littl or no improvmnt in prormn, n () t vlus o l n wi rsult in minimum totl o r; w inlly prsnt our onlusions in S. VII. II. EXAMPLE W ssum tt t rr is milir wit t simpl ost ssignmnt (SOA) prolm prsnt in [6]. In tis stion, w prsnt n xtnsion o t SOA prolm tt ts into ount t pility o inrmnts rnging rom,l to +l, or ritrry l. Altoug our optimiztions r ppli on prour-wis sis, w ous on si los in tis stion. Fig. sows n xmpl o squn n Fig. sows t optiml ost ssignmnt or t vrils in tis squn, ssuming tt singl rss rgistr wit unit uto-inrmnt is us. Arss rgistr AR0 is us to rss t vrils; ADAR (SBAR) s onstnt to (sutrts onstnt rom) AR0; LDAR los AR0 wit n rss; inlly, *(AR0)+ n *(AR0)- not uto-inrmnt n uto-rmnt y on, rsptivly, o AR0. T instrutions w intn to minimiz r prisly t xpliit rss ritmti instrutions, nmly ADAR n SBAR. As igligt in Fig. (), six su instrutions r rquir, givn t ost ssignmnt o Fig.. Now i l =, tn vrils tt r sprt y istn o t most two my ss in squn witout rquiring n xpliit rss ritmti instrution. Fig. n Fig. () sow t optiml ost ssignmnt n ssmly o, rsptivly, orrsponing to t o squn o Fig.. Hr, t nottion *(AR0)+j nots uto-inrmnt o AR0 y j. Not tt t itionl pility or y inrsing l rus t numr o ADAR n SBAR instrutions, sin jnt sss to vrils tt r istn-l prt in t ost ssignmnt inur no pnlty. III. SIMPLE OFFSET ASSIGNMENT PROBLEM In tis stion, w ssum tt singl rss rgistr is vill to rss t utomti vrils o prour. W trm tis t l-simpl ost ssignmnt (l-soa) prolm. W irst rviw t ormultion o [6] or t l = s, n tn xtn it to t s wr l>. W will susquntly rr to tis ormultion s t -SOA prolm, n t mor gnrl ormultion s t l-soa prolm. A. Ass Squn n Ass Grp Givn o squn or si lo, w n uniquly in n ss squn or tis lo. For n oprtion z = x op y, t ss squn is xyz. T ss squn or = + ; = + g; = + + ; = ; = + ; AR0 g LDAR AR0,& + ADAR AR0, ADD *(AR0) SBAR AR0, STOR *(AR0) SBAR AR0, ADAR AR0,5 ADD *(AR0) SBAR AR0,6 + STOR *(AR0)+ SBAR AR0, STOR *(AR0) () ; ; g ; ; ; Fig.. Co squn Optiml ost ssignmnt or l = () Assmly o n orr st o oprtions is simply t ontnt ss squns or oprtion in t pproprit orr. T ss squn or t si lo o Fig. is sown in Fig.. Givn t notion o n ss squn, it n sn tt wn l =, t ost o n ssignmnt is qul to t numr o jnt sss o vrils tt r not ssign to jnt st lotions. For instn, six rss ritmti instrutions r rquir or t ost ssignmnt o Fig., sin t ollowing six two-symol sustrings o t ss squn rr to vrils ssign to non-jnt st lotions: g, g,,,,n. T ss grp GV, Ei is riv rom n ss squn s ollows: no v V orrspons to uniqu vril, n g u, vi E xists wit wigt w() ivrils u n v r jnt to otr w() tims in t ss squn. T ss grp or t si lo o Fig. is sown in Fig.. Wit rspt to t ss grp, i l =, tn t ost o n ssignmnt is qul to t sum o t wigts o ll gs tt onnt vrilsssign tonon-jnt st lotions. For t xmpl o Fig.,, gi,, i,, i, n,i r su gs, n ts v totl wigt o 6. T otr gs onnt vrils tt v n ssign to jnt st lotions n tus, inur no ost. B. -SOA n t MWPC Prolm Dinition : A isjoint pt ovr (nort ovr) o wigt grp GV, Ei is sugrp CV, E 0 i o G su tt: or v V, g(v) (gr onstrint); tr r no yls in C (yl onstrint). Not tt t gs in C orm st o isjoint pts (som o wi my ontin no gs), n t nm. Dinition : T wigt o grp G is t sum o t wigts o ll gs in G. T ost o ovr C o G is t sum o t wigts o ll gs in G, ut not in C, i.., ost(c)

3 = + ; = + g; = + + ; = ; = + ; AR0 g LDAR AR0,& + + ADD *(AR0) SBAR AR0, + STOR *(AR0)+ ADD *(AR0) STOR *(AR0) () ; ; g ; ; ; Fig.. Co squn Optiml ost ssignmnt or l = () Assmly o g Fig.. Ass squn Ass grp = wigt(g) - wigt(c). Dinition (MWPC) Givn n ss grp G, in ovr C wit mximum wigt. Not tt ovr wit mximum wigt is quivlnt to ovr wit minimum ost. It s n sown in [6] tt solving t MWPC prolm is quivlnt to solving t -SOA prolm. Sin MWPC is NP-omplt, uristi lgoritm or -SOA is propos. C. l-soa T min inquy o t -SOA ormultion is tt wn l>, som gs o t ss grp will v n tiv zro ost, vn i ty r not inlu in t ovr. In Fig., i l =, tn, i (wi ontriut ost o on in t l = s) ontriuts zro ost sin n r istn- prt g g 0 g 0 Inu gs Covr o ss grp Fig. 4. A ovr n its inu gs, or l =. wit rspt to t inl ost ssignmnt (sown in Fig. ). Wn loing, AR0 n uto-inrmnt y so tt it points to t lotion or. Tus, w n to rin t wigt o ovr to t into onsirtion tos gs wos osts r susum y virtu o l. Not tt t g-sltion ritri or isjoint pt ovr o not ng, us our gol rmins to in linr orring o vrils; owvr, irnt ost untion must now minimiz. To omplis tis gol, w must now onsir omplt grps, rtr tn grps onsisting o only positiv-wigt gs. T rson or tis is s ollows: wn l =, inluing zro-wigt gs in t ovr ors no nit, n inluing su gs in t ss grp only ms t optimiztion pross lss iint; owvr, wn l>, slting zro-wigt g my inu notr positiv-wigt g to om tivly ost-lss, vn toug t lttr oul not itsl slt u to t yl n gr onstrints. To prisly sri wi gs v tivly zro ost, w introu t notion o inu (l +)-liqus: Dinition 4: Lt GV, Ei omplt grp, n C ovr o G. A sugrp QV Q, E Q i o G onsisting o (l +) nos n gs onnting ts nos is si to n inu (l+)-liqu o C i V Q r nos o som supt in C o lngt l. Dinition 5: An g o G is si to inu y ovr C i it is not in C ut longs to som inu (l + )-liqu o C. Intuitivly, i nos u n v long to n inu (l +)- liqu, tn tir istn rom otr, wit rspt to gs o C, istmostl. Sin t rss gnrtion unit n uto-inrmnt yt most l, tgu,vi inurs no ost. W in t l-inu wigt o ovr s ollows: Dinition 6: T l-inu wigt o ovr C o omplt, wigt grp G ist totlwigt o tgs in Cn tos gs inu y C. Tl-inu ost o C is t sum o t wigts o gs tt r nitr prt o C nor inu y C. Dinition 7 (l-soa) T l-soa prolm onsists o ining ovr o n ss grp G wit minimum l-inu ost. Fig. 4 sows n xmpl o ovr n its inu (l +)- liqus, or l =. T inu (l + )-liqus r: g,,,,, n, n t positiv-wigt inu

4 SOLVE-l-SOA(L) /* L = ss squn or si lo or tr */ 4 GV, Ei ACCESS-GRAPH(L) 5 F list o gs in E 6 CV 0, E 0 i : V 0 V, E 0 g 7 wil ( je 0 j < jvj,nfnot mpty ) 8 or g in F 9 Comput t totl wigt, z(), o tos 0 gs tt woul om inu i wr inlu in C g Slt g wi mximizs z()+w() 4 E 0 E 0 [ 5 Rmov rom F tos gs m inligil 6 u to yl n gr onstrints 7 g 8 /* Construt n ssignmnt rom E 0 */ 9 rturn CONSTRUCT-ASSIGNMENT(E 0 ) 0 g Fig. 5. Huristi lgoritm or l-soa. gs r, gi,, i,n,i (or lrity, gs wit zro wigt r not sown unlss ty r prt o t ovr). In tis xmpl,, i is t only g or wi w v to py t ost o xpliit rss ritmti instrutions. Doutlss, t l-soa prolm is NP-r. As wit -SOA, w propos uristi prour, sown in Fig. 5 to solv l- SOA: in itrtion o t g-sltion pross, w omput t wigt ligil g woul ontriut y summing up t wigts o ll gs tt woul om inu i wr inlu in t urrnt prtil solution. T g wit t lrgst ontriution is slt. IV. GENERAL OFFSET ASSIGNMENT PROBLEM W rily gnrliz t l-ost ssignmnt prolm to t s wr rss rgistrs, AR0 troug AR(, ), r vill. Sin tis ormultion involvs two inpnnt prmtrs, w nm it t (l, )-gnrl ost ssignmnt ((l, )- GOA) prolm. In tis ormultion, w ssum tt () tr is ix stup ost o introuing t us o n rss rgistr n () rss rgistr is us to point to isjoint sust o vrils. Dinition 8: Lt L t ss squn o si lo, n V t st o vrils in L. Tss susqun gnrt y W V is t susqun o L onsisting o tos vrils only in W. Dinition 9 ((l,)-goa) Givn n ss squn L, t st o vrils V, n tnumr o rss rgistrs,in prtition o V, Π = P, P,..., P m g, m, in wi t totl ost o t optiml l-soa o t orrsponing ss susquns plus t stup osts or using m rgistrsisminimum. Sin trmining t optiml vril prtition is NPomplt, vrious prtitioning uristis r propos in [6]. On uristi prtitions t st o vrils into susts o rinlity two, sin t ost o prorming l-soa on n ss susqun onsisting o two uniqu vrils is zro. V. l-soa FOR PROCEDURES In tis stion, w sri ow our rss ssignmnt mtos my ppli to ntir prours. W irst isuss som pr-prossing stps tt not only ru t tmmory rquirmnts o t pplition progrm, ut my lso improv t qulity o t inl ost ssignmnt. W tn sri t pross o onstruting n ss grp or prour. A. Minimizing Storg Rquirmnts W irst prorm oloring o prour s utomti vrils, su tt intilly-olor vrils r llot to t sm st lotion. Tis optimiztion signiintly rus t run-tim t-mmory rquirmnts o t progrm, wi is o xtrm importn in m systms sign. It is lso possil tt ruing t siz o t st rm my rsult in n ost ssignmnt o lowr ost. T oloring pross pros s ollows: irst, livnss nlysis [] is prorm on ll vrils so s to trmin tirliv rngs tlivrngo vrilv spiis tos rgions o t progrm wr v is tiv. Sonly, n intrrn grp is onstrut in wi vrtx xists or vril, n g i, ji xists i n only i t liv rngs o vrils i n j ovrlp. Tis g spiis tt i n j must olor irntly, or nlogously, ty must llot to irnt st lotions. Finlly, w pply Briggs uristi [] to tis grp in orr to in oloring tt stisis ll intrrn onstrints. In orr to ru t numr o gs in t intrrn grp n n, possily rs t numr o rquir olors, w prorm rnming o ll vril uss n initions prior to onstruting tis grp. Tis tniqu is nlogous to t rgistr rnming rwr sm mploy in igprormn prossors [4]. Vril rnming rus t li-tims o vrils n n, possily rus t numr o ovrlpping liv rngs. B. Construting Prourl Ass Grp W n onstrut prourl ss grp on wi t l-soa lgoritm oprts, tus llowing us to otin n ost ssignmnt or t ntir prour. Tis is iv y mrging t ss grps o si lo in t prour, n ing wigts to t gs o t rsulting ss grp so s to ount or vril sss long ontrol-low gs. Howvr, pning on t optimiztion ojtiv, it my nssry to wigt t ss grp o si lo irntly: or optimiztion o stti instrution ount, w simply wigt si lo qully; or optimiztion o ynmi instrution ount, w wigt si lo oring to its xpt xution rquny. T xpt xution rqunis o si los n trmin sttilly or troug t us o proiling t. Altoug proil-rivn stimtions r gnrlly mor urt, t qulity o stti stimtions is improving. W v implmnt t stti stimtion mto o [9] to stimt si lo rqunis. W rily outlin t stps involv in tis lgoritm: irst, t typ o ontrol-low g (i.., orwr or wr) is trmin troug t us o omintor nlysis [], wi is omput itrtivly; w tn lssiy t typ o g i, ji s ollows: i no j omints no i, tni,ji is wr g, otrwis it is orwr g; using vrious uristis outlin in [9], proility is ssign to g s on its typ; systm o linr qutions is st up,in wi t vrils

5 orrspon to si los, n t oiints r t trmin g rqunis; solution to ts qutions is oun using linr progrmming solvr tis solution spiis t xution rquny o si lo. VI. EXPERIMENTS AND RESULTS W prsnt two sts o xprimntl rsults tt monstrt t vrition in ynmi instrution ount n o r ross irnt vlus o l n. All msurmnts wr otin y running our prmtrizl ost ssignmnt lgoritm using vrious uristis to prtition t vrils, n slting t st rsults. For t irst st o xprimnts (ynmi instrution ount), t si los wr wigt oring to tir stimt rqunis, wrs or t son st, ty wr wigt qully. It is importnt to not tt si lo wigting n t two xprimnts r ortogonl. In otr wors, givn prtiulr wigting, ot xprimnts soul prorm n t t ollt rom ts xprimnts srv irnt purposs. T ojtivs r summriz in Tl I. For instn, i our primry gol is to optimiz or prormn, w wigt t si los oring to rquny, n w us t t st rom t son xprimnt to vlut t impt on totl r. Tus, t xprimntl rsults givn in tis stion only rprsnt ss () n (4) in Tl I. W prorm our xprimnts on or routins rom t ollowing progrms: t img-prossing progrm xv, n implmnttion o t JPEG nor/or, t omprssion progrm gzip, n t DES n RSA ryptosystms. W group ts routins into tr sts s on t totl numr o utomti vrils prsnt (inluing ront-n-gnrt tmporris): tr wr smll xmpls wit wr tn 0 vrils, mium xmpls wit 0 60 vrils, n 4 lrg xmpls wit mor tn 60 vrils. A. Arss Aritmti Instrution Count W prsnt in Fig. 6, Fig. 6, n Fig. 6() rsults initing rss ritmti (i.., ADAR, SBAR, nldar) instrution ounts or t smll, mium n lrg xmpls, rsptivly. In plot, w giv t minimum vlus o l n nssry to ru rss ritmti instrution ount to lss tn %, 5%, n 0% o t l = 0, = s in tis s, n ADAR or SBAR is rquir or mmory ss. For instn, or t smll xmpls, to ru t numr o rss ritmti instrutions to 5% or lss, t pir (l, ) s to qul or x on o t ollowing points: (,), (,), or (4,). Similrly, or t lrg xmpls, to ru t rss ritmti ount to % or lss, (l, ) s to grtr tn or qul to itr (4,5) or (5,). It is intrsting to not tt t lrgst rution in t numr o rss ritmti instrutions u to n inrs in ours t t trnsition rom = to=. Byon tt, w osrv iminising rturns, lrgly u to t stup osts rquir or using itionl rss rgistrs. For instn, in Fig. 6 or t l = s, it is not possil to otin mu urtr improvmnt y inrsing yon. Howvr, i =, w n r % y inrsing l to 5. B. Ovrll Co Ar Ruing t numr o rss ritmti instrutions y inrsing n l inurs ost: mor its r rquir in t instrution wor to no wi rss rgistr to us n t inrmnt mount. W prsnt in Tl II, Tl II, () l l l < % < 5% < 0% < % < 5% < 0% < % < 5% < 0% Fig. 6. Dynmi rss ritmti instrution ount or smll, miumsiz, n () lrg xmpls. n Tl II() rsults initing totl o r or t smll, mium n lrg xmpls, rsptivly. T lultions wr prorm s ollows: w ssum 0-it s instrution wor, n or ny (l,) pir, w omput t it-wit o t instrution wor s 0 + log (l +) +log. For (l, ) pir in st o xmpls, t totl numr o instrutions ws omput y ing t numr o non-adar/sbar instrutions to t numr o rss ritmti instrutions. Tis numr is multipli y t instrution it-wit to otin t o r. For t smll xmpls, t minimum o r vlus our

6 Dynmi instrution ount Totl o r Frquny-wigt Optimiz or prormn () Evlut impt on r () Eqully-wigt Evlut impt on prormn () Optimiz or r (4) TABLE I ONE EXPERIMENT IS USED TO OPTIMIZE FOR AN OBJECTIVE (PERFORMANCE OR AREA), WHILE THE OTHER IS USED TO EVALUATE IMPACT ON THE OTHER OBJECTIVE (AREA OR PERFORMANCE). FOR INSTANCE, IF OUR PRIMARY OBJECTIVE IS TOTAL CODE AREA (4), WE WOULD CONSTRUCT THE PROCEDURAL ACCESS GRAPH BY WEIGHTING THE BASIC BLOCKS EQUALLY, AND THE MEASUREMENTS OBTAINED IN () WOULD THEN BE USED AS A GUIDE FOR TRADE-OFFS IN PERFORMANCE. l l l () 0 4 TABLE II OVERALL CODE AREA (IN BITS) FOR (A) SMALL,(B) MEDIUM-SIZED, AND (C) LARGE EXAMPLES. THE HIGHLIGHTED NUMBERS SHOW THE BEST RESULTS. t t ollowing (l, ) points: (,), (,), (,), n (,4) ts rs r witin % o otr. For ot t mium n lrg xmpls, t minimum o r vlus our t t ollowing (l, ) points: (,), (,4), n (,4) ts rs r witin % o otr. Tror, w onlu tt l =, = nl=, = 4 r t st options or wi rng o xmpls. Our ssumption out t s instrution wor is rlisti or DSPs vrying t s wit twn 8 n 6 its s miniml impt (qulittivly) on t rsults. VII. CONCLUSIONS W v prsnt mtoology or t nlysis n vlution o t impt on prormn n o r u to vrious rss gnrtion unit pilitis. Spiilly, w v xmin two prmtrs: t numr o rss rgistrs n t rng o uto-inrmnt. Wil inrsing itr o ts prmtrs my rsult in potntil o siz or prormn gins, oing so rquirs inrsing t instrution wor wit. W v intii, troug t us o prmtrizl optimiztion lgoritm on wi rng o xmpls, t optiml vlus or ts two prmtrs wit rspt to prormn n o r. Our xprimntl rsults r prtiulrly vlul to signrs o ustom DSP ritturs, wo must i wi turs to inorport into t rss gnrtion unit. Our mtoology my lso ppli to wir or mor nrrow st o nmrs, so s to otin t st prmtrs or t pplitions or wi t rittur is intn. ACKNOWLEDGMENTS Tis rsr ws support in prt y t Avn Rsr Projts Agny unr ontrt DABT6-94-C-005 n in prt y NSF ontrt MIP-966. REFERENCES [] A. Ao, R. Sti, n J. Ullmn. Compilrs Prinipls, Tniqus n Tools. Aison-Wsly, 986. [] D. H. Brtly. Optimizing St Frm Asss or Prossors wit Rstrit Arssing Mos. Sotwr Prti n Exprin, (), Frury 99. [] P. Briggs, K.D. Coopr, n L. Torzon. Improvmnts to grp oloring rgistr llotion. ACM Trnstions on Progrmming Lngugs n Systms, 6(), 994. [4] R.M. Kllr. Loo-A Prossors. Computing Survys, 7(4), Dmr 975. [5] R. Luprs n P. Mrwl. Algoritms or Arss Assignmnt in DSP Co Gnrtion. In Proings o Intrntionl Conrn on Computr-Ai Dsign, 996. [6] S. Lio, S. Dvs, K. Kutzr, S. Tjing, n A. Wng. Storg Assignmnt to Drs Co Siz. In ACM Trnstions on Progrmming Lngugs n Systms, volum 8, My 996. [7] S. Lio, S. Dvs, K. Kutzr, S. Tjing, A. Wng, G. Arujo, A. Sursnm, S. Mli, V. Živojnović, n H. Myr. Co Gnrtion n Optimiztion Tniqus or Em Digitl Signl Prossors. In G. D Mili n M. Smi, itors, Hrwr/Sotwr Co- Dsign. Kluwr Ami Pulisrs, 996. Pro. o t NATO Avn Stuy Institut on Hrwr/Sotwr Co-Dsign. [8] V. Živojnović, J. Mrtínz Vlr, n C. Slägr. DSPston: A DSP-orint Bnmring Mtoology. In Pro. o t 5t Int l Con. on Signl Prossing Applitions n Tnology, Otor 994. [9] T.A. Wgnr, V. Mvri, S.L. Grm, n M.A. Hrrison. Aurt Stti Estimtors or Progrm Optimiztion. In Proings o t ACM SIGPLAN 94 Conrn on Progrmming Lngug Dsign n Implmnttion, Jun 994.

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph Intrntionl J.Mth. Comin. Vol.1(2014), 80-86 Algorithmi n NP-Compltnss Aspts of Totl Lit Domintion Numr of Grph Girish.V.R. (PES Institut of Thnology(South Cmpus), Bnglor, Krntk Stt, Ini) P.Ush (Dprtmnt

More information

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology! Outlin Computr Sin 331, Spnnin, n Surphs Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #30 1 Introution 2 3 Dinition 4 Spnnin 5 6 Mik Joson (Univrsity o Clry) Computr Sin 331 Ltur #30 1 / 20 Mik

More information

MAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017

MAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017 MAT3707/201/1/2017 Tutoril lttr 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS MAT3707 Smstr 1 Dprtmnt o Mtmtil Sins SOLUTIONS TO ASSIGNMENT 01 BARCODE Din tomorrow. univrsity o sout ri SOLUTIONS TO ASSIGNMENT

More information

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management nrl tr T is init st o on or mor nos suh tht thr is on sint no r, ll th root o T, n th rminin nos r prtition into n isjoint susts T, T,, T n, h o whih is tr, n whos roots r, r,, r n, rsptivly, r hilrn o

More information

learning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms

learning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms rp loritms lrnin ojtivs loritms your sotwr systm sotwr rwr lrn wt rps r in mtmtil trms lrn ow to rprsnt rps in omputrs lrn out typil rp loritms wy rps? intuitivly, rp is orm y vrtis n s twn vrtis rps r

More information

A Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation

A Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation A Simpl Co Gnrtor Co Gnrtion Chptr 8 II Gnrt o for singl si lok How to us rgistrs? In most mhin rhitturs, som or ll of th oprnsmust in rgistrs Rgistrs mk goo tmporris Hol vlus tht r omput in on si lok

More information

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS OMPLXITY O OUNTING PLNR TILINGS Y TWO RS KYL MYR strt. W show tht th prolm o trmining th numr o wys o tiling plnr igur with horizontl n vrtil r is #P-omplt. W uil o o th rsults o uquir, Nivt, Rmil, n Roson

More information

Present state Next state Q + M N

Present state Next state Q + M N Qustion 1. An M-N lip-lop works s ollows: I MN=00, th nxt stt o th lip lop is 0. I MN=01, th nxt stt o th lip-lop is th sm s th prsnt stt I MN=10, th nxt stt o th lip-lop is th omplmnt o th prsnt stt I

More information

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V Unirt Grphs An unirt grph G = (V, E) V st o vrtis E st o unorr gs (v,w) whr v, w in V USE: to mol symmtri rltionships twn ntitis vrtis v n w r jnt i thr is n g (v,w) [or (w,v)] th g (v,w) is inint upon

More information

OpenMx Matrices and Operators

OpenMx Matrices and Operators OpnMx Mtris n Oprtors Sr Mln Mtris: t uilin loks Mny typs? Dnots r lmnt mxmtrix( typ= Zro", nrow=, nol=, nm="" ) mxmtrix( typ= Unit", nrow=, nol=, nm="" ) mxmtrix( typ= Int", nrow=, nol=, nm="" ) mxmtrix(

More information

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura Moul grph.py CS 231 Nomi Nishimur 1 Introution Just lik th Python list n th Python itionry provi wys of storing, ssing, n moifying t, grph n viw s wy of storing, ssing, n moifying t. Bus Python os not

More information

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008 Th Univrsity o Syny MATH2969/2069 Grph Thory Tutoril 5 (Wk 12) Solutions 2008 1. (i) Lt G th isonnt plnr grph shown. Drw its ul G, n th ul o th ul (G ). (ii) Show tht i G is isonnt plnr grph, thn G is

More information

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely . DETERMINANT.. Dtrminnt. Introution:I you think row vtor o mtrix s oorint o vtors in sp, thn th gomtri mning o th rnk o th mtrix is th imnsion o th prlllppi spnn y thm. But w r not only r out th imnsion,

More information

Constructive Geometric Constraint Solving

Constructive Geometric Constraint Solving Construtiv Gomtri Constrint Solving Antoni Soto i Rir Dprtmnt Llngutgs i Sistms Inormàtis Univrsitt Politèni Ctluny Brlon, Sptmr 2002 CGCS p.1/37 Prliminris CGCS p.2/37 Gomtri onstrint prolm C 2 D L BC

More information

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013 CS Avn Dt Struturs n Algorithms Exm Solution Jon Turnr //. ( points) Suppos you r givn grph G=(V,E) with g wights w() n minimum spnning tr T o G. Now, suppos nw g {u,v} is to G. Dsri (in wors) mtho or

More information

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1. Why th Juntion Tr lgorithm? Th Juntion Tr lgorithm hris Willims 1 Shool of Informtis, Univrsity of Einurgh Otor 2009 Th JT is gnrl-purpos lgorithm for omputing (onitionl) mrginls on grphs. It os this y

More information

Register Allocation. How to assign variables to finitely many registers? What to do when it can t be done? How to do so efficiently?

Register Allocation. How to assign variables to finitely many registers? What to do when it can t be done? How to do so efficiently? Rgistr Allotion Rgistr Allotion How to ssign vrils to initly mny rgistrs? Wht to o whn it n t on? How to o so iintly? Mony, Jun 3, 13 Mmory Wll Disprity twn CPU sp n mmory ss sp improvmnt Mony, Jun 3,

More information

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS C 24 - COMBINATIONAL BUILDING BLOCKS - INVST 3 DCODS AND NCODS FALL 23 AP FLZ To o "wll" on this invstition you must not only t th riht nswrs ut must lso o nt, omplt n onis writups tht mk ovious wht h

More information

CS553 Lecture Register Allocation 1

CS553 Lecture Register Allocation 1 Low-Lvl Issus Lst ltur Livnss nlysis Rgistr llotion Toy Mor rgistr llotion Wnsy Common suxprssion limintion or PA2 Logistis PA1 is u PA2 hs n post Mony th 15 th, no lss u to LCPC in Orgon CS553 Ltur Rgistr

More information

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s? MATH 3012 Finl Exm, My 4, 2006, WTT Stunt Nm n ID Numr 1. All our prts o this prolm r onrn with trnry strings o lngth n, i.., wors o lngth n with lttrs rom th lpht {0, 1, 2}.. How mny trnry wors o lngth

More information

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim's Alorithm Introution Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #33 3 Alorithm Gnrl Constrution Mik Joson (Univrsity o Clry)

More information

Tangram Fractions Overview: Students will analyze standard and nonstandard

Tangram Fractions Overview: Students will analyze standard and nonstandard ACTIVITY 1 Mtrils: Stunt opis o tnrm mstrs trnsprnis o tnrm mstrs sissors PROCEDURE Skills: Dsriin n nmin polyons Stuyin onrun Comprin rtions Tnrm Frtions Ovrviw: Stunts will nlyz stnr n nonstnr tnrms

More information

CSC Design and Analysis of Algorithms. Example: Change-Making Problem

CSC Design and Analysis of Algorithms. Example: Change-Making Problem CSC 801- Dsign n Anlysis of Algorithms Ltur 11 Gry Thniqu Exmpl: Chng-Mking Prolm Givn unlimit mounts of oins of nomintions 1 > > m, giv hng for mount n with th lst numr of oins Exmpl: 1 = 25, 2 =10, =

More information

d e c b a d c b a d e c b a a c a d c c e b

d e c b a d c b a d e c b a a c a d c c e b FLAT PEYOTE STITCH Bin y mkin stoppr -- sw trou n pull it lon t tr until it is out 6 rom t n. Sw trou t in witout splittin t tr. You soul l to sli it up n own t tr ut it will sty in pl wn lt lon. Evn-Count

More information

Trees as operads. Lecture A formalism of trees

Trees as operads. Lecture A formalism of trees Ltur 2 rs s oprs In this ltur, w introu onvnint tgoris o trs tht will us or th inition o nroil sts. hs tgoris r gnrliztions o th simpliil tgory us to in simpliil sts. First w onsir th s o plnr trs n thn

More information

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem) 12/3/12 Outlin Prt 10. Grphs CS 200 Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 1 Ciruits Cyl 2 Eulr

More information

Math 166 Week in Review 2 Sections 1.1b, 1.2, 1.3, & 1.4

Math 166 Week in Review 2 Sections 1.1b, 1.2, 1.3, & 1.4 Mt 166 WIR, Sprin 2012, Bnjmin urisp Mt 166 Wk in Rviw 2 Stions 1.1, 1.2, 1.3, & 1.4 1. S t pproprit rions in Vnn irm tt orrspon to o t ollowin sts. () (B ) B () ( ) B B () (B ) B 1 Mt 166 WIR, Sprin 2012,

More information

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs Prt 10. Grphs CS 200 Algorithms n Dt Struturs 1 Introution Trminology Implmnting Grphs Outlin Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 2 Ciruits Cyl A spil yl

More information

Complete Solutions for MATH 3012 Quiz 2, October 25, 2011, WTT

Complete Solutions for MATH 3012 Quiz 2, October 25, 2011, WTT Complt Solutions or MATH 012 Quiz 2, Otor 25, 2011, WTT Not. T nswrs ivn r r mor omplt tn is xpt on n tul xm. It is intn tt t mor omprnsiv solutions prsnt r will vlul to stunts in stuyin or t inl xm. In

More information

5/1/2018. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees

5/1/2018. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees. Huffman Coding Trees /1/018 W usully no strns y ssnn -lnt os to ll rtrs n t lpt (or mpl, 8-t on n ASCII). Howvr, rnt rtrs our wt rnt rquns, w n sv mmory n ru trnsmttl tm y usn vrl-lnt non. T s to ssn sortr os to rtrs tt our

More information

New challenges on Independent Gate FinFET Transistor Network Generation

New challenges on Independent Gate FinFET Transistor Network Generation Nw hllngs on Inpnnt Gt FinFET Trnsistor Ntwork Gnrtion Viniius N. Possni, Anré I. Ris, Rnto P. Ris, Flip S. Mrqus, Lomr S. Ros Junior Thnology Dvlopmnt Cntr, Frl Univrsity o Plots, Plots, Brzil Institut

More information

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp CSE 373 Grphs 1: Conpts, Dpth/Brth-First Srh ring: Wiss Ch. 9 slis rt y Mrty Stpp http://www.s.wshington.u/373/ Univrsity o Wshington, ll rights rsrv. 1 Wht is grph? 56 Tokyo Sttl Soul 128 16 30 181 140

More information

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2 Grt Thortil Is In Computr Sin Vitor Amhik CS 15-251 Ltur 9 Grphs - II Crngi Mllon Univrsity Grph Isomorphism finition. Two simpl grphs G n H r isomorphi G H if thr is vrtx ijtion V H ->V G tht prsrvs jny

More information

Designing A Concrete Arch Bridge

Designing A Concrete Arch Bridge This is th mous Shwnh ri in Switzrln, sin y Rort Millrt in 1933. It spns 37.4 mtrs (122 t) n ws sin usin th sm rphil mths tht will monstrt in this lsson. To pro with this lsson, lik on th Nxt utton hr

More information

Register Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012

Register Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012 Rgistr Allotion W now r l to o rgistr llotion on our intrfrn grph. W wnt to l with two typs of onstrints: 1. Two vlus r liv t ovrlpping points (intrfrn grph) 2. A vlu must or must not in prtiulr rhitturl

More information

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim s Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #34 Introution Min-Cost Spnnin Trs 3 Gnrl Constrution 4 5 Trmintion n Eiiny 6 Aitionl

More information

BASIC CAGE DETAILS SHOWN 3D MODEL: PSM ASY INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY SPRING FINGERS CLOSED TOP

BASIC CAGE DETAILS SHOWN 3D MODEL: PSM ASY INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY SPRING FINGERS CLOSED TOP MO: PSM SY SI TIS SOWN SPRIN INRS OS TOP INNR W TS R OIN OVR S N OVR OR RIIITY. R TURS US WIT OPTION T SINS. R (UNOMPRSS) RR S OPTION (S T ON ST ) IMNSIONS O INNR SIN TO UNTION WIT QU SM ORM-TOR (zqsp+)

More information

0.1. Exercise 1: the distances between four points in a graph

0.1. Exercise 1: the distances between four points in a graph Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 pg 1 Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 u: W, 3 My 2017, in lss or y mil (grinr@umn.u) or lss S th wsit or rlvnt mtril. Rsults provn in th nots, or in

More information

16.unified Introduction to Computers and Programming. SOLUTIONS to Examination 4/30/04 9:05am - 10:00am

16.unified Introduction to Computers and Programming. SOLUTIONS to Examination 4/30/04 9:05am - 10:00am 16.unii Introution to Computrs n Prormmin SOLUTIONS to Exmintion /30/0 9:05m - 10:00m Pro. I. Kristin Lunqvist Sprin 00 Grin Stion: Qustion 1 (5) Qustion (15) Qustion 3 (10) Qustion (35) Qustion 5 (10)

More information

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs. Pths.. Eulr n Hmilton Pths.. Pth D. A pth rom s to t is squn o gs {x 0, x 1 }, {x 1, x 2 },... {x n 1, x n }, whr x 0 = s, n x n = t. D. Th lngth o pth is th numr o gs in it. {, } {, } {, } {, } {, } {,

More information

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas SnNCutCnvs Using th Printl Stikr Funtion On-o--kin stikrs n sily rt y using your inkjt printr n th Dirt Cut untion o th SnNCut mhin. For inormtion on si oprtions o th SnNCutCnvs, rr to th Hlp. To viw th

More information

BASIC CAGE DETAILS D C SHOWN CLOSED TOP SPRING FINGERS INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY

BASIC CAGE DETAILS D C SHOWN CLOSED TOP SPRING FINGERS INNER WALL TABS ARE COINED OVER BASE AND COVER FOR RIGIDITY SI TIS SOWN OS TOP SPRIN INRS INNR W TS R OIN OVR S N OVR OR RIIITY. R IMNSIONS O INNR SIN TO UNTION WIT QU SM ORM-TOR (zqsp+) TRNSIVR. R. RR S OPTION (S T ON ST ) TURS US WIT OPTION T SINS. R (INSI TO

More information

Outline. Binary Tree

Outline. Binary Tree Outlin Similrity Srh Th Binry Brnh Distn Nikolus Austn nikolus.ustn@s..t Dpt. o Computr Sins Univrsity o Slzur http://rsrh.uni-slzur.t 1 Binry Brnh Distn Binry Rprsnttion o Tr Binry Brnhs Lowr Boun or

More information

THE EFFECT OF SEED AND SOIL APPLIED SYSTEMIC INSECTICIDES ON APHIDS IN SORGHUM. Texas Agricultural Experiment Station, Nueces County, 2000

THE EFFECT OF SEED AND SOIL APPLIED SYSTEMIC INSECTICIDES ON APHIDS IN SORGHUM. Texas Agricultural Experiment Station, Nueces County, 2000 THE EFFECT OF SEED AND SOIL APPLIED SYSTEMIC INSECTICIDES ON APHIDS IN SORGHUM Txs Agriulturl Exprimnt Sttion, Nus County, 2000 Roy D. Prkr Extnsion Entomologist Corpus Cristi, Txs SUMMARY: Grnug, yllow

More information

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review rmup CSE 7: AVL trs rmup: ht is n invrint? Mihl L Friy, Jn 9, 0 ht r th AVL tr invrints, xtly? Disuss with your nighor. AVL Trs: Invrints Intrlu: Exploring th ln invrint Cor i: xtr invrint to BSTs tht

More information

CS 461, Lecture 17. Today s Outline. Example Run

CS 461, Lecture 17. Today s Outline. Example Run Prim s Algorithm CS 461, Ltur 17 Jr Si Univrsity o Nw Mxio In Prim s lgorithm, th st A mintin y th lgorithm orms singl tr. Th tr strts rom n ritrry root vrtx n grows until it spns ll th vrtis in V At h

More information

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018 CSE 373: Mor on grphs; DFS n BFS Mihl L Wnsy, F 14, 2018 1 Wrmup Wrmup: Disuss with your nighor: Rmin your nighor: wht is simpl grph? Suppos w hv simpl, irt grph with x nos. Wht is th mximum numr of gs

More information

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

Similarity Search. The Binary Branch Distance. Nikolaus Augsten. Similrity Srh Th Binry Brnh Distn Nikolus Augstn nikolus.ugstn@sg..t Dpt. of Computr Sins Univrsity of Slzurg http://rsrh.uni-slzurg.t Vrsion Jnury 11, 2017 Wintrsmstr 2016/2017 Augstn (Univ. Slzurg) Similrity

More information

Lecture 20: Minimum Spanning Trees (CLRS 23)

Lecture 20: Minimum Spanning Trees (CLRS 23) Ltur 0: Mnmum Spnnn Trs (CLRS 3) Jun, 00 Grps Lst tm w n (wt) rps (unrt/rt) n ntrou s rp voulry (vrtx,, r, pt, onnt omponnts,... ) W lso suss jny lst n jny mtrx rprsntton W wll us jny lst rprsntton unlss

More information

QUESTIONS BEGIN HERE!

QUESTIONS BEGIN HERE! Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt o Computr n Inormtion Sins CSCI 2710 (Trno) Disrt Struturs TEST or Sprin Smstr, 2005 R this or strtin! This tst is los ook

More information

STRUCTURAL GENERAL NOTES

STRUCTURAL GENERAL NOTES UILIN OS: SIN LOS: RUTURL NRL NOTS NRL NOTS: US ROUP: - SSMLY USS INTN OR PRTIIPTION IN OR VIWIN OUTOOR TIVITIS PR MIIN UILIN O STION. SSONL. T UNTION O TIS ILITY IS NOT OR QUIPP OR OUPNY URIN WINTR/ TIN

More information

Register Saturation in Superscalar and VLIW Codes

Register Saturation in Superscalar and VLIW Codes Rgistr Sturtion in Suprslr n VLIW Cos Si Am Ali Touti INRIA, Domin Voluu, BP 105. 78153, L Csny x, Frn Si-Am-Ali.Touti@inri.r Astrt. T rgistrs onstrints n tn into ount uring t suling ps o n yli t pnn grp

More information

Planar Upward Drawings

Planar Upward Drawings C.S. 252 Pro. Rorto Tmssi Computtionl Gomtry Sm. II, 1992 1993 Dt: My 3, 1993 Sri: Shmsi Moussvi Plnr Upwr Drwings 1 Thorm: G is yli i n only i it hs upwr rwing. Proo: 1. An upwr rwing is yli. Follow th

More information

Computational Biology, Phylogenetic Trees. Consensus methods

Computational Biology, Phylogenetic Trees. Consensus methods Computtionl Biology, Phylognti Trs Consnsus mthos Asgr Bruun & Bo Simonsn Th 16th of Jnury 2008 Dprtmnt of Computr Sin Th univrsity of Copnhgn 0 Motivtion Givn olltion of Trs Τ = { T 0,..., T n } W wnt

More information

Register Allocation and Binding for Low Power. Jui-Ming Chang and Massoud Pedram. function of signal statistics and correlations, and hence is

Register Allocation and Binding for Low Power. Jui-Ming Chang and Massoud Pedram. function of signal statistics and correlations, and hence is Rgistr Allotion n ining or Low Powr Jui-Ming hng n Mssou Prm Dprtmnt o Eltril Enginring-Systms Univrsity o Southrn liorni Los Angls, A 989 Astrt This ppr sris thniqu or lulting th swithing tivity o st

More information

Graph Contraction and Connectivity

Graph Contraction and Connectivity Chptr 17 Grph Contrtion n Conntivity So r w hv mostly ovr thniqus or solving prolms on grphs tht wr vlop in th ontxt o squntil lgorithms. Som o thm r sy to prllliz whil othrs r not. For xmpl, w sw tht

More information

QUESTIONS BEGIN HERE!

QUESTIONS BEGIN HERE! Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt of Computr n Informtion Sins CSCI 710 (Trnoff) Disrt Struturs TEST for Fll Smstr, 00 R this for strtin! This tst is los ook

More information

Weighted Graphs. Weighted graphs may be either directed or undirected.

Weighted Graphs. Weighted graphs may be either directed or undirected. 1 In mny ppltons, o rp s n ssot numrl vlu, ll wt. Usully, t wts r nonntv ntrs. Wt rps my tr rt or unrt. T wt o n s otn rrr to s t "ost" o t. In ppltons, t wt my msur o t lnt o rout, t pty o ln, t nry rqur

More information

Problem solving by search

Problem solving by search Prolm solving y srh Tomáš voo Dprtmnt o Cyrntis, Vision or Roots n Autonomous ystms Mrh 5, 208 / 3 Outlin rh prolm. tt sp grphs. rh trs. trtgis, whih tr rnhs to hoos? trtgy/algorithm proprtis? Progrmming

More information

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1 CSC 00 Disrt Struturs : Introuon to Grph Thory Grphs Grphs CSC 00 Disrt Struturs Villnov Univrsity Grphs r isrt struturs onsisng o vrs n gs tht onnt ths vrs. Grphs n us to mol: omputr systms/ntworks mthml

More information

CS553 Lecture Register Allocation I 3

CS553 Lecture Register Allocation I 3 Low-Lvl Issus Last ltur Intrproural analysis Toay Start low-lvl issus Rgistr alloation Latr Mor rgistr alloation Instrution shuling CS553 Ltur Rgistr Alloation I 2 Rgistr Alloation Prolm Assign an unoun

More information

CS150 Sp 98 R. Newton & K. Pister 1

CS150 Sp 98 R. Newton & K. Pister 1 Outin Cok Synronous Finit- Mins Lst tim: Introution to numr systms: sin/mnitu, ons ompmnt, twos ompmnt Rviw o ts, ip ops, ountrs Tis tur: Rviw Ts & Trnsition Dirms Impmnttion Usin D Fip-Fops Min Equivn

More information

CS 241 Analysis of Algorithms

CS 241 Analysis of Algorithms CS 241 Anlysis o Algorithms Prossor Eri Aron Ltur T Th 9:00m Ltur Mting Lotion: OLB 205 Businss HW6 u lry HW7 out tr Thnksgiving Ring: Ch. 22.1-22.3 1 Grphs (S S. B.4) Grphs ommonly rprsnt onntions mong

More information

Edge-Triggered D Flip-flop. Formal Analysis. Fundamental-Mode Sequential Circuits. D latch: How do flip-flops work?

Edge-Triggered D Flip-flop. Formal Analysis. Fundamental-Mode Sequential Circuits. D latch: How do flip-flops work? E-Trir D Flip-Flop Funamntal-Mo Squntial Ciruits PR A How o lip-lops work? How to analys aviour o lip-lops? R How to sin unamntal-mo iruits? Funamntal mo rstrition - only on input an an at a tim; iruit

More information

Grade 7/8 Math Circles March 4/5, Graph Theory I- Solutions

Grade 7/8 Math Circles March 4/5, Graph Theory I- Solutions ulty o Mtmtis Wtrloo, Ontrio N ntr or ution in Mtmtis n omputin r / Mt irls Mr /, 0 rp Tory - Solutions * inits lln qustion. Tr t ollowin wlks on t rp low. or on, stt wtr it is pt? ow o you know? () n

More information

1 Introduction to Modulo 7 Arithmetic

1 Introduction to Modulo 7 Arithmetic 1 Introution to Moulo 7 Arithmti Bor w try our hn t solvin som hr Moulr KnKns, lt s tk los look t on moulr rithmti, mo 7 rithmti. You ll s in this sminr tht rithmti moulo prim is quit irnt rom th ons w

More information

Experiment # 3 Introduction to Digital Logic Simulation and Xilinx Schematic Editor

Experiment # 3 Introduction to Digital Logic Simulation and Xilinx Schematic Editor EE2L - Introution to Diitl Ciruits Exprimnt # 3 Exprimnt # 3 Introution to Diitl Loi Simultion n Xilinx Smti Eitor. Synopsis: Tis l introus CAD tool (Computr Ai Dsin tool) ll Xilinx Smti Eitor, wi is us

More information

Seven-Segment Display Driver

Seven-Segment Display Driver 7-Smnt Disply Drivr, Ron s in 7-Smnt Disply Drivr, Ron s in Prolm 62. 00 0 0 00 0000 000 00 000 0 000 00 0 00 00 0 0 0 000 00 0 00 BCD Diits in inry Dsin Drivr Loi 4 inputs, 7 outputs 7 mps, h with 6 on

More information

The University of Sydney MATH 2009

The University of Sydney MATH 2009 T Unvrsty o Syny MATH 2009 APH THEOY Tutorl 7 Solutons 2004 1. Lt t sonnt plnr rp sown. Drw ts ul, n t ul o t ul ( ). Sow tt s sonnt plnr rp, tn s onnt. Du tt ( ) s not somorp to. ( ) A onnt rp s on n

More information

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method:

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method: Dinition: GREEDY TECHNIQUE Gry thniqu is gnrl lgorithm sign strtgy, uilt on ollowing lmnts: onigurtions: irnt hois, vlus to in ojtiv untion: som onigurtions to ithr mximiz or minimiz Th mtho: Applil to

More information

Module 2 Motion Instructions

Module 2 Motion Instructions Moul 2 Motion Instrutions CAUTION: Bor you strt this xprimnt, unrstn tht you r xpt to ollow irtions EXPLICITLY! Tk your tim n r th irtions or h stp n or h prt o th xprimnt. You will rquir to ntr t in prtiulr

More information

Announcements. Not graphs. These are Graphs. Applications of Graphs. Graph Definitions. Graphs & Graph Algorithms. A6 released today: Risk

Announcements. Not graphs. These are Graphs. Applications of Graphs. Graph Definitions. Graphs & Graph Algorithms. A6 released today: Risk Grphs & Grph Algorithms Ltur CS Spring 6 Announmnts A6 rls toy: Risk Strt signing with your prtnr sp Prlim usy Not grphs hs r Grphs K 5 K, =...not th kin w mn, nywy Applitions o Grphs Communition ntworks

More information

CSCI Compiler Design

CSCI Compiler Design CSCI 565 - Compilr Dsign Spring 2013 Sond Tst - Solution My 1, 2013 t 3.30 PM in Room RTH 115 Durtion: 2h 30 min. Pls ll ll pgs you turn in with your nm nd studnt numr. Nm: Numr: Grd: Prolm 1 [20 points]:

More information

NP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal?

NP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal? NP-Compltnss 1. Polynomil tim lgorithm 2. Polynomil tim rution 3.P vs NP 4.NP-ompltnss (som slis y P.T. Um Univrsity o Txs t Dlls r us) Trvling Slsprson Prolm Fin minimum lngth tour tht visits h ity on

More information

Properties of Hexagonal Tile local and XYZ-local Series

Properties of Hexagonal Tile local and XYZ-local Series 1 Proprtis o Hxgonl Til lol n XYZ-lol Sris Jy Arhm 1, Anith P. 2, Drsnmik K. S. 3 1 Dprtmnt o Bsi Sin n Humnitis, Rjgiri Shool o Enginring n, Thnology, Kkkn, Ernkulm, Krl, Ini. jyjos1977@gmil.om 2 Dprtmnt

More information

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths. How os it work? Pl vlu o imls rprsnt prts o whol numr or ojt # 0 000 Tns o thousns # 000 # 00 Thousns Hunrs Tns Ons # 0 Diml point st iml pl: ' 0 # 0 on tnth n iml pl: ' 0 # 00 on hunrth r iml pl: ' 0

More information

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes. Nm: UCA ID Numr: Stion lttr: th 61 : Disrt Struturs Finl Exm Instrutor: Ciprin nolsu You hv 180 minuts. No ooks, nots or lultors r llow. Do not us your own srth ppr. 1. (2 points h) Tru/Fls: Cirl th right

More information

PASAP: Power Aware Structured ASIC Placement

PASAP: Power Aware Structured ASIC Placement PASAP: Powr Awr Strutur ASIC Plmnt Ashutosh Chkrorty ECE Dprtmnt Univrsity o Txs t Austin Austin, Txs, USA shutosh@r.utxs.u Dvi Z. Pn ECE Dprtmnt Univrsity o Txs t Austin Austin, Txs, USA pn@.utxs.u ABSTRACT

More information

Graph Algorithms and Combinatorial Optimization Presenters: Benjamin Ferrell and K. Alex Mills May 7th, 2014

Graph Algorithms and Combinatorial Optimization Presenters: Benjamin Ferrell and K. Alex Mills May 7th, 2014 Grp Aloritms n Comintoril Optimiztion Dr. R. Cnrskrn Prsntrs: Bnjmin Frrll n K. Alx Mills My 7t, 0 Mtroi Intrstion In ts ltur nots, w mk us o som unonvntionl nottion or st union n irn to kp tins lnr. In

More information

Solutions to Homework 5

Solutions to Homework 5 Solutions to Homwork 5 Pro. Silvia Frnánz Disrt Mathmatis Math 53A, Fall 2008. [3.4 #] (a) Thr ar x olor hois or vrtx an x or ah o th othr thr vrtis. So th hromati polynomial is P (G, x) =x (x ) 3. ()

More information

EE1000 Project 4 Digital Volt Meter

EE1000 Project 4 Digital Volt Meter Ovrviw EE1000 Projt 4 Diitl Volt Mtr In this projt, w mk vi tht n msur volts in th rn o 0 to 4 Volts with on iit o ury. Th input is n nlo volt n th output is sinl 7-smnt iit tht tlls us wht tht input s

More information

CS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality:

CS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality: CS2: Grphs Prihr Ch. 4 Rosn Ch. Grphs A olltion of nos n gs Wht n this rprsnt? n A omputr ntwork n Astrtion of mp n Soil ntwork CS2 - Hsh Tls 2 Dirt Grphs Grphs/Ntworks Aroun Us A olltion of nos n irt

More information

(4, 2)-choosability of planar graphs with forbidden structures

(4, 2)-choosability of planar graphs with forbidden structures 1 (4, )-oosility o plnr rps wit orin struturs 4 5 Znr Brikkyzy 1 Cristopr Cox Mil Diryko 1 Kirstn Honson 1 Moit Kumt 1 Brnr Liiký 1, Ky Mssrsmit 1 Kvin Moss 1 Ktln Nowk 1 Kvin F. Plmowski 1 Drrik Stol

More information

A 4-state solution to the Firing Squad Synchronization Problem based on hybrid rule 60 and 102 cellular automata

A 4-state solution to the Firing Squad Synchronization Problem based on hybrid rule 60 and 102 cellular automata A 4-stt solution to th Firing Squ Synhroniztion Prolm s on hyri rul 60 n 102 llulr utomt LI Ning 1, LIANG Shi-li 1*, CUI Shung 1, XU Mi-ling 1, ZHANG Ling 2 (1. Dprtmnt o Physis, Northst Norml Univrsity,

More information

An Effective Heuristic for Simple Offset Assignment with Variable Coalescing

An Effective Heuristic for Simple Offset Assignment with Variable Coalescing An Etiv Huristi or Simpl Ost Assinmnt with Vribl Colsin Hssn Slmy n J. Rmnujm Dprtmnt o Eltril n Computr Eninrin n Cntr or Computtion n Thnoloy Louisin Stt Univrsity, Bton Rou, LA 7080, USA {hslm,jxr}@.lsu.u

More information

Solutions for HW11. Exercise 34. (a) Use the recurrence relation t(g) = t(g e) + t(g/e) to count the number of spanning trees of v 1

Solutions for HW11. Exercise 34. (a) Use the recurrence relation t(g) = t(g e) + t(g/e) to count the number of spanning trees of v 1 Solutions for HW Exris. () Us th rurrn rltion t(g) = t(g ) + t(g/) to ount th numr of spnning trs of v v v u u u Rmmr to kp multipl gs!! First rrw G so tht non of th gs ross: v u v Rursing on = (v, u ):

More information

VLSI Testing Assignment 2

VLSI Testing Assignment 2 1. 5-vlu D-clculus trut tbl or t XOR unction: XOR 0 1 X D ~D 0 0 1 X D ~D 1 1 0 X ~D D X X X X X X D D ~D X 0 1 ~D ~D D X 1 0 Tbl 1: 5-vlu D-clculus Trut Tbl or t XOR Function Sinc 2-input XOR t wors s

More information

CS 103 BFS Alorithm. Mark Redekopp

CS 103 BFS Alorithm. Mark Redekopp CS 3 BFS Aloritm Mrk Rkopp Brt-First Sr (BFS) HIGHLIGHTED ALGORITHM 3 Pt Plnnin W'v sn BFS in t ontxt o inin t sortst pt trou mz? S?? 4 Pt Plnnin W xplor t 4 niors s on irtion 3 3 3 S 3 3 3 3 3 F I you

More information

An Efficient FPGA Implementation of the Advanced Encryption Standard Algorithm G. Mohan 1 K. Rambabu 2

An Efficient FPGA Implementation of the Advanced Encryption Standard Algorithm G. Mohan 1 K. Rambabu 2 IJSRD - Intrntionl Journl or Sintii Rsrh & Dvlopmnt Vol., Issu, ISSN (onlin): - An Eiint FPGA Implmnttion o th Avn Enryption Stnr Algorithm G. Mohn K. Rmu M.Th Assistnt Prossor Dprtmnt o Eltronis n ommunition

More information

Garnir Polynomial and their Properties

Garnir Polynomial and their Properties Univrsity of Cliforni, Dvis Dprtmnt of Mthmtis Grnir Polynomil n thir Proprtis Author: Yu Wng Suprvisor: Prof. Gorsky Eugny My 8, 07 Grnir Polynomil n thir Proprtis Yu Wng mil: uywng@uvis.u. In this ppr,

More information

Problem Set 3 Solutions

Problem Set 3 Solutions CSE Dsign n Anlysis of Switing Systms Jontn Turnr Prolm St Solutions. Consir t sign of port swit, s on suivi us wit knokout onntrtors t t output. Assum tt t links oprt t G/s n tt t iruit tnology n support

More information

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari Grphs CSC 1300 Disrt Struturs Villnov Univrsity Grphs Grphs r isrt struturs onsis?ng of vr?s n gs tht onnt ths vr?s. Grphs n us to mol: omputr systms/ntworks mthm?l rl?ons logi iruit lyout jos/prosss f

More information

Jonathan Turner Exam 2-10/28/03

Jonathan Turner Exam 2-10/28/03 CS Algorihm n Progrm Prolm Exm Soluion S Soluion Jonhn Turnr Exm //. ( poin) In h Fioni hp ruur, u wn vrx u n i prn v u ing u v i v h lry lo hil in i l m hil o om ohr vrx. Suppo w hng hi, o h ing u i prorm

More information

Indices. Indices. Curriculum Ready ACMNA: 209, 210, 212,

Indices. Indices. Curriculum Ready ACMNA: 209, 210, 212, Inis Inis Curriulum Ry ACMNA: 09, 0,, 6 www.mtltis.om Inis INDICES Inis is t plurl or inx. An inx is us to writ prouts o numrs or pronumrls sily. For xmpl is tully sortr wy o writin #. T is t inx. Anotr

More information

Physics 222 Midterm, Form: A

Physics 222 Midterm, Form: A Pysis 222 Mitrm, Form: A Nm: Dt: Hr r som usul onstnts. 1 4πɛ 0 = 9 10 9 Nm 2 /C 2 µ0 4π = 1 10 7 tsl s/c = 1.6 10 19 C Qustions 1 5: A ipol onsistin o two r point-lik prtils wit q = 1 µc, sprt y istn

More information

Self-Adjusting Top Trees

Self-Adjusting Top Trees Th Polm Sl-jsting Top Ts ynmi ts: ol: mintin n n-tx ost tht hngs o tim. link(,w): ts n g twn tis n w. t(,w): lts g (,w). pplition-spii t ssoit with gs n/o tis. ont xmpls: in minimm-wight g in th pth twn

More information

Greedy Algorithms, Activity Selection, Minimum Spanning Trees Scribes: Logan Short (2015), Virginia Date: May 18, 2016

Greedy Algorithms, Activity Selection, Minimum Spanning Trees Scribes: Logan Short (2015), Virginia Date: May 18, 2016 Ltur 4 Gry Algorithms, Ativity Sltion, Minimum Spnning Trs Sris: Logn Short (5), Virgini Dt: My, Gry Algorithms Suppos w wnt to solv prolm, n w r l to om up with som rursiv ormultion o th prolm tht woul

More information

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael.

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael. 0 Computr i Dsign or Eltroni Systms Ciruit Moling n si Grph Conptslgorithms Instrutor: Mri K. Mihl MKM - Ovrviw hviorl vs. Struturl mols Extrnl vs. Intrnl rprsnttions Funtionl moling t Logi lvl Struturl

More information

Announcements. Programming Project 4 due Saturday, August 18 at 11:30AM

Announcements. Programming Project 4 due Saturday, August 18 at 11:30AM Rgistr Allotion Announmnts Progrmming Projt 4 u Stury, August 18 t 11:30AM OH ll this wk. Ask qustions vi mil! Ask qustions vi Pizz! No lt sumissions. Pls vlut this ours on Axss. Your k rlly mks irn. Whr

More information

Layout Decomposition for Triple Patterning Lithography

Layout Decomposition for Triple Patterning Lithography Lyout Domposition or Tripl Pttrning Lithogrphy Bi Yu, Kun Yun, Boyng Zhng, Duo Ding, Dvi Z. Pn ECE Dpt. Univrsity o Txs t Austin, Austin, TX USA 7871 Cn Dsign Systms, In., Sn Jos, CA USA 9514 Emil: {i,

More information