Partitioning Algorithms. UCLA Department of Computer Science, Los Angeles, CA y Cadence Design Systems, Inc., San Jose, CA 95134

Size: px
Start display at page:

Download "Partitioning Algorithms. UCLA Department of Computer Science, Los Angeles, CA y Cadence Design Systems, Inc., San Jose, CA 95134"

Transcription

1 On Implmnttion Chois for Itrtiv Improvmnt Prtitioning Algorithms Lrs W. Hgn y, Dnnis J.-H. Hung n Anrw B. Khng UCLA Dprtmnt of Computr Sin, Los Angls, CA y Cn Dsign Systms, In., Sn Jos, CA Astrt Itrtiv improvmnt prtitioning lgorithms suh s thos u to Fiui n Mtthyss (FM) [2] n Krishnmurthy [5] xploit n int gin ukt t strutur in slting mouls tht r mov from on prtition to th othr. In this ppr, w invstigt thr gin ukt implmnttions n thir t on th prformn of th FM prtitioning lgorithm. Surprisingly, sltion from gin ukts mintin s Lst-In-First-Out (LIFO) stks ls to signintly ttr rsults thn sltion from gin ukts mintin rnomly (s in [5] [7]) or s First-In- First-Out (FIFO) quus. Our xprimnts show tht LIFO ukts rsult in 35% improvmnt ovr rnom ukts n 42% improvmnt ovr FIFO ukts. Furthrmor, liminting rnomiztion from th ukt sltion is of grtr nt to FM prformn thn ing th Krishnmurthy gin vtor. By omining insights from th LIFO gin ukts with thos of Krishnmurthy's originl work, nw highrlvl gin formultion is propos. This ltrntiv formultion rsults in furthr 16% rution in th vrg ut ost whn ompr irtly to th Krishnmurthy formultion for highr-lvl gins, ssuming LIFO orgniztion for th gin ukts. 1 Prliminris This ppr isusss th prolm of iprtitioning iruit ntlist hyprgrph G =(V; E), whr th st of mouls V is ivi into isjoint U n W to minimiz th numr of signl nts from E tht ross th ut. In proution softwr for iruit prtitioning, itrtiv improvmnt is nrly univrsl pproh, ithr s postprossing rnmnt to othr mthos or s mtho in itslf. Itrtiv improvmnt is s on lol prturtion of th urrnt solution n n ithr gry (th Krnighn-Lin mtho [3] [9] n its lgorithmi spups y Fiui n Mtthyss [2], Krishnmurthy [5] n Dutt [1]) or hill-liming (th simult nnling pproh of Kirkptrik t l.[4], Shn [10] n othrs). Virtully ll implmnttions will lso us multipl rnom strting ongurtions (\multi-strt") [6] [11] in This rsrh ws support in prt y NSF grnt MIP n mthing funs from High-Lvl Dsign Systms. orr to yil pritl prformn (\stility"). This ppr will fous on itrtiv improvmnt lgorithms whih r s on th gry strtgy: strt with urrnt fsil solution n itrtivly prtur it into nothr fsil solution, opting th prturtion s th nxt solution only if it improvs th ost funtion. Th typ of prturtion us trmins topology ovr th st of fsil solutions, known s nighorhoo strutur. For th ost funtion to \smooth" ovr th nighorhoo strutur, th prturtion (lso known s nighorhoo oprtor) shoul smll n \lol". Usul nighorhoo oprtors for grph/iruit prtitioning involv swpping pir of mouls or shifting singl moul ross th ut. Erly gry improvmnt mthos pply suh oprtors, n quikly n lol minim whih usully orrspon to poor solutions. In 1970, Krnighn n Lin [3] introu wht is oftn sri s th rst \goo" grph prtitioning huristi. Th Krnighn-Lin (KL) lgorithm uss pir-swpping, n pros in psss. During h pss, vry moul is mov xtly on. At th ginning of th pss, ll mouls r \unlok" n th gin (i.., th rs in ut nts tht woul rsult from moving givn moul to th othr prtition) is lult for h of th n = jv j mouls. Thn, th pir of unlok mouls in U n W with highst omin gin is foun y srhing through th O(n 2 ) possil pirs. Aftr th slt mouls r swpp, thy om \lok" n th lgorithm upts oth th ost of th nw prtition n th gins of th rmining unlok mouls. This pross is itrt until ll th mouls r lok, t whih point th lowst-ost prtition nountr ovr th ntir pss is rstor n rturn. Anothr pss is thn xut using th rsult from th prvious pss s its strting point; th lgorithm trmints whn pss fils to improv th ost funtion. Th vntg of th KL lgorithm ovr gry pir-swpping is tht it is in som sns l to mov out of lol minim. This ours us th pir of mouls with highst omin gin is lwys swpp, vn if this omin gin is ngtiv. Howvr, if w onsir ll th

2 solutions tht r rhl within singl pss of th lgorithm to \nighors" of th strting solution, thn th KL lgorithm is still gry. Th min isvntgs of th KL lgorithm, s prsnt in [3], wr (i) tht it only works on grphs n (ii) tht it is omputtionlly xpnsiv. Although th numr of psss in most ss is rltivly low, th KL lgorithm rquirs vlution of O(n 2 ) swps for vry mov, rsulting in omplxity pr pss of O(n 2 log n). Shwikrt n Krnighn [9] xtn KL to hyprgrphs, ut i not improv th tim omplxity of th lgorithm. 1 Th FM Algorithm In 1982, Fiui n Mtthyss [2] prsnt KL-inspir lgorithm whih ru th tim pr pss to linr in th siz of th ntlist (i.., O(p) whr p is th totl numr of pins). Th Fiui- Mtthyss (FM) lgorithm is vry similr to KL: (i) FM lso prforms psss within whih h moul is mov xtly on; (ii) FM lso rors ll solutions nountr uring th pss n rturns th st on; n (iii) FM lso ontinus to prform psss until pss fils to improv th ost funtion. Th primry irn twn th KL n FM lgorithms lis in th nighorhoo oprtor. Inst of swpping pir of mouls, FM movs singl moul t tim. In othr wors, th gin lists r srh for singl moul whih hs highst gin. This sutl hng llows for signint improvmnt in runtim with littl loss in solution qulity. Fiui n Mtthyss mortiz th ost of upting th moul gins, suh tht th totl ost of ning th highst-gin moul is O(p) pr pss. Th nling t strutur is n rry of \gin ukts" whih groups th mouls of givn prtition oring to thir gins. Krishnmurthy's Extnsion to FM Ovr th pst, FM hs om prhps th singl most wily us n it prtitioning lgorithm in th VLSI CAD r. Mny works hv invstigt possil improvmnts n xtnsions. On ommonly-it xtnsion is tht of Krishnmurthy [5], who show how on oul intly introu \look-h" into th FM lgorithm to improv tirking whn th highst-gin ukt ontins mor thn on moul. Spilly, Krishnmurthy xtns th gin vlu of moul intoginvtor whih 1 Th rution from O(n 3 ) to O(n 2 log n) is hiv y mintining sort list of osts. Rntly, Dutt [1] prsnt spup of th originl KL lgorithm, ll QuikCut, whih uss n improv t strutur suh tht only O( 2 ) no pirs n to xmin to n th pir with mximum gin ( is th mximum no gr). As rsult, QuikCut hs tim omplxity of only O(mx(; log(n))), whr is th numr of gs in th grph. QuikCut urrntly works only on grphs, ut n xtnsion to hyprgrphs sms possil. givs squn of potntil gin vlus orrsponing to vrious numrs of movs into th futur. Krishnmurthy ns th ining numr U (s) of signl nt s with rspt to prtition U to th numr of unlok mouls of s in prtition U, unlss thr is lok moul of s in prtition U, in whih s U (s) =1. Intuitivly, th ining numr U (s) is msur of how iult it is to mov nt s out of prtition U. Th ining numr W (s) is similrly n. Th k-th lvl gin k (v i ) of moul v i 2 U is thn givn y 2 k (v i )= jfs 2 Ejv i 2 s; U (s) =k; W (s) > 0gj, jfs 2 Ejv i 2 s; U (s) > 0; W (s) =k, 1gj Eh lmnt k (v i ) in th gin vtor orrspons to th k-th lvl gin of moul v i. Not tht th rstlvl gin 1 (v i ) orrspons to th gin us in th FM lgorithm. Th intuition hin th highr-lvl gins k, with k>1, is tht th positiv trm ounts th numr of nts whih will hv ining numr k, 1 ftr th mov, whil th ngtiv trm ounts th numr of nts with urrnt ining numr k, 1whihwill hv ining numr qul to 1 ftr th mov. In othr wors, th positiv trm ounts nts with ining numr k, 1 tht r \rt" y th mov; th ngtiv trm ounts nts with ining numr k, 1 tht r \stroy" y th mov. (Th rt nts li on th si tht th moul is moving \from", n th stroy nts li on th si tht th moul is moving \to".) Krishnmurthy's mtho uss lxiogrphi orring of th vtors ( 1, 2, 3, :::) to rk tis whn n FM gin ukt ontins mor thn on moul. Krishnmurthy ompr his FM plus highr-lvl gin (FM+HL) lgorithm with th originl FM lgorithm n foun tht ing sonn thir-lvl gins improv th vrg solution qulity, with n omputtionl xpns of only O(kp), whr k is th numr of vlus mintin in (i.., th siz of) th gin vtor. This ws onrm y Snhis [7], who xtn FM+HL to multi-wy prtitioning. 2 Ti-Brking in th FM Algorithm During typil pss in th FM lgorithm, thr r usully mny tis (i.., th highst-gin ukt will ontin mor thn on moul). Figur 1 shows th numr of mouls in th highst-gin ukt t h mov throughout th rst pss of FM for th Primry1 tst s (w plot th vrg n mximum ovr 1000 runs). This stion invstigts how th mtho us 2 Th nottion us for th Krishnmurthy formul r pt from [5]. Not tht in orr to hnl 1-pin nts orrtly, th trm U (s) > 0 shoul to hng to U (s) > 1. Howvr, 1-pin nts n lso limint whil ring in th ntlist, oviting th n for suh hng.

3 to hoos ll (i.., moul) from th highst-gin ukt, n th mtho us to upt lls into gin ukts, will togthr t th prformn of th FM lgorithm mximum vrg Figur 1: Numr of mouls in th highst-gin ukt uring th rst pss of FM for tst s Primry1. Th vrg n mximum numrs wr gnrt from 1000 sprt FM runs. 2.1 Ti-Brking Shms In th originl ppr sriing th FM lgorithm [2], th gin ukts onsist of ouly-link lists. To intify th ll to mov, Fiui n Mtthyss onsir th rst ll in th highst-gin ukt of h prtition. Figur 2 rprous th \MAXGAIN" ukt us in th lgorithm sription of [2]; not tht this ukt hs only pointr to th h of th list. Thus, it is rsonl to infr tht whn slting ll to mov from th highst-gin ukt, Fiui n Mtthyss slt th ll t th h of th list. Suh n infrn is support y th ft tht this oprtion must prform in O(1) tim in orr for th omplxity of th lgorithm to rmin t O(p). Choosing th rst ll in th list stiss this omplxity rquirmnt. With rspt to insrting n upt ll into nw ukt, [2] rmovs ll from its urrnt list n movs it to th h of its nw ukt list. Consiring th rmovl n insrtion prours togthr, w s tht th gin ukts funtion s LIFO stks (rmov t h, insrt t h), ut oul just s sily funtion s FIFO quus (rmov t h, insrt t til) if pointr to th til of th list is inorport into th t strutur. Fiui n Mtthyss o not isuss th implitions of th hoi of ukt orgniztion on thir lgorithm's prformn. Howvr, s w shll show, this hoi hs signint t. Intrstingly, nithr Krishnmurthy nor Snhis points out ny hng in th ti-rking huristi us to slt mong lls with intil highr-lvl gins. Th nturl infrn is tht thir works lso +pmx MAX GAIN -pmx CELL ll# n ll#... Figur 2: Th gin ukt list strutur s shown in [2]. us LIFO mhnism, following th originl FM lgorithm sription. Howvr, in th o istriut y Snhis [8], it is lr tht th highst-gin moul is slt rnomly in th vnt of tis. Snhis in [7] nvr isusss th onsquns of this hng, ut writs: \W lso rnomiz ritrry hois in th lgorithm n prform numr of runs on h ntwork prtition t h irnt lvl" (pg 68, right olumn, rst prgrph). A similr sttmnt ismy Krishnmurthy [5] (pg 442, lft olumn, rst prgrph): \W osrv tht singl run woul not provi suint vin to ompr th rsults; for h of ths lgorithms, ing huristi in ntur involvs mking rtin ritrry hois, usully in th form of slting ny on lmnt from st ontining mor thn on lmnt. Thus, w rnomiz suh ritrry hois n prform numr of runs." Tht possily oth of ths works introu rnom ti-rking in ompring FM+HL to th originl FM is not trivil. Rnomiztion not only inrss th tim omplxity of th lgorithm ut, mor ritilly, pls into qustion th onlusions rwn from th xprimntl rsults. W hv xmin how th \ovious" ti-rking mhnism propos y Fiui n Mtthyss [2] omprs with ltrntiv shms. In prtiulr, w hv ompr LIFO sltion with rnom sltion (us y Snhis [7]) n FIFO sltion (n ltrntiv orgniztion with omplxity similr to LIFO). Our tst is th o istriut y Snhis [8] with pproprit moitions m for hnling LIFO n FIFO sltion. In ll of our xprimnts, w ssum h nohs unit r, n w onstrin th prtition sizs ju j n jw j to ir y t most 1.

4 2.2 Exprimntl Rsults Th thir olumn of Tl 1 lrly shows th ffts of th sltion mthoology. 3 Surprisingly, th FIFO shm is no ttr thn rnom sltion. Th LIFO shm givs onsirl improvmnt ovr rnom sltion. On possil xplntion my tht orgnizing th ukts suh tht \most rntly visit" mouls r pl nr th ginnings of th gin ukts impliitly uss nighorhoos (or prhps lustrs) of mouls to mov togthr. Furthrmor, sin thr r two gin struturs, on for h prtition, it is possil for h prtition to \pull" on irnt lustrs whil mintining th ln. If ths lustrs r non-intrfring, i.., wily sprt, mor of th rly movs will rsult in positiv gin, nling th urrnt pss to rh lowr-ost point in th solution sp. In othr wors, within h pss th solution ost urv will hv rltivly shrpr lin, n sty tlowr osts s it rturns k to th initil ost. 4 Ckt # Krishnmurthy lvls (#nos) Mtho k =1 k =2 k =3 k =4 Prim1 LIFO (833) RAND FIFO strut LIFO (1952) RAND FIFO Prim2 LIFO (3014) RAND FIFO iom LIFO (6514) RAND FIFO in2 LIFO (12637) RAND FIFO in3 LIFO (15433) RAND FIFO vq.sml LIFO (21918) RAND FIFO vq.lrg LIFO (25178) RAND FIFO % Impr. LIFO vs. RAND RAND FIFO Tl 1: Avrg utsiz rsults for 100 runs of FM (olumn 3) n Krishnmurthy highr lvl gins (olumns 4-6) using LIFO (Lst-In-First- Out), rnom n FIFO (First-In-First-Out) orgniztion shms for th gin ukts. 3 For sp rsons, ll tls givvrg utsiz rsults ovr 100 runs. Minimum utsiz rsults r qulittivly similr n r sprtly vill. 4 Not tht for iprtitioning, th ost t th n of th pss is xtly th sm s th ost t th ginning of th pss, mning tht improvmnt rsults from n initil rs in ost uring th pss, follow y orrsponing inrs in ost ltr in th pss. Columns 4-6 of Tl 1 show th ts of LIFO, rnom n FIFO sltion on highr-lvl gins s n y Krishnmurthy [5]. Introuing sonlvl (k = 2) gin n in som ss thir-lvl (k = 3) gin sms to improv th solution qulity for rnom n FIFO sltion. For LIFO sltion, w notth following: For onstnt k, th LIFO rsults r onsistntly ttr thn th rnom or FIFO rsults. For h of th tst ss, th k = 1 (FM) rsults using LIFO sltion r signintly ttr thn th rsults for ny k using rnom or FIFO sltion. In othr wors, th gin ukt orgniztion hs grtr t on solution qulity thn th numr of Krishnmurthy gin lmnts onsir. For som lrg tst ss (iom, inustry2 n vq.smll), th k = 1 (FM) rsults r ttr thn th k >1 rsults unr th LIFO shm. Rll tht th Krishnmurthy gin formul fvors moul in nt tht is lok to th si th moul is moving to, n isfvors moul in n unlok nt hving fw mouls on th si th moul is moving to. In som sns, th LIFO orgniztion hs similr funtion ut with no pnlty for moving moul tht longs to unlok nts. Tht Krishnmurthy gins osionlly prform wors thn LIFO FM suggsts tht following prviously mov mouls (i.., moving to th si to whih nt is lok) is mor importnt thn \stying wy from th minority" (i.., not moving to th si hving vry fw mouls of th inint nts). 3 A Krishnmurthy Vrint Th ov osrvtion { tht it my mor importnt tomov mouls whih r inint tolok nts { suggsts n ltrntiv multi-lvl gin formultion. If nt is ut, n only on prtition ontins lok mouls inint to this nt, w will giv highr priority to th mouls in th prtition with no lok mouls inint to th nt. W n implmnt this y inrsing th gin lmnts of moul h tim it is inint to nt whih oms lok to th opposit prtition. For instn, ssum moul is ing vlut for mov from prtition U to prtition W. If nt whih ontins moul hs t lst on moul lok in prtition W, n only fr mouls in prtition U, w will inrs ll k-th lvl gins y 1, whr k 2. W voi hnging th rst-lvl gin sin this shoul lwys rt th \tul" gin rsulting from mov of this moul. Howvr, w hoos to 1 to ll th othr gin lvls in orr to mk sur tht th inrs priority will hv n t on ll ti-rking instns.

5 Our ltrntiv gin formultion n xprss s follows for k 2: k (v i )= jfs 2 Ejv i 2 s; U (s) =k; W (s) > 0gj, jfs 2 Ejv i 2 s; U (s) > 0; W (s) =k, 1gj + jfs 2 Ejv i 2 s; 0 < U (s) < 1; W (s) =1gj s 1 : s 2 : Gin vtor of moul : in Krishnmurthy in our nw formultion (-1,0,0,0,1) (-1,0,0,0,1) (0,0,0,1,0) (0,1,1,2,1) Th rst two trms r intil to th formultion us y Krishnmurthy[5]. Th thir trm is nw n rprsnts th \ttrtion" to lok mouls. Figur 3 omprs th Krishnmurthy gin vtor with th gin vtor rsulting from our nw formultion. In th ginning, n unut nt ontins mouls ; ; ; n n oth gin vtors for moul r (,1; 0; 0; 0; 1). Aftr moul is mov to th othr prtition n oms lok, th gin vtor of moul is hng to (0; 0; 0; 1; 0) in Krishnmurthy's formultion, ut is hng to (0; 1; 1; 2; 1) in our formultion. Whn w rh th s whr moul is th only rmining moul (s 5), th gin vtors r (1; 0; 0; 0; 0) n (1; 1; 1; 1; 1) for Krishnmurthy's n our formultions, rsptivly. Not tht in this lst s, th Krishnmurthy gin vtor will not istinguish twn moul n som othr moul x hving gin vtor (1; 0; 0; 0; 0), whr non of th nts inint tox hv lok mouls. By ontrst, our gin formultion istinguishs twn mouls n x sin moul x will hv ginvtor (1; 0; 0; 0; 0)inourformultion. This is rguly n importnt irn: in most ss on woul prfr to \unut" th lok nt inint to moul for ommitting th unlok nt inint to moul x. Our xprimntl rsults lso sm to support this viw. Exprimntl Rsults W tst our nw gin formultion using th sm LIFO, rnom n FIFO sltion shms sri in Stion 2. Th rsults r shown in Tl 2. Not tht th thir olumn (pur FM) rsults r th sm s in th thir olumn of Tl 1 sin our nw formultion os not t th rst-lvl gin. As ws osrv with th Krishnmurthy formultion, th rsults using LIFO sltion shm with our nw formultion r signintly ttr thn th rsults using rnom or FIFO sltion shms. Howvr, th son-lvl gin rsults (olumn 4) using rnom n FIFO sltion shms show signint improvmnt ovr th pur FM rsults (olumn 3) with our nw formultion. This is in shrp ontrst to th rsults using th Krishnmurthy formultion, whih i not show muh improvmnt with highr-lvl gins using ithr rnom or FIFO sltion. It my tht our nw formultion tns to omput highr-lvl gins mor rfully, thus oviting th n for \goo" sltion shm (i.., th rsults for rnom n FIFO will mor losly mirror th rsults of LIFO s th lngth of th gin vtors inrss). Also, our nw formultion xpliitly givs highr priority to th nighors s 3 : s 4 : s 5 : (0,0,1,0,0) (0,1,2,1,1) (0,1,0,0,0) (0,2,1,1,1) (1,0,0,0,0) (1,1,1,1,1) Figur 3: Evolution of th gin vtor for moul oring to th Krishnmurthy lvl gin formultion n our nw gin formultion. of mov mouls, whih is similr to th t of th LIFO sltion shm. Tl 3 omprs LIFO rsults using our nw formultion ginst LIFO rsults using th originl Krishnmurthy formultion. In som ss our formultion ls to sustntil rution in th siz of th uts foun. 4 Conlusion W hv foun tht implmnttion hois ply n importnt rol for oth th FM [2] n Krishnmurthy [5] lgorithms. In prtiulr, sltion from gin ukts s on th impliit orring of link list rprsnttion is highly vntgous, n rsults in improv prtitioning solutions. W n tht liminting rnomiztion from th ukt sltion not only improvs th solution qulity, ut hs grtr impt on FM prformn thn ing th Krishnmurthy gin vtor. Orgnizing th gin ukts s LIFO (Lst-In-First-Out) stks ls to 35% improvmnt vrsus rnom ukt orgniztion n 42% improvmnt vrsus FIFO (First-In-First-Out) quus. W hv lso prsnt n ltrntiv highrlvl gin formultion, s on Krishnmurthy's pproh, whih inorports som of th intuition hin th LIFO orgniztion. This ltrntiv formultion rsults in furthr 16% rution in th vrg ut ost whn ompr irtly to th Krishnmurthyformultion for highr-lvl gins, ssuming LIFO orgniztion for th gin ukts. W liv thtmuh mor til stuy is nssry to ttr unrstn th t of \ovious" hois in th FM implmnttion on th solution

6 Ckt # Krishnmurthy lvls (#nos) Mtho k =1 k =2 k =3 k =4 Prim1 LIFO (833) RAND FIFO strut LIFO (1952) RAND FIFO Prim2 LIFO (3014) RAND FIFO iom LIFO (6514) RAND FIFO in2 LIFO (12637) RAND FIFO in3 LIFO (15433) RAND FIFO vq.sml LIFO (21918) RAND FIFO vq.lrg LIFO (25178) RAND FIFO % Impr. LIFO vs. RAND RAND FIFO Tl 2: Avrg utsiz rsults for 100 runs of our nw multi-lvl gin formultion (olumns 4-6) using LIFO, rnom, n FIFO orgniztion shms for th gin ukts. qulity n runtim. Thus, our futur work invstigts not only furthr ti-rking mhnisms, ut lso intrsting ts tht rsult from th orr impos y th ntlist rprsnttion n th list of fr mouls. 5 Stuis of th LIFO orgniztion shm in multi-wy prtitioning n in mor sophistit prtitioning pprohs suh sthtwo-phs FM mthoology r lso unr invstigtion. Rfrns [1] S. Dutt. Nw fstr krnighn-lin-typ grphprtitioning lgorithms. In Pro. IEEE Intl. Conf. Computr-Ai Dsign, pgs 370{377, [2] C. M. Fiui n R. M. Mtthyss. A linr tim huristi for improving ntwork prtitions. In Pro. ACM/IEEE Dsign Automtion Conf., pgs 175{181, [3] B. W. Krnighn n S. Lin. An int huristi prour for prtitioning grphs. Bll Syst. Th. J., 49(2):291{307, Ckt # Krishnmurthy lvls (#nos) Mtho k =1 k =2 k =3 k =4 Prim1 Ours (833) Krish strut Ours (1952) Krish Prim2 Ours (3014) Krish iom Ours (6514) Krish in2 Ours (12637) Krish in3 Ours (15433) Krish vq.sml Ours (21918) Krish vq.lrg Ours (25178) Krish % Impr. ovr Krish Tl 3: Rsults ompring our nw multi-lvl gin formultion with Krishnmurthy's multilvl gin formultion using LIFO orgniztion for th gin ukts. Avrgs r s on 100 runs. [4] S. Kirkptrik, C. D. Gltt, Jr., n M. P. Vhi. Optimiztion y simult nnling. Sin, 220:671{680, [5] B. Krishnmurthy. An improv min-ut lgorithm for prtitioning VLSI ntworks. IEEE Trns. on Computrs, 33(5):438{446, [6] T. Lngur. Comintoril Algorithms for Intgrt Ciruit Lyout. Wily-Tunr, [7] L. A. Snhis. Multipl-wy ntwork prtitioning. IEEE Trns. on Computrs, 38:62{81, [8] L. A. Snhis, prsonl ommunition, Mrh [9] D. G. Shwikrt n B. W. Krnighn. A propr mol for th prtitioning of ltril iruits. In Pro. ACM/IEEE Dsign Automtion Conf., pgs 57{62, [10] C. Shn. Plmnt n Glol Routing of Intgrt Ciruits Using Simult Annling. PhD thsis, Univ. of Cliforni, Brkly, [11] Y.-C. Wi n C.-K. Chng. Towrs int hirrhil signs y rtio ut prtitioning. In Pro. IEEE Intl. Conf. on Computr-Ai Dsign, pgs 298{301, Th input formt of ntlist is typilly funtion of how th othr vlopmnt tools rprsnt n output th iruit, n my group rlt nts or mouls togthr or fr prt. This rltnss/unrltnss will in turn rt within th t struturs us y FM to stor th ntlist informtion.

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

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

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

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

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

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

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

, 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

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

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

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

(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

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

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

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

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

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

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

12. Traffic engineering

12. Traffic engineering lt2.ppt S-38. Introution to Tltrffi Thory Spring 200 2 Topology Pths A tlommunition ntwork onsists of nos n links Lt N not th st of nos in with n Lt J not th st of nos in with j N = {,,,,} J = {,2,3,,2}

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

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

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

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

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

COMP108 Algorithmic Foundations

COMP108 Algorithmic Foundations Grdy mthods Prudn Wong http://www.s.liv..uk/~pwong/thing/omp108/01617 Coin Chng Prolm Suppos w hv 3 typs of oins 10p 0p 50p Minimum numr of oins to mk 0.8, 1.0, 1.? Grdy mthod Lrning outoms Undrstnd wht

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

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)} Introution Computr Sin & Enginring 423/823 Dsign n Anlysis of Algorithms Ltur 03 Elmntry Grph Algorithms (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) I Grphs r strt t typs tht r pplil to numrous

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

DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski

DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski Dut with Dimons Brlt DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Lsli Roglski Photo y Anrw Wirth Supruo DUETS TM from BSmith rt olor shifting fft tht mks your work tk on lif of its own s you mov! This

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

Numbering Boundary Nodes

Numbering Boundary Nodes Numring Bounry Nos Lh MBri Empori Stt Univrsity August 10, 2001 1 Introution Th purpos of this ppr is to xplor how numring ltril rsistor ntworks ffts thir rspons mtrix, Λ. Morovr, wht n lrn from Λ out

More information

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)} s s of s Computr Sin & Enginring 423/823 Dsign n Anlysis of Ltur 03 (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) s of s s r strt t typs tht r pplil to numrous prolms Cn ptur ntitis, rltionships twn

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

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

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

CS September 2018

CS September 2018 Loil los Distriut Systms 06. Loil los Assin squn numrs to msss All ooprtin prosss n r on orr o vnts vs. physil los: rport tim o y Assum no ntrl tim sour Eh systm mintins its own lol lo No totl orrin o

More information

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

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem) 4/25/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 2 Eulr s rig prolm

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

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

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12 Aministrivi: CS61B Ltur #33 Autogrr will run this vning. Toy s Rings: Grph Struturs: DSIJ, Chptr 12 Lst moifi: W Nov 8 00:39:28 2017 CS61B: Ltur #33 1 Why Grphs? For xprssing non-hirrhilly rlt itms Exmpls:

More information

Section 10.4 Connectivity (up to paths and isomorphism, not including)

Section 10.4 Connectivity (up to paths and isomorphism, not including) Toy w will isuss two stions: Stion 10.3 Rprsnting Grphs n Grph Isomorphism Stion 10.4 Conntivity (up to pths n isomorphism, not inluing) 1 10.3 Rprsnting Grphs n Grph Isomorphism Whn w r working on n lgorithm

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

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

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

# 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

Section 3: Antiderivatives of Formulas

Section 3: Antiderivatives of Formulas Chptr Th Intgrl Appli Clculus 96 Sction : Antirivtivs of Formuls Now w cn put th is of rs n ntirivtivs togthr to gt wy of vluting finit intgrls tht is ct n oftn sy. To vlut finit intgrl f(t) t, w cn fin

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

(a) v 1. v a. v i. v s. (b)

(a) v 1. v a. v i. v s. (b) Outlin RETIMING Struturl optimiztion mthods. Gionni D Mihli Stnford Unirsity Rtiming. { Modling. { Rtiming for minimum dly. { Rtiming for minimum r. Synhronous Logi Ntwork Synhronous Logi Ntwork Synhronous

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

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

Multi-Way VLSI Circuit Partitioning Based on Dual Net Representation

Multi-Way VLSI Circuit Partitioning Based on Dual Net Representation Multi-Wy VLSI Ciruit Prtitioning Bs on Dul Nt Rprsnttion Json Cong Dprtmnt of Computr Sin Univrsity of Cliforni, Los Angls, CA 90024 Wilurt Lio n Nrynn Shivkumr Dprtmnt of Computr Sin Stnfor Univrsity,

More information

Page 1. Question 19.1b Electric Charge II Question 19.2a Conductors I. ConcepTest Clicker Questions Chapter 19. Physics, 4 th Edition James S.

Page 1. Question 19.1b Electric Charge II Question 19.2a Conductors I. ConcepTest Clicker Questions Chapter 19. Physics, 4 th Edition James S. ConTst Clikr ustions Chtr 19 Physis, 4 th Eition Jms S. Wlkr ustion 19.1 Two hrg blls r rlling h othr s thy hng from th iling. Wht n you sy bout thir hrgs? Eltri Chrg I on is ositiv, th othr is ngtiv both

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

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

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

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

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

The Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ

The Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ h ln ony, hrunk th t ihr nr omputr in n nginring nivrsity of shington t omprssion onpts ossy t omprssion osslss t omprssion rfix os uffmn os th y 24 2 t omprssion onpts originl omprss o x y xˆ nor or omprss

More information

S i m p l i f y i n g A l g e b r a SIMPLIFYING ALGEBRA.

S i m p l i f y i n g A l g e b r a SIMPLIFYING ALGEBRA. S i m p l i y i n g A l g r SIMPLIFYING ALGEBRA www.mthltis.o.nz Simpliying SIMPLIFYING Algr ALGEBRA Algr is mthmtis with mor thn just numrs. Numrs hv ix vlu, ut lgr introus vrils whos vlus n hng. Ths

More information

Aquauno Video 6 Plus Page 1

Aquauno Video 6 Plus Page 1 Connt th timr to th tp. Aquuno Vio 6 Plus Pg 1 Usr mnul 3 lik! For Aquuno Vio 6 (p/n): 8456 For Aquuno Vio 6 Plus (p/n): 8413 Opn th timr unit y prssing th two uttons on th sis, n fit 9V lklin ttry. Whn

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

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

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

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

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

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

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

RAM Model. I/O Model. Real Machine Example: Nehalem : Algorithms in the Real World 4/9/13

RAM Model. I/O Model. Real Machine Example: Nehalem : Algorithms in the Real World 4/9/13 4//3 RAM Mol 5-853: Algorithms in th Rl Worl Lolity I: Ch-wr lgorithms Introution Sorting List rnking B-trs Bur trs Stnr thortil mol or nlyzing lgorithms: Ininit mmory siz Uniorm ss ost Evlut n lgorithm

More information

temporally share the same FPGA Large circuit PI s micro-cycle one user cycle PO s

temporally share the same FPGA Large circuit PI s micro-cycle one user cycle PO s Ciruit Prtitioning for Dynmilly Rongurl FPGAs Huiqun Liu n D. F. Wong Dprtmnt of Computr Sins Unirsity of Txs t Austin Austin, T 787 Emil: fhqliu, wongg@s.utxs.u Astrt Dynmilly rongurl FPGAs h th potntil

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

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

XML and Databases. Outline. Recall: Top-Down Evaluation of Simple Paths. Recall: Top-Down Evaluation of Simple Paths. Sebastian Maneth NICTA and UNSW

XML and Databases. Outline. Recall: Top-Down Evaluation of Simple Paths. Recall: Top-Down Evaluation of Simple Paths. Sebastian Maneth NICTA and UNSW Smll Pth Quiz ML n Dtss Cn you giv n xprssion tht rturns th lst / irst ourrn o h istint pri lmnt? Ltur 8 Strming Evlution: how muh mmory o you n? Sstin Mnth NICTA n UNSW

More information

5/7/13. Part 10. Graphs. Theorem Theorem Graphs Describing Precedence. Outline. Theorem 10-1: The Handshaking Theorem

5/7/13. Part 10. Graphs. Theorem Theorem Graphs Describing Precedence. Outline. Theorem 10-1: The Handshaking Theorem Thorm 10-1: Th Hnshkin Thorm Lt G=(V,E) n unirt rph. Thn Prt 10. Grphs CS 200 Alorithms n Dt Struturs v V (v) = 2 E How mny s r thr in rph with 10 vrtis h of r six? 10 * 6 /2= 30 1 Thorm 10-2 An unirt

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

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

Weighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths

Weighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths Dt Strutur LECTURE Shortt pth lgorithm Proprti of hortt pth Bllmn-For lgorithm Dijktr lgorithm Chptr in th txtook (pp ). Wight grph -- rminr A wight grph i grph in whih g hv wight (ot) w(v i, v j ) >.

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

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

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

Chem 104A, Fall 2016, Midterm 1 Key

Chem 104A, Fall 2016, Midterm 1 Key hm 104A, ll 2016, Mitrm 1 Ky 1) onstruct microstt tl for p 4 configurtion. Pls numrt th ms n ml for ch lctron in ch microstt in th tl. (Us th formt ml m s. Tht is spin -½ lctron in n s oritl woul writtn

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

A Low Noise and Reliable CMOS I/O Buffer for Mixed Low Voltage Applications

A Low Noise and Reliable CMOS I/O Buffer for Mixed Low Voltage Applications Proings of th 6th WSEAS Intrntionl Confrn on Miroltronis, Nnoltronis, Optoltronis, Istnul, Turky, My 27-29, 27 32 A Low Nois n Rlil CMOS I/O Buffr for Mix Low Voltg Applitions HWANG-CHERNG CHOW n YOU-GANG

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

Design Optimization Based on Diagnosis Techniques

Design Optimization Based on Diagnosis Techniques Dsign Optimiztion Bs on Dignosis Thniqus Anrs Vnris Mgy S. Air Irhim N. Hjj Univrsity of Toronto Motorol Univrsity of Illinois ECE Dprtmnt 77 W. Prmr ECE Dprtmnt n CSL Toronto, ON M5S 34 Austin, T 78729

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

Nefertiti. Echoes of. Regal components evoke visions of the past MULTIPLE STITCHES. designed by Helena Tang-Lim

Nefertiti. Echoes of. Regal components evoke visions of the past MULTIPLE STITCHES. designed by Helena Tang-Lim MULTIPLE STITCHES Nrtiti Ehos o Rgl omponnts vok visions o th pst sign y Hln Tng-Lim Us vrity o stiths to rt this rgl yt wrl sign. Prt sping llows squr s to mk roun omponnts tht rp utiully. FCT-SC-030617-07

More information

Efficient Broadcast in MANETs Using Network Coding and Directional Antennas

Efficient Broadcast in MANETs Using Network Coding and Directional Antennas Effiint Brost in MANETs Using Ntwork Coing n Dirtionl Antnns Shuhui Yng Dprtmnt of Computr Sin Rnsslr Polythni Institut Troy, NY 28 Ji Wu n Mihl Cri Dprtmnt of Computr Sin n Enginring Flori Atlnti Univrsity

More information

A PROPOSAL OF FE MODELING OF UNIDIRECTIONAL COMPOSITE CONSIDERING UNCERTAIN MICRO STRUCTURE

A PROPOSAL OF FE MODELING OF UNIDIRECTIONAL COMPOSITE CONSIDERING UNCERTAIN MICRO STRUCTURE 18 TH INTERNATIONAL CONFERENCE ON COMPOSITE MATERIALS A PROPOSAL OF FE MODELING OF UNIDIRECTIONAL COMPOSITE CONSIDERING UNCERTAIN MICRO STRUCTURE Y.Fujit 1*, T. Kurshii 1, H.Ymtsu 1, M. Zo 2 1 Dpt. o Mngmnt

More information

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations Mr Funtins Grphs, Pruts, & Rltins Unirt Grphs An unirt grph is pir f 1. A st f ns 2. A st f gs (whr n g is st f tw ns*) Friy, Sptmr 2, 2011 Ring: Sipsr 0.2 ginning f 0.4; Stughtn 1.1.5 ({,,,,}, {{,}, {,},

More information

C-201 Sheet Bar Measures 1 inch

C-201 Sheet Bar Measures 1 inch Janine M. lexander, P.. P.. No. 9, L 0 N. PRK RO, SUIT 0 HOLLYWOO, LORI 0 PHON: (9) - X: (9) 08- No.: 9 I ST SRIPTION Y GT VLVS SHLL RSILINT ST, MNUTUR TO MT OR X TH RQUIRMNTS O WW 09 (LTST RVISION) N

More information

Clustering for Processing Rate Optimization

Clustering for Processing Rate Optimization Clustring for Prossing Rt Optimiztion Chun Lin, Ji Wng, n Hi Zhou Eltril n Computr Enginring Northwstrn Univrsity Evnston, IL 60208 Astrt Clustring (or prtitioning) is ruil stp twn logi synthsis n physil

More information

In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions.

In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. Crystl Rports for Visul Stuio.NET In orr to lrn whih qustions hv n nswr orrtly: 1. Print ths pgs. 2. Answr th qustions. 3. Sn this ssssmnt with th nswrs vi:. FAX to (212) 967-3498. Or. Mil th nswrs to

More information

MULTIPLE-LEVEL LOGIC OPTIMIZATION II

MULTIPLE-LEVEL LOGIC OPTIMIZATION II MUTIPE-EVE OGIC OPTIMIZATION II Booln mthos Eploit Booln proprtis Giovnni D Mihli Don t r onitions Stnfor Univrsit Minimition of th lol funtions Slowr lgorithms, ttr qulit rsults Etrnl on t r onitions

More information

Decimals DECIMALS.

Decimals DECIMALS. Dimls DECIMALS www.mthltis.o.uk ow os it work? Solutions Dimls P qustions Pl vlu o imls 0 000 00 000 0 000 00 0 000 00 0 000 00 0 000 tnths or 0 thousnths or 000 hunrths or 00 hunrths or 00 0 tn thousnths

More information

Sybil Attacks and Defenses

Sybil Attacks and Defenses CPSC 426/526 Syil Attks n Dfnss Ennn Zhi Computr Sin Dprtmnt Yl Univrsity Rll: L-5 Rputtion systms: - Why w n rputtion/trust systms - Wht is glol rputtion mol - Wht is prsonliz rputtion mol - Cs stuis:

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

Announcements. These are Graphs. This is not a Graph. Graph Definitions. Applications of Graphs. Graphs & Graph Algorithms

Announcements. These are Graphs. This is not a Graph. Graph Definitions. Applications of Graphs. Graphs & Graph Algorithms Grphs & Grph Algorithms Ltur CS Fll 5 Announmnts Upoming tlk h Mny Crrs o Computr Sintist Or how Computr Sin gr mpowrs you to o muh mor thn o Dn Huttnlohr, Prossor in th Dprtmnt o Computr Sin n Johnson

More information

Formal Concept Analysis

Formal Concept Analysis Forml Conpt Anlysis Conpt intnts s losd sts Closur Systms nd Implitions 4 Closur Systms 0.06.005 Nxt-Closur ws dvlopd y B. Gntr (984). Lt M = {,..., n}. A M is ltilly smllr thn B M, if B A if th smllst

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

SOLVED EXAMPLES. be the foci of an ellipse with eccentricity e. For any point P on the ellipse, prove that. tan

SOLVED EXAMPLES. be the foci of an ellipse with eccentricity e. For any point P on the ellipse, prove that. tan LOCUS 58 SOLVED EXAMPLES Empl Lt F n F th foci of n llips with ccntricit. For n point P on th llips, prov tht tn PF F tn PF F Assum th llips to, n lt P th point (, sin ). P(, sin ) F F F = (-, 0) F = (,

More information