Problem Set 3 Solutions

Size: px
Start display at page:

Download "Problem Set 3 Solutions"

Transcription

1 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 mximum lok rt of MHz. Tis mns tt IPP must trnsmit lls on t lst tn prlll signl lins n tt OPP must riv lls on t lst input lins. T tn signl lins lving IPP n us in on of two wys. Eitr, n IPP n sn on ll t tim in prlll form ovr t tn signl lins, or n IPP n sn tn iffrnt lls onurrntly ovr t tn signl lins. In t first s, knokout onntrtor s inputs, wi r tn its wi. In t son s, knokout onntrtor s inputs, wi r on it wi. How mny outputs must t onntrtors v in of t two ss, to prou pkt loss proility of no mor tn wn t input lo is %? In t first s, t proility tt n output rivs i lls in givn yl is just n i n i n n i ( / ) ( / ), wr n=. T proility tt n rriving ll is isr is n n i n i = + ( i k) (/ n) ( / n) if t knokout onntrtor s k output, so w n to fin t i k i smllst vlu of k for wi n n i n ( ) (/ ) ( / ) i i k n n. T smllst su k is i= k + i wn n=. n In t son s, t proility of riving i lls is (/ n) ( / n) i t smllst vlu of k for wi n n i n ( ) (/ ) ( / ) i i k n n i= k + i k is wn n=. i n i, so w n to fin. T smllst su Wt os tis imply out t mmory nwit rquir t t output ports? Compr t ost of implmnting t knokout onntrtors in of t two ss. Wi sign o you tink is t ttr oi? Wy? T son sign rquirs totl of onntrtor outputs, so t nwit ntring t mmory is. G/s n t totl mmory nwit is. G/s. T first sign rquirs totl mmory nwit of G/s, lmost tims s mu. T tpts of t two signs v out t sm omplxity, wit t son ing prps littl lss. Tr is mor ontrol logi n for t son sign, ut t ovrll iffrn twn t two is likly to firly most. T son

2 sign is lrly t ttr oi. T rution in mmory nwit is vry signifint vntg.. Consir uss ll swit wit suivi us wit inputs n outputs. Suppos tt ll tim, ll rrivs on input wit proility p n tt ll is ssign rnomly to iffrnt output. Giv n xprssion for t proility tn givn ll tim, output rivs xtly on ll. ( p /) ( p /) = p( p /) Suppos t OPP t output s knokout onntrtor tt n forwr up to six lls pr ll tim into t OPP s ll uffr. Giv n xprssion proility tn givn ll tim, mor lls rriv t output tn n pl in t uffr. i i ( p /) ( p /) i= i Giv n xprssion for t proility tt n rriving ll is isr. ( / p) i= i ( i ) ( p /) ( p /) i. Consir rings ATM swit wit xtrnl links oprting t G/s. Assum tt t ring is its wi n tt t iruit tnology ing us supports pointtopoint lins oprting t up to MHz. If t swit s svn yts of intrnl r informtion to ll for sning it on t ring, ws t mximum vrg trffi lo tt n support on t outgoing links? Witout ovr, it woul./( ) = %, so wit ovr, is.*/(+)=./) or out.%. Assum t ring uss slott ring protool wit usy/il it, wr ring intrf wit ll to sn uss t first mpty slot tt ss to sn its ll. Suppos trffi is rriving t G/s t of inputs troug n tis rriving trffi is ll going to outputs troug. Wt frtion of its trffi is input tully l to sn? T ring n nl % of t trffi from links, so % of t trffi from. links. So inputs troug will l to forwr ll of tir input trffi, input will l to sn % of its input trffi n inputs n will unl to sn ny of tir trffi.. Consir sr uffr swit wit n inputs n n outputs. Assum tt tr is no limit on t vill uffr sp, tt t pkt lngts r xponntilly istriut, wit mn /µ n tt t tim twn pkt rrivls for outpus xponntilly istriut, wit mn /λ. Giv n xprssion for t proility tt t sr uffr ontins i pkts for prtiulr output. Unr t givn onitions, output n mol y n M/M/ quu, so t proility tt t sr uffr ontins i pkts for givn outpus ( ρ)ρ i wr ρ=λ/µ. i

3 Giv n xprssion for t proility tt t sr uffr ontins totl of i pkts, ssuming tt t numr of pkts going to t iffrnt outputs r inpnnt. In tis s, w v to onsir ll possil wys tt w n g pkts. So, t rquir xprssion is n i n i ( ρ ) ρ = ( ρ) ρ i + i + L+ in = i i + i + L+ in = i wr t summtion is ovr ll nonngtiv intgr vlus for i,...,i n tt up to i. If w ll tis quntity f(i,n), w n o t omputtion itrtivly using t qution wr f(j,)=( ρ)ρ j. f ( i, n) = j i f ( j,) f ( i j, n ) Us tis xprssion to stimt t mount of mmory n to nsur tt t pkt loss proility is no mor tn, wn n= n t input lo is %. Compr tis to t mount of mmory you woul n if t mmory wr not sr. A Visul Bsi progrm to omput f(,n) + + f(i,n) is sown low. Using tis, w fin tt t proility tt t quu ontins mor tn pkts is just unr. For port sr uffr swit, t proility tt t sr uffr s mor tn pkts is just unr. So t sr uffr swit ns storg for pkts, wil swit wit sprt uffrs for output woul n =, wi is out. tims s mny s t sr uffr swit ns. Not tt tis mto for omputing t rquir uffr siz ovrstimts wt s rlly n y smll mount. Funtion suf(ro As Doul, i As Intgr, n As Intgr) As Doul ' Comput t proility tt sr uffr swit wit n ports ' n uniform rnom input lo of ro, s lss tn or qul to ' i pkts in its uffr, ssuming no limit on t numr of pkts ' tt n stor. Dim, j, r As Intgr Dim pi(, ) As Doul Dim s As Doul pi(, ) = ro For j = To i pi(j, ) = ro * pi(j, ) Nxt j For = To n For j = To i pi(j, ) = For r = To j pi(j, ) = pi(j, ) + pi(r, ) * pi(j r, ) Nxt r Nxt j Nxt s = For j = To i s = s + pi(j, n) Nxt j suf = s En Funtion

4 Consir wt ppns wn TCP trffi is ppli to t sr uffr swit. Spifilly, ssum tt n/ of t outputs r riving trffi from lrg numr of TCP strms, wit lrg klog of trffi. Also ssum tt tr is singl quu in t sr uffr for of t outputs, n tt rriving pkts r isr if t quu is full. Qulittivly sri t quuing vior of t sr uffr swit in tis sitution. Estimt t mount of mmory n y t swit to nsur tt non of t usy output links xprins unrflow, ssuming tt t ntwork roun trip tim is ms n tt t output links oprt t G/s. Compr tis to t mount of mmory n in swit tt os not sr t mmory mong t iffrnt outputs. In tis sitution, t iffrnt TCP flows going out on ll t outputs n potntilly om synroniz, sin wn t sr mmory fills up, ll t flows r likly to xprin pkt loss n ru tir winow sizs togtr. To prvnt t sr uffr from unrflowing, w n mmory siz ts omprl to t prout of t output link nwit tims t ntwork rountrip ly. If t roun trip tim is ms n t output links r G/s, tis oms to out Mits for ongst link. If w llow for lfson s wort of uffring, tis numr grows to Mits pr ongst link. Sin lf of t links r ongst, tis rus t mmory usg y just ftor of, n sin mor tn n/ links oul ongst, it s not lr tt w woul vn gt tis rution, in prti. Consquntly for ontinuously klogg TCP flows, tr is littl gin otin from t sr uffr. Bs on ll your nswrs ov, vlut t vntgs n isvntgs of sr uffr swits, rltiv to swits wit sprt mmoris for output. Sr uffring works wll, so long s t trffi going to iffrnt outputs is unorrlt. Sin most TCP flows omplt tir t trnsmission for going troug multipl rouns of ongstion voin, tir vior is mor lik tt prit y t first nlysis, tn y t son. Tis suggsts tt tr is signifint rution in mmory tt n otin using sr uffring. Tis my not lwys l to signifint rution in ost, sin ommril mmory omponnts oftn o not v t il omintion of IO nwit n mmory pity. For ig sp routrs, mmory nwit is oftn t limiting ftor, foring routr signr to us mor mmory omponnts in prlll to gt t rquir nwit, ling to n ovrsupply of mmory pity. In tis sitution, tr is lss to gin from sring t mmory mong iffrnt ports.. Consir rossrs swit wit ports in wi IPP s singl quu n uring ritrtion yl, t IPPs ontn for t output tt t first ll in t quu is rss to. If vry input s ll in its quu n if t outputs ts lls r rss to r slt t rnom, ws t proility tt no lls r irt to prtiulr output? ( / n ) n = ( / ) =. Ws t xpt numr of outputs tt no lls r rss to?.n =. Suppos tt IPP s two quus, on for lls rss to vnnumr outputs n on for lls rss to onumr outputs. Assum tt vry IPP s ll in

5 of its two quus n tt t rsss of lls in t vn quus r rnomly slt from mong t vn outputs n tt t rsss of lls in t o quus r rnomly slt from mong t o outputs. Ws t proility tt givn output s no lls rss to it? ( / ) =. Ws t xpt numr of outputs tt no lls r rss to?.n =. Consir systm in wi IPP s su n ovn quu rrngmnt, n uring ritrtion yl, IPP ttmpts to sn ll from itr of its quus. Estimt t mximum trougput possil in su systm. In singl ll yl, w woul xpt.=. lls to gt troug, unr t givn onitions, ompr to out for t systm in wi IPP s singl quu. In susqunt ll yls, t rsss of lls will not inpnnt, ling to grtion in t trougput, ut t grtion soul lss in t s of n ovn quu systm tn in t s of singl quu systm. T tul mximum trougput soul twn % n % of, or rougly to lls pr yl.

6 . T timslott ritrtion ring, sri on pg, is ttrtiv us is vry simpl to implmnt. It n gnrliz to pply to systms wit VOQs n to llow suling ovr multipl tim stps. In tis gnrliz vrsion, t it z i is rpl y vlu, wi rprsnts t rlist tim stp t wi t output x i is not yt to riv ll. If inpu s n un ll to sn to output x i n s no otr ll to snt t tim, it s t witing ll for trnsmission t tim, n tn inrmnts for pssing its vlu to inpu. T input kps trk of wn witing ll is for trnsmission, n sns it t t pproprit tim. T mtrix sown low rprsnts st of lls witing to troug rossr swit using tis gnrliz timslott ritrtion ring. T ntry in row i, olumn j is t numr of lls npu going to output j. For input, list t output tt sns ll to on sussiv tim stp, until ll t lls r snt. Assum tnitilly, ll t vlus r zro n tt x i =i. T figur low sows wt ppns uring tim. In t firstrtion of t suling lgoritm, noting ppns, sin tr r zros in ll t igonl ntris. T first mtrix in t top row igligts wi VOQs r unr onsirtion uring stp of t lgoritm. T vlu of ftr stp r sown nxt, long wit t prtil onstrut up to tt point. T ntr mtrix in t top row is sows t numr of un pkts in of t VOQs n igligts t VOQs tt r unr onsirtion in t nxt stp. In t prtil s, t unrsor rtr (_) is us to init tim stps uring wi prtiulr inpus not to sn ll. t=,,,,, _,,_,,,,,,,, _,,_,,_,,,,,,_,,,,,, _,,_,,_,,,,

7 T figur low sows wt ppns t tim. Noti tt t initil rmovs tos lls tt wr to go out uring stp. Also not tt ti vlus tt r qul to t t n of tim r inrs to. Tis is nssry to nsur t r mks progrss. t=,_,,_,,,,,,,,,,_,,_, _,, _,,,,,_,,,,,,,,_, _,,,,_,_,,_,,,,,,,,_,,_, _,,,_,_,,,_,_,,,_,,,,,,,,_,,_,,_,_,_, _,,,_,_,,,,_,_,,,_,,,,,,,,_,,_,,_,_,_,,,,_,_,,,,_,_,, Tis figur sows wt ppns t t=. t= _,,,,,,_, _,,_,_,_,,,_,_,,,_,_,, _,,,,,,_,_,_,,_, _,,_,_,_,,,_,_,,,_,_,, _,,,,_,_,_,,,,_,_,_,,_, _,,_,_,_,,,_,_,,,_,_,,,_,,,,,_,_,_,,,,_,_,_,,_,, _,,_,_,_,,,_,_,,,_,_,,,_,,,,,_,_,_,,,,_,_,_,,_,, _,,_,_,_,,_,,,_,_,,,,_,,,_,,,,,,_,_,,,,_,_,_,,_,, _,,_,_,_,,_,,,,_,,,,_,,,_,

8 T figur low sows wt ppns in t nxt fw stps. Svrl mor tim stps r rquir to fully ll t lls. t=,,,,_,_,,,_,_,_, _,,,_,_,_,,_,,,_,,,_,,,_,,,,,_,_,,,_,_,_, _,,,_,_,_,,_,,,_,,,_,,,_,,,,,_,_,,,,_,_,,,,_,_,_,,_,,,_,,,_,,,_,,_,,,,,_,_,,,,_,_,,,,_,_,_,,_,,,_,,,_,,,_,,_,,,,,_,_,,,,_,_,,,,_,_,_,,_,,_,,,_,,,_,,,_,,_,,,,,,_,,,,_,_,,,,_,_,_,,_,,_,,,_,,,,,,_,,_, t=,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_,,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_,,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_,,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_,,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_,,,,,_,,,_,_,, _,_,_,,_,,_,,_,,,,,,_,,_, t=,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,,,,_,,_,_, _,_,,_,,_, _,,,,,_,,_,

9 . T figur low sows t stt of simpl rossr r t t strt of suling oprtion. Sow t stt of t ontrollr ftr stp of t lgoritm, until ll possil mts v n m. B sur to sow ow t pointrs r upt. Do tis for ot t roun roin lgoritm n t islip lgoritm. T rsult for t roun roin lgoritm is sown low. first roun outputs inputs slnputs slt outputs son roun outputs slnputs inputs slt outputs

10 T rsult for t islip lgoritm is sown low. first roun outputs inputs slnputs slt outputs son roun outputs slnputs inputs slt outputs

11 . Giv n xmpl sowing tslip n rquir up to itrtions to omplt pkt suling oprtion for port rossr. Spifilly, giv n initil stt of t rossr, sowing wi inputs v pkts to sn to wi outputs, n initil vlus of ll t pointrs us y t islip lgoritm. Tn sow wt ppns in of t rmining stps. In prtiulr, sow t stt of t pointrs n wi inputs v n mt to wi outputs, wn t lgoritm trmints. initil onfigurtion first stp son stp tir stp fourt stp fift stp

12 . T figur low sows t stt of rossr wit virtul output quus. In prtiulr, t numr in row i, olumn j nots t numr of lls witing in t VOQ npu going to output j. T numrs in t ottom row rprsnt t numr of lls in t quus t of t outputs. Sow ow t LOOFA lgoritm mts inputs to outputs, ssuming tt t outputs slnputs, s on wi input s t longst VOQ for t output. Us t xtr opis of t figur to sow wt mts r m ftr stp y irling t slt ntris. Mk sur you ll t igrms you r using to init stp. At t n, sow ow t sttus of t VOQs ngs s rsult of t slt ll trnsfrs. first stp son stp tir stp finl stt

13 . T figur low (similr to t figur on pg of t ltur nots) sows t initil stt of CCF rossr r t t strt of suling oprtion. Sow t stt of t ontrollr ftr stp of t lgoritm. nw rrivls following insrtion of rriving lls ftr n stp ftr t stp initil stt ftr st stp ftr r stp ftr t stp T stps r illustrt ov. Following t fift stp, t lgoritm trmints us stl mting s n foun.

14 . In on vrint of t LOOFA rossr suling lgoritm, outputs tt riv multipl is from inputs, slnputs s on t timstmps of t ontning lls (lls wit smll timstmps r prfrr ovr lls wit lrgr timstmps). Also, lls r forwr from t outputsi quus in timstmp orr. Fin trffi pttrn tt monstrts tt vn wit spup of, tis vrsion of t LOOFA suling lgoritm os not lwys forwr lls in FIFO orr. T figur low illustrts snrio in wi t olst lls first vrsion of t LOOFA lgoritm fils to prsrv FIFO orring. Tis is for six port swit. following rrivl stp stintion & timstmp stp,,, following trnsfr,,, following prtur,, following trnsfr timstmp of quu lls,, stp,,,,,,,,,,,,,,,,,,, stp,,,,,,,,,,,,,,,,, stp,,,,,,,,,,,, stp,,,,, Now, output must sn ll wit timstmp, wil input still s ll wit timstmp.

15 . Sow tt t stl mting lgoritm sri on pg os in ft prou stl mting. Assum, to t ontrry, tt t onstrut mting is not stl. Tis mns tt tr r two pirs (, ) n (, ) su tt prfrs to n prfrs to. If tis wr t s, tn must v m i for for it i for. Sin t mmrs of B only ng prtnrs to improv tir prfrn, t t tim tt i for, itr ws unmt or it ws mt wit prtnr tt rnk no igr tn. In tis s, must v swit prtnrs, mting it wit. But tis yils ontrition, sin woul not v swit from to, ftr oming mt wit.. On wy to implmnt multisn rossr swit wit VOQs is for t IPPs to opy rriving multist ll to t VOQs for ll outputs tt r to riv opis. Wit tis ppro, t multist lls ppr no iffrnt tn unist lls to t rossr. Sow tt rossr n forwr multist lls wit fnout of F in workonsrving fsion, using t LOOFA lgoritm n spup of F+. W strt y ssuming tt t swit oprts in yls of F+ pss. T first ps of yl is t rrivl ps, uring wi n rriving ll my pl in up to F iffrnt VOQs. T nxt F pss r trnsfr pss, uring wi lls r trnsfrr from inputs to outputs troug t rossr. T nxt ps is t prtur ps, uring wi lls r trnsmitt on t output links. T lst ps is n itionl trnsfr ps. W fin t slknss of ll just s on pg of t nots. W not tt t lmm on pg gnrlizs t multist s. As wit t unist s, trnsfr yl, t minimum slknss t n inpunrss y t lst on (unlss it s no lls). During t rrivl ps, ll s slknss n rs y t most F n uring t prtur ps its slknss n rs y t most. Sin tr r F+ trnsfr pss, tr n no nt rs in ll s slknss uring n F+ ps yl. W n lso giv vrsion of lmm on. In prtiulr, w n sow tt following t rrivl ps of ny stp, t slknss of ll is t lst (F). For lls tt rriv uring t first tim stp, tis is lrly tru, sin t outputs v no lls t tis point, n t most F lls gt insrt into VOQs uring t first stp. So, t ll wi is lsn t orring s slknss of (F). As on, w pro y inution. Lt ll tt ws pl in VOQ uring t rrivl stp of ps t. If tr r no lls tt pr n wr prsnt t t input for stp t, tn t rsult lrly ols, sin only t lls tt rriv uring stp t oul pr n tr r t most F of ts, xluing. So, suppos is ll tt ws prsnt for stp t n tt prs. Assum lso, tt ll otr lls prsnt for stp t tt pr lso pr. By t inution ypotsis, following t rrivl ps of stp t, t slknss of ws t lst (F). So, just for t rrivl ps of stp t, t slknss of must t lst. Now, onsir t lls pl in VOQs uring stp t. L t numr of ts lls tt pr. Tis mns tt ftr t rrivl ps of stp t, t slknss of is t ls. Sin tr t most (F)i otr lls tt rriv uring stp t tt pr n o not pr, t slknss of is t lst (i)((f)i)=(f). To omplt t proof tt t systm is workonsrving, suppos tt ftr t rrivl ps of som stp, tr is som output wit no lls in its output quu n tr r lls witing in VOQs for tt output. Lt ny su ll. Sin tr r no lls in t output quu, n sin t slknss of is t lst (F), tr n t most F lls tt pr ts input. Tis mns tt uring of t F trnsfr pss twn t rrivl ps n t prtur ps,

16 itr som ll in front of gts trnsfrr, or t input ttmpts to sn. Sin tr only F lls in front of, tr must t lst on trnsfr ps uring wi t input ttmpts to sn. If os not gt snt uring su trnsfr ps, tn t output must v gottn ll from som otr input. So, t output s ll to sn, uring t prtur ps.

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

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

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

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

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

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

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

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

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

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

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

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

(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

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

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

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

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

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

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

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

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

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

# 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

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

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

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

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

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

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

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

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

, 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

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

Problem 1. Solution: = show that for a constant number of particles: c and V. a) Using the definitions of P

Problem 1. Solution: = show that for a constant number of particles: c and V. a) Using the definitions of P rol. Using t dfinitions of nd nd t first lw of trodynis nd t driv t gnrl rltion: wr nd r t sifi t itis t onstnt rssur nd volu rstivly nd nd r t intrnl nrgy nd volu of ol. first lw rlts d dq d t onstnt

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

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

Multipoint Alternate Marking method for passive and hybrid performance monitoring

Multipoint Alternate Marking method for passive and hybrid performance monitoring Multipoint Altrnt Mrkin mtho or pssiv n hyri prormn monitorin rt-iool-ippm-multipoint-lt-mrk-00 Pru, Jul 2017, IETF 99 Giuspp Fiool (Tlom Itli) Muro Coilio (Tlom Itli) Amo Spio (Politnio i Torino) Riro

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4.1 Interval Scheduling. Chapter 4. Greedy Algorithms. Interval Scheduling: Greedy Algorithms. Interval Scheduling. Interval scheduling.

4.1 Interval Scheduling. Chapter 4. Greedy Algorithms. Interval Scheduling: Greedy Algorithms. Interval Scheduling. Interval scheduling. Cptr 4 4 Intrvl Suln Gry Alortms Sls y Kvn Wyn Copyrt 005 Prson-Ason Wsly All rts rsrv Intrvl Suln Intrvl Suln: Gry Alortms Intrvl suln! Jo strts t s n nss t! Two os omptl ty on't ovrlp! Gol: n mxmum sust

More information

In which direction do compass needles always align? Why?

In which direction do compass needles always align? Why? AQA Trloy Unt 6.7 Mntsm n Eltromntsm - Hr 1 Complt t p ll: Mnt or s typ o or n t s stronst t t o t mnt. Tr r two typs o mnt pol: n. Wrt wt woul ppn twn t pols n o t mnt ntrtons low: Drw t mnt l lns on

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

Improving Union. Implementation. Union-by-size Code. Union-by-Size Find Analysis. Path Compression! Improving Find find(e)

Improving Union. Implementation. Union-by-size Code. Union-by-Size Find Analysis. Path Compression! Improving Find find(e) POW CSE 36: Dt Struturs Top #10 T Dynm (Equvln) Duo: Unon-y-Sz & Pt Comprsson Wk!! Luk MDowll Summr Qurtr 003 M! ZING Wt s Goo Mz? Mz Construton lortm Gvn: ollton o rooms V Conntons twn t rooms (ntlly

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

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

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

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

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

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

Divided. diamonds. Mimic the look of facets in a bracelet that s deceptively deep RIGHT-ANGLE WEAVE. designed by Peggy Brinkman Matteliano

Divided. diamonds. Mimic the look of facets in a bracelet that s deceptively deep RIGHT-ANGLE WEAVE. designed by Peggy Brinkman Matteliano RIGHT-ANGLE WEAVE Dv mons Mm t look o ts n rlt tt s ptvly p sn y Py Brnkmn Mttlno Dv your mons nto trnls o two or our olors. FCT-SCON0216_BNB66 2012 Klm Pulsn Co. Ts mtrl my not rprou n ny orm wtout prmsson

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

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

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

CMPS 2200 Fall Graphs. Carola Wenk. Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk

CMPS 2200 Fall Graphs. Carola Wenk. Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk CMPS 2200 Fll 2017 Grps Crol Wnk Sls ourtsy o Crls Lsrson wt ns n tons y Crol Wnk 10/23/17 CMPS 2200 Intro. to Alortms 1 Grps Dnton. A rt rp (rp) G = (V, E) s n orr pr onsstn o st V o vrts (snulr: vrtx),

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

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

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

(Minimum) Spanning Trees

(Minimum) Spanning Trees (Mnmum) Spnnn Trs Spnnn trs Kruskl's lortm Novmr 23, 2017 Cn Hrn / Gory Tn 1 Spnnn trs Gvn G = V, E, spnnn tr o G s onnt surp o G wt xtly V 1 s mnml sust o s tt onnts ll t vrts o G G = Spnnn trs Novmr

More information

SEE PAGE 2 FOR BRUSH MOTOR WIRING SEE PAGE 3 FOR MANUFACTURER SPECIFIC BLDC MOTOR WIRING EXAMPLES EZ SERVO EZSV17 WIRING DIAGRAM FOR BLDC MOTOR

SEE PAGE 2 FOR BRUSH MOTOR WIRING SEE PAGE 3 FOR MANUFACTURER SPECIFIC BLDC MOTOR WIRING EXAMPLES EZ SERVO EZSV17 WIRING DIAGRAM FOR BLDC MOTOR 0V TO 0V SUPPLY GROUN +0V TO +0V RS85 ONVRTR 9 TO OM PORT ON P TO P OM PORT US 9600 U 8IT, NO PRITY, STOP, NO FLOW TRL. OPTO SNSOR # GROUN +0V TO +0V GROUN RS85 RS85 OPTO SNSOR # PHOTO TRNSISTOR TO OTHR

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

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

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

Spanning Trees. BFS, DFS spanning tree Minimum spanning tree. March 28, 2018 Cinda Heeren / Geoffrey Tien 1

Spanning Trees. BFS, DFS spanning tree Minimum spanning tree. March 28, 2018 Cinda Heeren / Geoffrey Tien 1 Spnnn Trs BFS, DFS spnnn tr Mnmum spnnn tr Mr 28, 2018 Cn Hrn / Gory Tn 1 Dpt-rst sr Vsts vrts lon snl pt s r s t n o, n tn ktrks to t rst junton n rsums own notr pt Mr 28, 2018 Cn Hrn / Gory Tn 2 Dpt-rst

More information

Having a glimpse of some of the possibilities for solutions of linear systems, we move to methods of finding these solutions. The basic idea we shall

Having a glimpse of some of the possibilities for solutions of linear systems, we move to methods of finding these solutions. The basic idea we shall Hvn lps o so o t posslts or solutons o lnr systs, w ov to tos o nn ts solutons. T s w sll us s to try to sply t syst y lntn so o t vrls n so ts qutons. Tus, w rr to t to s lnton. T prry oprton nvolv s

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

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

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

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

12 - M G P L Z - M9BW. Port type. Bore size ø12, ø16 20/25/32/40/50/ MPa 10 C to 60 C (With no condensation) 50 to 400 mm/s +1.

12 - M G P L Z - M9BW. Port type. Bore size ø12, ø16 20/25/32/40/50/ MPa 10 C to 60 C (With no condensation) 50 to 400 mm/s +1. ris - MP - Compt gui ylinr ø, ø, ø, ø, ø, ø, ø, ø ow to Orr Cln sris lif typ (with spilly trt sliing prts) Vuum sution typ (with spilly trt sliing prts) ir ylinr otry tutor - M P - - MW ll ushing ring

More information

Functions and Graphs 1. (a) (b) (c) (f) (e) (d) 2. (a) (b) (c) (d)

Functions and Graphs 1. (a) (b) (c) (f) (e) (d) 2. (a) (b) (c) (d) Functions nd Grps. () () (c) - - - O - - - O - - - O - - - - (d) () (f) - - O - 7 6 - - O - -7-6 - - - - - O. () () (c) (d) - - - O - O - O - - O - -. () G() f() + f( ), G(-) f( ) + f(), G() G( ) nd G()

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

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

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

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

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

Depth First Search. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong

Depth First Search. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong Dprtmnt o Computr Sn n Ennrn Cns Unvrsty o Hon Kon W v lry lrn rt rst sr (BFS). Toy, w wll suss ts sstr vrson : t pt rst sr (DFS) lortm. Our susson wll on n ous on rt rps, us t xtnson to unrt rps s strtorwr.

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

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

10/5/2012 S. THAI SUBHA CHAPTER-V

10/5/2012 S. THAI SUBHA CHAPTER-V /5/ /5/ S. THAI SUBHA CHAPTER-V FIR is finit impuls rspons. FIR systm s n impuls rspons tt is ro outsi of sm finit tim intrvl. FIR systm s finit mmory of lngt M smpls. /5/ S. THAI SUBHA CHAPTER-V /5/ IIR

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

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

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

Theorem 1. An undirected graph is a tree if and only if there is a unique simple path between any two of its vertices.

Theorem 1. An undirected graph is a tree if and only if there is a unique simple path between any two of its vertices. Cptr 11: Trs 11.1 - Introuton to Trs Dnton 1 (Tr). A tr s onnt unrt rp wt no sp ruts. Tor 1. An unrt rp s tr n ony tr s unqu sp pt twn ny two o ts vrts. Dnton 2. A root tr s tr n w on vrtx s n snt s t

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

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