Lecture 7 Phylogenetic Analysis

Size: px
Start display at page:

Download "Lecture 7 Phylogenetic Analysis"

Transcription

1 Ltur 7 Phylognti Anlysis Aitionl Rfrn Molulr Evolution: A Phylognti Approh Rori D. M. Pg n Ewr C. Holms 1

2 Uss of Phylognti Anlysis Evolutionry trs Multipl squn lignmnt Evolutionry Prolms i) Th fossil ror suggsts tht morn mn ivrg from ps out 5- million yrs go. Morn Homo spins mrg twn 1,-, yrs go ii) DNA n squn lignmnt y Po support this. iii) Work s on mitohonril DNA y Wilson t l suggst th morn mn mrg only, yrs go with th ivrgn into iffrnt rs 5, yrs go 1. mitohonril DNA irulr. mtrnl inhritn 3. 1x fstr muttion rt thn nulr DNA

3 Algorithms Typs of Dt Distns Nuloti sits Tr-uiling Mtho Clustring Algorithm Optimlity Critrion UPGMA Nighor Joining Minimum Evolution Mximum Prsimony Mximum Liklihoo From Pg n Holms Molulr Evolution: A Phylognti Approh Prliminris Txon (tx plurl) or oprtion txon unit is ntity whos istn from othr ntitis n msurs (i spis, mino i squn, lngug, t.) Comprisons r m on msurmnts or ssumptions onrning rts of volutionry hng. This is omplit y k muttions, prlll muttions, n vritions in muttion rt. W will only onsir sustitutions. 3

4 Amino Ai Squns i) For xmpl, th mino i sustitution rt pr sit pr yr is 5.3 x 1-9 for guin pig ut only.33 x 1-9 for othr orgnisms. ii) Th volutionry tim is th vrg tim to prou on sustitution pr 1 mino is T u 1 = 1λ Amino Ai Squns Exmpl Thr r iffrns in squn of 1 mino is whn ompring lf n p histon H4. Sin plnts n nimls ivrg 1 illion yrs go, T u =.5 illion yrs 1 λ = 1T u 1 λ = 1T u 1-11 iii) proility of sustitution svrl wy to lult it. Th st wy is using th PAM mtris. 4

5 Nuloti Squns i) Diffrnt from mino i squns u to runny in th gnti o (i svrl oons n o for prtiulr mino i. ii) Most sustitutions in th 3 r position r synonomous (UC* is th RNA oing for srin th orrsponing DNA woul AG*). Sin volution shoul pn on funtion n this is onfrr y th mino i squn, it hs n suggst tht th molulr lok shoul s on th sustitution rt in th thir position of th oon. In ft, in th firinopptis, this is s high s th mino i sustitution rt. Nuloti Squns iii) In th finition of PAM mtris, on ssums isrt Mrkov Chin, with th PAM mtrix ing th trnsition mtrix for th Mrkov Chin. 5

6 Mrkov Chins Assum tht w hv pross tht hs isrt osrvl stts x 1, x,. Whn w monitor this ovr tim w gt squn of th stts oupi q 1, q,. whr q i = ny of x 1, x,. This squn is Mrkov Chin. Not tht whil thr n n infinit numr of stts, th Mrkov hin hs ountl numr of lmnts. Mrkov Chins Anothr proprty of Mrkov pross is tht history os not mttr. This mns tht th stt ssum t tim t+1 pns on th stt ssum on t (not on ny othr prvious stt). This is ll th Mrkov proprty. Lt X = {X n, n = 1,, } isrt tim rnom pross with stt sp S whos lmnts r s 1, s, X is Mrkov hin if for ny n, th proility tht X n+1 tks on ny vlu s k S is onitionl on th vlu of X n ut os not pn on th vlus of X n-1, X n-,. Th on-tim-stp trnsition proilitis p jk (n) = Pr{X n = s k X n-1 = s j } j,k=1,, n = 1,, Sin X is rnom vril ll th initil onition, p j () = Pr{X = s j } j=1,,

7 Mrkov Chins Trnsition mtrix put th p jk into mtrix P. A squn of mino is n thought of s Mrkov hin. Sttionry Mrkov pross th proilitis p jk (n) o not pn on n, tht is thy r onstnt. Anothr wy of sying this is n initil istriution π is si to sttionry if πp(t)=π. Irruil vry stt n rh from vry othr stt Applition of Mrkov prosss to volutionry mols i) Th PAM mtrix hs its sustitution proilitis trmin from losly rlt mino i squns, it ssums tht th sustitutions hv ourr through on pplition of th trnsition mtrix (i.. no multipl sustitutions n givn sit) n ssums tht volutionry istn rsults from rpt pplition of th sm PAM mtrix. ii) A ttr volutionry mol is n. (txt p ) This rquirs th us of ontinuous Mrkov pross rthr thn isrt Mrkov hin. This still hs th Mrkov proprty. 7

8 Applition of Mrkov prosss to volutionry mols A tim homognous Mrkov pross for th stohsti funtion X(t) onsists of st of stts Q={1,,,n}, st of initil stt istriutions π=(π 1,,π n ), n trnsition proility funtions P(t)= ) p 1,,1 (t) p 1,n (t) ).... p n,1 (t) p n,n (t) Applition of Mrkov prosss to volutionry mols W n pply this to nuloti squns. Lt Q={1,,3,4} orrspon to {A,C,G,T}. P(t)= ) ) p 1,,1 (t) p 1,4 (t) ).... p n,4 (t) p 4,4 (t) P[A A,t] P[C A,t] P[G A,t] P[T A,t] ) P[A C,t] P[C C,t] P[G C,t] P[T C,t] P[A G,t] P[C G,t] P[G G,t] P[T G,t] P[A T,t] P[C T,t] P[G T,t] P[T T,t] 8

9 Juks-Cntor Mol A α G α α α α C α Trnsitions = Trnsvrsions T Rts of Nuli Ai Chng Th Juks Cntor mol ssums tht u 1 =u =u 3 =u 4 =, yiling th rt mtrix. Λ = ) -3α α α α α -3α α α α α -3α α α α α -3α) Thn p 1 =p =p 3 =p 4 = Us in Mimum Liklihoo Clultion 9

10 HKY Mol Purins A α G β β β β Pyrimiins C α T Trnsitions > Trnsvrsions α > β Dfinitions -tx ntitis whos istn from othr ntitis n msur -A irt grph G(V, E) onsists of st V of nos or vrtis n st E(V) of irt gs. Thn (i,j) E mns tht thr is irt g from i to j. -A grph is unirt if th g rltion is symmtri, tht is, (i,j) E iff (j,i) E. -A irt grph is onnt if thr is irt pth twn ny two nos. 1

11 Dfinitions -A irt grph is yli if it os not ontin yl. (i.. (i,j), (j,k), n (k,i) ll long to E. -A tr is unirt, onnt, yli grph. -A root tr hs strting no ll root. -Th prnt no is immitly for no on th pth from th root. -Th hil no is no tht is follows no. Dfinitions -An nstor is ny no tht m for no on th pth from root. -A lf or xtrnl no is no tht h no hilrn. -Non-lf nos r ll intrnl nos. -Th pth of tr is on lss thn th mximl numr of nos on pth from th root to lf. 11

12 Dfinitions -An orr tr is tr whr th hilrn of intrnl nos r numr. -A inry tr is tr whr h no hs t most two hilrn. Othrwis it is multifurting. Trs Qustion: Drw ll inry trs on 1,, n 3 tx. A phylognti tr on n tx is tr with lvs ll y 1,,n. 1

13 How o you tll if two trs r th sm? If you n onvrt on tr into nothr without rking ny rnhs thy r topologilly quivlnt. Phylognti Trs Phylognti trs or volutionry trs r inry trs tht sri th rltions twn spis. Trs onsist of nos or vrtis n tx or lvs. 13

14 Phylognti Trs To unrstn th t, w must unrstn som of th mthos hin phylognti trs or volutionry trs i) Clustring mthos ii) Mximum liklihoo mthos iii) Qurtt puzzling Wht o w o with phylognti trs? msuring volutionry hng on tr If th lvs of tr h signify squn, th sum of th wights of th gs givs th volutionry istn twn th two squns. molulr phylogntis Convrt informtion in squns into n volutionry tr for thos squns. 14

15 Clustr mthos vs. srh mthos Thr r two si mthos for onstruting trs. Clustr mthos us n lgorithm (st of stps) to gnrt tr. Ths mthos r vry sy to implmnt n hn n omputtionlly ffiint. Thy lso typilly prou singl tr. A ig isvntg to this mtho is tht it pns upon th orr in whih w squns to th tr. Hn, thr oul iffrnt tr tht xplins th t just s wll. Srh mthos us som sort of optimlity ritri to hoos mong th st of ll possil trs. Th optimlity ritri givs h tr sor tht is s on th omprison of th tr to t. Th vntg of srh mthos is tht thy us n xpliit funtion rlting th trs to th t (for xmpl, mol of how th squns volv). Th isvntg is tht thy r omputtionlly vry xpnsiv (NP omplt prolm). How o w ompr iffrnt tr mthos? Effiiny How fst is th mtho? powr How muh t os th mtho rquir? onsistny Will th tr onvrg on th right nswr giv nough t? roustnss Will minor violtions of th mtho s ssumptions rsult in poor stimts of phylogny? flsifiility Will th mtho tll us whn its ssumptions r violt? 15

16 How o ssign wights for th gs of our trs? Distn mthos first onvrt lign squns into pirwis istn mtrix thn input tht mtrix into tr uiling mtho. Th mjor ojtions to istn mthos r tht summrizing st of squns y istn t loss informtion n rnh lngths stimt y som istn mthos might not volutionrily trminl. Disrt mthos onsir h nuloti sit (of som funtion of h sit) irtly. Distn Mthos Two istn mthos r nighor joining n minimum volution. Minimum volution fins th tr tht minimizs th sum of th rnh lngths whr th lngths r lult from th pirwis istns twn th squns. Linr progrmming or lst squrs mthos n us to o this. Nighor joining is lustring mtho tht is omputtionlly fst n givs uniqu rsult. This n us somthing lik th four-point onition n lustrs th losst lmnts. 1

17 Disrt Mthos Th two mjor isrt mthos r mximum prsimony n mximum liklihoo. Both ths r srh mthos. i) With mximum prsimony w try to ronstrut th volution t prtiulr sit with th fwst possil volutionry hngs. Th vntgs of prsimony r tht it mks rltivly fw ssumptions out th volutionry pross, it hs n stui xtnsivly mthmtilly, n som vry powrful softwr implmnttions r vill. Th mjor isvntg to using prsimony is tht unr som mols of volution, it is inonsistnt, tht is if mor t is th wrong rsult might our. Disrt Mthos ii) Th mximum liklihoo pproh looks for th tr tht mks th t th most prol volutionry outom. This pproh rquirs xpliit mol of volution whih is oth strngth n wknss us th rsults pn on th mol us. This mtho n lso vry omputtionlly xpnsiv. 17

18 Typs of mtris For th four point onition or itiv mtri, givn th lvs i, j, k, n l (i,j) + (k,l) (i,k) + (j,l) = (i,l) + (j,k) For n ultrmtri mtri th ultrmtri or 3-point onition hols Tht is givn th lvs i, j, n k (i,j) (i,k) = (j,k) Ultrmtri trs Clustring mthos ttmpt to rpt lustr th t y grouping th losst lmnts togthr. Thy r us for phylogny n gn xprssion mirorry nlysis. Th pir group mtho (PGM) is thniqu whr th pirs r rptly mlgmt. Th unwight pir group mtho with rithmti mn (UPGMA) is us to lustr molulr t whr squn lignmnt istn twn squns hs n trmin in istn mtrix. 18

19 UPGMA Input n n x n istn mtrix D 1. Initiliz st C to onsist of n singlton lustrs. Initiliz ist(,) on C y fining for ll {i} n {j} in C ist({i},{j}) = D(i,j) 3. Rpt th following n-1 tims ) trmin pir, of lustrs in C suh tht ist (,) in miniml; fin min = ist(,) ) fin nw lustr = U ; fin C = C {,} U {} ) fin no with ll n ughtrs n, whr th hs istn min/ to its lvs ) fin for ll f in C with f iffrnt from ist(,f) = ist(f,) = [ist(,f) + ist(,f)]/ UPGMA Exmpl Ultrmtri Topology Distn Tl (i,j) (i,k) = (j,k) from Clot n Bkofn Computtionl Molulr Biology 19

20 Givn th istn tl UPGMA Exmpl W hv fiv singlton lustrs {}, {}, {}, {}, n {} from th st C = {,,,,}. Gt th istns from th istn tl (lft) 3. ) Fin th losst two lustrs, nmly, lustrs {} n {} with min = ) f = {,} n C= {,,,f} ) f is th root for n ) Dfin nw istn tl Rpt 3 Th ol istn tl UPGMA Exmpl Th nw istn tl f f

21 f 1 1 UPGMA xmpl Tr formtion g f h 3 g r h f WPGMA Input n n x n istn mtrix D 1. Initiliz st C to onsist of n singlton lustrs. Initiliz ist(,) on C y fining for ll {i} n {j} in C ist({i},{j}) = D(i,j) 3. Rpt th following n-1 tims ) trmin pir, of lustrs in C suh tht ist (,) in miniml; fin min = ist(,) ) fin nw lustr = U ; fin C = C {,} U {} ) fin no with ll n ughtrs n, whr th hs istn min/ to its lvs ) fin for ll f in C with f iffrnt from ist(,f) = ist(f,) = [ ist(,f) + ist(,f)]/[ + ] 1

22 1 1 Frris Trnsform - Exmpl Aitiv, non-ultrmtri topology Distn Tl (i,j) + (k,l) (i,k) + (j,l) = (i,l) + (j,k) from Clot n Bkofn Computtionl Molulr Biology Frris Trnsform - Exmpl UPGMA inorrtly Distn Tl ronstrut topology from Clot n Bkofn Computtionl Molulr Biology

23 Frris Trnsform Somtims th t will stisfy n itiv mtri n not ultrmtri. This will yil tr with th inorrt topology if UPGMA or WPGMA is us. Th Frris Trnsform Distn Mtho onvrts th t for n itiv, non-ultrmtri mtri so tht it stisfis th ultrmtri. Thn UPGMA or WPGMA n us to yil tr with th orrt topology Frris Trnsform If w hv phylognti tr with root r n lvs (tx) 1,,n n i,j is th istn twn two nos, thn w hv th trnsform istn i, j r = whr 1 = n i, j n i= 1 i, r i, r j, r + r You must ssum root r. This n th lf tht is frthst from ll th othrs. Unfortuntly, pning on th root slt th mtho might not giv th right topology. 3

24 1 1 Frris Trnsform - Exmpl Aitiv, non-ultrmtri topology Wht is th istn to th root? Distn Tl r Frris Trnsform - Exmpl Originl Distn Tl with ssum root Trnsform Distn Tl r i, j i, r j, r i, j = + r whr r = 7. 4

25 Frris Trnsform - Exmpl Frris trnsform tr topology Distn Tl (i,j) + (k,l) (i,k) + (j,l) = (i,l) + (j,k) Frris Trnsform Pik s root Originl Distn Tl with ssum root Trnsform Distn Tl i, j i, r j, r i, j = + r whr r = 13. 5

26 Frris Trnsform Corrt Topology! Frris trnsform tr topology Distn Tl (i,j) + (k,l) (i,k) + (j,l) = (i,l) + (j,k) Algorithms Typs of Dt Distns Nuloti sits Tr-uiling Mtho Clustring Algorithm Optimlity Critrion UPGMA Nighor Joining Minimum Evolution Mximum Prsimony Mximum Liklihoo From Pg n Holms Molulr Evolution: A Phylognti Approh

27 Phylogny: Distn Mthos Prsimony Mximum Liklihoo Look t hngs in h olumn of lignmnt Mtri to stimt Popultion Drift Computtionlly mor xpnsiv Nighor Joining Comins omputtionl sp with uniqunss of rsult Clustring mtho hn hs no optimlity ritri. Oftn us in onjuntion with Minimum Evolution to stimt th minimum volution tr 7

28 Nighor Joining n Minimum Evolution Comput th Nighor Joining Tr n s if ny lol rrrngmnt prous shortr tr. Not gurnt to giv th minimum volution tr. Nighor Joining Algorithm Rlt to lustr nlysis ut rmovs th ssumption of ultrmtri t Dos not ssum t oms los to fitting n itiv tr (n to us n pproprit mol of volution). Kps trk of nos on tr Consirs only losst pirs n not ll possil pirs in h stp of str omposition. 8

29 Nighor Joining FROM: rivt/nighor.html Author: Fr Oppros Suppos w hv th following tr: Sin B n D hv umult muttions t highr rt thn A. Th Thr-point ritrion is violt n th UPGMA mtho nnot us sin this woul group togthr A n C rthr thn A n B. In suh s th nighor-joining mtho is on of th rommn mthos. Nighor Joining Th rw t of th tr r rprsnt y th following istn mtrix: A B C D E B5 C 4 7 D E 9 5 F W hv in totl OTUs (N=). 9

30 Nighor Joining Stp 1: W lult th nt ivrgn r (i) for h OTU from ll othr OTUs r(a) = =3 r(b) = 4 r(c) = 3 r(d) = 38 r(e) = 34 r(f) = 44 Nighor Joining Stp : Now w lult nw istn mtrix using for h pir of OTUs th formul: M(I,j)=(i,j) - [r(i) + r(j)]/(n-) or in th s of th pir A,B: M(AB)=(AB) -[(r(a) + r(b)]/(n-) = -13 A B C D E B-13 C D E F

31 Nighor Joining Now w strt with str tr: A F B \ / \ / \ / / \ / \ / \ E C D Nighor Joining Stp 3: Now w hoos s nighors thos two OTUs for whih M ij is th smllst. Ths r A n B n D n E. Lt's tk A n B s nighors n w form nw no ll U. Now w lult th rnh lngth from th intrnl no U to th xtrnl OTUs A n B. S(AU) =(AB) / + [r(a)-r(b)] / (N-) = 1 S(BU) =(AB) -S(AU) = 4 31

32 Nighor Joining Stp 4: Now w fin nw istns from U to h othr trminl no: (CU) = (AC) + (BC) - (AB) / = 3 (DU) = (AD) + (BD) - (AB) / = (EU) = (AE) + (BE) - (AB) / = 5 (FU) = (AF) + (BF) - (AB) / = 7 n w rt nw mtrix: Nighor Joining UCDE C3 D7 E55 F7898 Th rsulting tr will th following: C D \ A \ / 1 / \ / \ 4 E \ F \ B N= N-1 = 5 Th ntir prour is rpt strting t stp 1 3

33 Qurtt Puzzling Qurtt puzzling is lss omputtionlly xpnsiv mtho thn mximum liklihoo to trmin th phylognti tr. Prour: n 1. Comput th 4 mximum liklihoo trs for ll possil qurtts. (Qurtt Puzzling stp) Comin th qurtt trs into n- txon tr tht tris to onform to ll th nighor rltions of ll th qurtt trs. 3. Rpt stps 1. n. mny tims n us th mjority onsnsus tr. Givn th originl tr topology for 5 tx Qurtt Puzzling Two possil qurtts 33

34 Qurtt Puzzling All 5 4 Possil qurtts N(,;,) N(,;,) N(,;,) N(,;,) N(,;,) Qurtt Puzzling Qurtt puzzling stp prour: 1. Tk on of th qurtt with th nighor rltion N(,;,). A pnlty of 1 to vry g suh tht th ition of th nw tx will yil th inorrt topology. 3. Rpt for ll th nighor rltions 4. Th rnh with th lowst wight is th rnh whr th tx show 34

35 35 Qurtt Puzzling Qurtt with nighor rltion N(,;,) Aing tx twn n Yils wrong topology! Qurtt Puzzling N(,;,) N(,;,) N(,;,) N(,;,)

36 Qurtt Puzzling Chos on qurtt tr. Pik th tx to Us ll nighor rltions (othr thn th on iing th qurtt tr us) to fin wights on rnhs A th tx to th rnh with th lowst pnlty. Minimum Evolution Givn n unroot mtri tr for n squns, thr r (n-3) rnhs h with rnh lngth i. Th sum of ths rnh lngths is th lngth L of th tr. Th minimum volution tr is th tr whih minimizs L 3

37 Minimum Evolution similr to prsimony But lngth oms from pirwis istns twn th squns (not from fit of nuloti sits) Us linr progrmming or lst squrs to fin optiml solution. Minimum Evolution 37

38 Phylogny: Chrtr Stt Mthos Prsimony Mxmum Liklihoo Look t hngs in h olumn of lignmnt Mtri to stimt Popultion Drift Computtionlly mor xpnsiv PHYLOGENY: Chrtr Stts Tx 1 Tx Tx 3 Tx 4 Tx 5 ATT-GCCATT ATG-GC-ATT ATC-TATCTT ATCAAATCTT ACT-G--ACC Informtiv hrtrs (olumns) Look t ll possil trs For h olumn, lult ost Minimum sor = st tr 38

39 Mximum Prsimony Tx 1 Tx Tx 3 Tx 4 Tx 5 ATT-GCCATT ATG-GC-ATT ATC-TATCTT ATCAAATCTT ACT-G--ACC Informtiv hrtrs Minimum numr of hngs Multipl sustitutions = homoplsy Mximum Prsimony Smllst numr of volutionry hngs First us on protin t (Ek & Dyhoff, 19) Appli to Nuloti t (Fith, 1977) Brut for srh of tr sp 39

40 Cost of Prsimony Tr T G C C T 1 Tx 1 Tx Tx 3 Tx 4 Tx 5 G 1 C C ATT- GCCATT ATG-GC - ATT ATC- TAT CTT ATCAAAT CTT ACT- G - - ACC 1 T Chrtr y hrtr Column 3 Prsimony sor = ++3 Cost of Prsimony Tr T-G G-G C-T CAA T-G 1 G-G 1 Tx 1 Tx Tx 3 Tx 4 Tx 5 C-G C-G ATT- GCCATT ATG-GC - ATT T-G ATC- TAT CTT ATCAAAT CTT ACT- G - - ACC Chrtr y hrtr Prsimony sor = = 5 4

41 Tr Sp Tx Orr Topology Srh Tr Sp Exhustiv Srh (Brut For) Brnh n Boun (Effiint?) Huristi Mthos (Hill Climing) Gnti Algorithms (GAML) 41

42 Mximum Liklihoo Gol: Construt phylognti tr from DNA squns whos liklihoo is mximum. (Flsnstin 1981) Prour Strt with givn topology n us th mximum liklihoo mtho to optimiz rnh lngths Mk lol moifitions to th topology n r-optimiz th rnh lngths Nw tx r on y on, optimizing rnh lngths n topologis h tim Assums n volutionry pross tht is rvrsil Mrkov pross Vry omputtionlly xpnsiv to us Liklihoo of Tr W wnt to fin L(tr) = Pr[t tr] Givn th t 1 =CT, =CG n 3 =AT Consir th tr CT CG AT W n lult th liklihoo of this tr if w fill in th intrnl nos 4

43 Liklihoo of Tr Sin this is Mrkov pross, w n onsir h sit sprtly from th othr whih rus th omplxity of th lultion. Exmpl 3 1 CA AC A C AT = C A A T CT CG C C T G tr 1 tr tr3 Pr[t tr 1] = Pr[t tr ] + Pr[t tr 3] Liklihoo of sit spifi tr W n lult from th trnsition mtrix n th istns on h rnh th proility of h hng. Th prout of ths multipli y th proility of th originl s givs th liklihoo of sit spifi tr. Sin thr r two unknown nos th oul sum of ll possil vlus for h (ACTG) givs th liklihoo for th originl tr. 43

44 Mximum Liklihoo Sttistil mol for hngs in nulotis Liklihoo tht tht hng ourr Muh mor omputtionl intnsiv thn prsimony Hypothsis Tsting Trnsitions/Trnsvrsions HKY (Kimur prmtr mol) Juks Cntor (1 prmtr) Mximum Liklihoo Tx 1 Tx Tx 3 Tx 4 Tx 5 ATT-GCCATT ATG-GC-ATT ATC-TATCTT ATCAAATCTT ACT-G--ACC Sttistil mol for hngs in nulotis Trnsitions/Trnsvrsions HKY (Kimur prmtr mol) Juks Cntor (1 prmtr) Liklihoo tht tht hng ourr Muh mor omputtionl intnsiv thn prsimony 44

45 Liklihoo of Tr L(tr) = Pr [t tr] Multiply liklihoo for h hrtr position Rursiv finition of Liklihoo Svs omputtionl tim Liklihoo of Tr L(tr) = Pr [t tr] Multiply liklihoo for h hrtr position Rursiv finition of Liklihoo 45

46 Liklihoo of Tr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(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

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

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

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

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

, 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compression. Compression. Compression. This part of the course... Ifi, UiO Norsk Regnesentral Vårsemester 2005 Wolfgang Leister

Compression. Compression. Compression. This part of the course... Ifi, UiO Norsk Regnesentral Vårsemester 2005 Wolfgang Leister Kurs INF5080 Ifi, UiO Norsk Rgnsntrl Vårsmstr 2005 Wolfgng Listr This prt of th ours...... is hl t Ifi, UiO... (Wolfgng Listr) n t ontins mtril from Univrsity Collg Krlsruh (Ptr Ol, Clmns Knorzr) Informtion

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

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

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

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

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

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

(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

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

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method:

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

More information

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

IEEE TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, VOL. TK, NO. TK, MONTHTK YEARTK 1. Hamiltonian Walks of Phylogenetic Treespaces

IEEE TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, VOL. TK, NO. TK, MONTHTK YEARTK 1. Hamiltonian Walks of Phylogenetic Treespaces IEEE TRNSTIONS ON OMPUTTIONL IOLOGY ND IOINFORMTIS, VOL. TK, NO. TK, MONTHTK YERTK Hmiltonin Wlks of Phylognti Trsps Kvughn Goron, Eri For, n Kthrin St. John strt W nswr rynt s omintoril hllng on miniml

More information

arxiv: v1 [cs.ds] 20 Feb 2008

arxiv: v1 [cs.ds] 20 Feb 2008 Symposium on Thortil Aspts of Computr Sin 2008 (Borux), pp. 361-372 www.sts-onf.org rxiv:0802.2867v1 [s.ds] 20 F 2008 FIXED PARAMETER POLYNOMIAL TIME ALGORITHMS FOR MAXIMUM AGREEMENT AND COMPATIBLE SUPERTREES

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

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

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

1. Determine whether or not the following binary relations are equivalence relations. Be sure to justify your answers.

1. Determine whether or not the following binary relations are equivalence relations. Be sure to justify your answers. Mth 0 Exm - Prti Prolm Solutions. Dtrmin whthr or not th ollowing inry rltions r quivln rltions. B sur to justiy your nswrs. () {(0,0),(0,),(0,),(,),(,),(,),(,),(,0),(,),(,),(,0),(,),(.)} on th st A =

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

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

LEO VAN IERSEL TU DELFT

LEO VAN IERSEL TU DELFT LEO VAN IERSEL TU DELFT UT LEO VAN IERSEL TU DELFT UT LEO VAN IERSEL TU DELFT TU/ CWI UT LEO VAN IERSEL TU DELFT TU/ CWI UT TUD LEO VAN IERSEL TU DELFT TU/ Tnzni & Kny yr LEO VAN IERSEL TU DELFT Nw Zln.5

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

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

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

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

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

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

UNCORRECTED SAMPLE PAGES 4-1. Naming fractions KEY IDEAS. 1 Each shape represents ONE whole. a i ii. b i ii

UNCORRECTED SAMPLE PAGES 4-1. Naming fractions KEY IDEAS. 1 Each shape represents ONE whole. a i ii. b i ii - Nming frtions Chptr Frtions Eh shp rprsnts ONE whol. i ii Wht frtion is shdd? Writ s frtion nd in words. Wht frtion is not shdd? Writ s frtion nd in words. i ii i ii Writ s mny diffrnt frtions s you

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

Instructions for Section 1

Instructions for Section 1 Instructions for Sction 1 Choos th rspons tht is corrct for th qustion. A corrct nswr scors 1, n incorrct nswr scors 0. Mrks will not b dductd for incorrct nswrs. You should ttmpt vry qustion. No mrks

More information

Last time: introduced our first computational model the DFA.

Last time: introduced our first computational model the DFA. Lctur 7 Homwork #7: 2.2.1, 2.2.2, 2.2.3 (hnd in c nd d), Misc: Givn: M, NFA Prov: (q,xy) * (p,y) iff (q,x) * (p,) (follow proof don in clss tody) Lst tim: introducd our first computtionl modl th DFA. Tody

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

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

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

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

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

Minimum Spanning Trees

Minimum Spanning Trees Minimum Spnning Trs Minimum Spnning Trs Problm A town hs st of houss nd st of rods A rod conncts nd only houss A rod conncting houss u nd v hs rpir cost w(u, v) Gol: Rpir nough (nd no mor) rods such tht:

More information

CSI35 Chapter 11 Review

CSI35 Chapter 11 Review 1. Which of th grphs r trs? c f c g f c x y f z p q r 1 1. Which of th grphs r trs? c f c g f c x y f z p q r . Answr th qustions out th following tr 1) Which vrtx is th root of c th tr? ) wht is th hight

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

Chapter 9. Graphs. 9.1 Graphs

Chapter 9. Graphs. 9.1 Graphs Chptr 9 Grphs Grphs r vry gnrl lss of ojt, us to formliz wi vrity of prtil prolms in omputr sin. In this hptr, w ll s th sis of (finit) unirt grphs, inluing grph isomorphism, onntivity, n grph oloring.

More information

Walk Like a Mathematician Learning Task:

Walk Like a Mathematician Learning Task: Gori Dprtmnt of Euction Wlk Lik Mthmticin Lrnin Tsk: Mtrics llow us to prform mny usful mthmticl tsks which orinrily rquir lr numbr of computtions. Som typs of problms which cn b on fficintly with mtrics

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

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

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals Intgrtion Continud Intgrtion y Prts Solving Dinit Intgrls: Ar Undr Curv Impropr Intgrls Intgrtion y Prts Prticulrly usul whn you r trying to tk th intgrl o som unction tht is th product o n lgric prssion

More information

Ch 1.2: Solutions of Some Differential Equations

Ch 1.2: Solutions of Some Differential Equations Ch 1.2: Solutions of Som Diffrntil Equtions Rcll th fr fll nd owl/mic diffrntil qutions: v 9.8.2v, p.5 p 45 Ths qutions hv th gnrl form y' = y - b W cn us mthods of clculus to solv diffrntil qutions of

More information

WORKSHOP 6 BRIDGE TRUSS

WORKSHOP 6 BRIDGE TRUSS WORKSHOP 6 BRIDGE TRUSS WS6-2 Workshop Ojtivs Lrn to msh lin gomtry to gnrt CBAR lmnts Bom fmilir with stting up th CBAR orinttion vtor n stion proprtis Lrn to st up multipl lo ss Lrn to viw th iffrnt

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

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

Quartets and unrooted level-k networks

Quartets and unrooted level-k networks Phylogntis Workshop, Is Nwton Institut or Mthmtil Sins Cmrig 21/06/2011 Qurtts n unroot lvl-k ntworks Philipp Gmtt Outlin Astrt n xpliit phylognti ntworks Lvl-k ntworks Unroot lvl-1 ntworks n irulr split

More information

On Contract-and-Refine Transformations Between Phylogenetic Trees

On Contract-and-Refine Transformations Between Phylogenetic Trees On Contrt-n-Rfin Trnsformtions Btwn Phylognti Trs Gnshkumr Gnpthy Vijy Rmhnrn Tny Wrnow Astrt Th infrn of volutionry trs using pprohs whih ttmpt to solv th mximum prsimony (MP) n mximum liklihoo (ML) optimiztion

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

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