3/4/14. Today's Lecture Distributed Systems. Why Global Timing? Impact of Clock Synchronization. Time Standards. Replicated Database Update

Size: px
Start display at page:

Download "3/4/14. Today's Lecture Distributed Systems. Why Global Timing? Impact of Clock Synchronization. Time Standards. Replicated Database Update"

Transcription

1 Toy's Ltur Distriut Systms N or synhroniztion Tim synhroniztion thniqus Ltur 9 Tim Synhroniztion Lmport Cloks Vtor Cloks Why Glol Timing? Impt o Clok Synhroniztion Suppos thr wr glolly onsistnt stnr Woul hny Who got lst st on irpln? Who sumitt inl ution i or lin? Di ns mov or snp? Whn h mhin hs its own lok, n vnt tht ourr tr nothr vnt my nvrthlss ssign n rlir. 4 Rplit Dts Upt Upting rplit ts n lving it in n inonsistnt stt Tim Stnrs UT Bs on stronomil osrvtions Grnwih Mn Tim TAI Strt Jn, 958 Eh son is 9,9,63,770 yls o rition mitt y Csium tom Hs ivrg rom UT u to slowing o rth s rottion UTC TAI + lp sons to within 0.9s o UT Currntly 35 Most rnt: Jun 30, 0 5

2 Compring Tim Stnrs Coorint Univrsl Tim (UTC) UT "UTC Is rost rom rio sttions on ln n stllit (.g. GPS) Computrs with rivrs n synhroniz thir loks with ths timing signls Signls rom ln-s sttions r urt to out 0.-0 millison Signls rom GPS r urt to out miroson Why n't w put GPS rivrs on ll our omputrs? 8 Cloks in Distriut Systm Clok Synhroniztion Algorithms Ntwork Computr loks r not gnrlly in prt grmnt Skw: th irn twn th s on two loks (t ny instnt) Computr loks r sujt to lok rit (thy ount t irnt rts) Clok rit rt: th irn pr unit o rom som il rrn lok Orinry qurtz loks rit y out s in - ys. (0-6 ss/s). High prision qurtz loks rit rt is out 0-7 or 0-8 ss/s 9 Th rltion twn lok n UTC whn loks tik t irnt rts. 0 Toy's Ltur N or synhroniztion Tim synhroniztion thniqus Prt ntworks Mssgs lwys rriv, with propgtion ly xtly Lmport Cloks Vtor Cloks Snr sns T in mssg Rivr sts lok to T+ Synhroniztion is xt

3 Synhronous ntworks Synhroniztion in th rl worl Mssgs lwys rriv, with propgtion ly t most D Rl ntworks r synhronous Mssg lys r ritrry Snr sns T in mssg Rivr sts lok to T + D/ Synhroniztion rror is t most D/ Rl ntworks r unrlil Mssgs on t lwys rriv Cristin s Tim Syn Brkly lgorithm A srvr S rivs signls rom UTC sour Pross p rqusts in m r n rivs t in m t rom S p sts its lok to t + T roun / Aury ± (T roun / - min) : us th rlist S puts t in mssg m t is min tr p snt m r. th ltst ws min or m t rriv t p th y S s lok whn m t rrivs is in th rng [t+min, t + T roun - min] p m r m t T roun is th roun trip ror y p" min is n stimt minimum roun trip Tim srvr,s 5 Cristin s lgorithm - singl srvr might il, so thy suggst th us o group o synhroniz srvrs it os not l with ulty srvrs Brkly lgorithm (lso 989) An lgorithm or intrnl synhroniztion o group o omputrs A mstr polls to ollt lok vlus rom th othrs (slvs) Th mstr uss roun trip s to stimt th slvs lok vlus It tks n vrg (liminting ny ov vrg roun trip or with ulty loks) It sns th rquir justmnt to th slvs (ttr thn sning th whih pns on th roun trip ) Msurmnts 5 omputrs, lok synhroniztion 0-5 milliss rit rt < x0-5 I mstr ils, n lt nw mstr to tk ovr (not in oun ) 6 Th Brkly Algorithm () Th Brkly Algorithm () Th mon sks ll th othr mhins or thir lok vlus. Th mhins nswr

4 Th Brkly Algorithm (3) Th mon tlls vryon how to just thir lok. Ntwork Tim Protool (NTP) A srvi or th Intrnt - synhronizs lints to Rliility UTC Primry rom srvrs runnt r onnt pths, to sll, UTC sours uthntits sours Sonry srvrs r synhroniz to primry srvrs Synhroniztion sunt - lowst lvl srvrs in usrs omputrs Figur Th Ntwork Tim Protool (NTP) Uss hirrhy o srvrs Clss srvrs hv highly-urt loks onnt irtly to tomi loks, t. Clss srvrs gt rom only Clss n Clss srvrs Clss 3 srvrs gt rom ny srvr Synhroniztion similr to Cristin s lg. Moii to us multipl on-wy mssgs inst o immit roun-trip Aury: Lol ~ms, Glol ~0ms NTP Rrn Clok Sours (997 survy) In survy o 36,479 prs, oun,733 primry n kup xtrnl rrn sours 3 rio/stllit/mom primry sours 47 GPS stllit (worlwi), GOES stllit (wstrn hmisphr) 57 WWVB rio (US) 7 WWV rio (US) 63 DCF77 rio (Europ) 6 MSF rio (UK) 5 CHU rio (Cn) 7 mom srvi (NIST n USNO (US), PTB (Grmny), NPL (UK)) 5 othr (prision PPS sours, t.),50 lol lok kup sours (us only i ll othr sours il) For som rson or othr, 88 o th,733 sours ppr own t th o th survy Ul Mstr Tim Fility (MTF) (rom Jnury 000) Sptrom 870 WWVB Rivr Sptrom 883 GPS Rivr Sptrom 870 WWVB Rivr Sptrom 883 GPS Rivr Hwltt Pkr 05A Qurtz Frquny Stnr NTP Protool All mos us UDP Eh mssg rs stmps o rnt vnts: Lol s o Sn n Riv o prvious mssg Lol s o Sn o urrnt mssg Ripint nots th o ript T 3 (w hv T 0, T, T, T 3 ) Srvr T T Tim Hwltt Pkr 506A Csium Bm Frquny Stnr m m' Clint T 0 T 3 Tim 3 4 4

5 Aury o NTP How To Chng Tim Timstmps t 0 is th lint's stmp o th rqust pkt trnsmission, t is th srvr's stmp o th rqust pkt rption, t is th srvr's stmp o th rspons pkt trnsmission n t 3 is th lint's stmp o th rspons pkt rption. RTT = wit lint srvr_pro_ = (t 3 -t 0 ) (t -t ) Ost = ((t -t 0 ) + (t 3 -t ))/ = ((ost + ly) + (ost ly))/ Cn t just hng Why not? Chng th upt rt or th lok Chngs in mor grul shion Prvnts inonsistnt lol stmps NTP srvrs iltr pirs <rtt i, ost i >, stimting rliility rom vrition, llowing thm to slt prs Aury o 0s o milliss ovr Intrnt pths ( on LANs) 3/4/4 5 6 Importnt Lssons Toy's Ltur Cloks on irnt systms will lwys hv irntly Skw n rit twn loks Tim isgrmnt twn mhins n rsult in unsirl hvior Clok synhroniztion Rly on -stmp ntwork mssgs Estimt ly or mssg trnsmission Cn synhroniz to UTC or to lol sour Cloks nvr xtly synhroniz Otn inqut or istriut systms might n totlly-orr vnts might n millionth-o--son prision N or synhroniztion Tim synhroniztion thniqus Lmport Cloks Vtor Cloks 7 8 Logil Cptur just th hppns or rltionship twn vnts Disr th ininitsiml grnulrity o Corrspons roughly to uslity Logil n logil loks (Lmport 978) Evnts t thr prosss 30 5

6 Logil n logil loks (Lmport 978) Logil n logil loks (Lmport 978) Inst o synhronizing loks, vnt orring n us. I two vnts ourr t th sm pross p i (i =,, N) thn thy ourr in th orr osrv y p i, tht is th inition o: i. whn mssg, m is snt twn two prosss, sn(m) hppns or riv(m) 3. Th hppn or rltion is trnsitiv Th hppn or rltion is th rltion o usl orring (t ) (t ) us o lso us o 3 3 Logil n logil loks (Lmport 978) Not ll vnts r rlt y Consir n (irnt prosss n no hin o mssgs to rlt thm) thy r not rlt y ; thy r si to onurrnt writtn s Lmport Clok () 3 4 A logil lok is monotonilly inrsing sotwr ountr It n not rlt to physil lok. Eh pross p i hs logil lok, L i whih n us to pply logil stmps to vnts Rul : L i is inrmnt y or h vnt t pross p i Rul : () whn pross p i sns mssg m, it piggyks t = L i () whn p j rivs (m,t) it sts L j := mx(l j, t) n pplis rul or stmping th vnt riv (m) Lmport s lgorithm Eh pross i kps lol lok, L i Thr ruls:. At pross i, inrmnt L i or h vnt. To sn mssg m t pross i, pply rul n thn inlu th urrnt lol in th mssg: i.., sn(m,l i ) 3. To riv mssg (m,t) t pross j, st L j = mx(l j,t) n thn pply rul or -stmping th riv vnt Th glol L() o n vnt is just its lol For n vnt t pross i, L() = L i () Lmport Clok () 3 4 h o,, hs its logil lok initilis to zro, th lok vlus r thos immitly tr th vnt..g. or, or. or, is piggyk n gts mx(0,)+ =

7 Lmport Clok () implis L()<L( )" 3 4 Th onvrs is not tru, tht is L()<L(') os not imply ".g. L() > L() ut! 5 Lmport logil loks Lmport lok L orrs vnts onsistnt with logil hppns or orring I, thn L() < L( ) But not th onvrs L() < L( ) os not imply Similr ruls or onurrny L() = L( ) implis (or istint, ) os not imply L() = L( ) i.., Lmport loks ritrrily orr som onurrnt vnts 37 Totl-orr Lmport loks Toy's Ltur Mny systms rquir totl-orring o vnts, not prtil-orring Us Lmport s lgorithm, ut rk tis using th pross ID L() = M * L i () + i M = mximum numr o prosss i = pross ID N or synhroniztion Tim synhroniztion thniqus Lmport Cloks Vtor Cloks 40 Vtor Cloks Vtor Clok Algorithm Vtor loks ovrom th shortoming o Lmport logil loks" L() < L( ) os not imply hppn or " Gol Wnt orring tht mths uslity V() < V( ) i n only i Mtho Ll h vnt y vtor V() [,, n ] i = # vnts in pross i tht uslly pr Initilly, ll vtors [0,0,,0] For vnt on pross i, inrmnt own i Ll mssg snt with lol vtor Whn pross j rivs mssg with vtor [,,, n ]: St lol h lol ntry k to mx( k, k ) Inrmnt vlu o j 4 7

8 Vtor Cloks Vtor Cloks (,0,0) (,0,0) (,0,0) (,0,0) (,,0) (,,0) (,,0) (,,0) (0,0,) At " ours t (,0,0); ours t (,0,0) " piggyk (,0,0) on " At on ript o us mx ((0,0,0), (,0,0)) = (, 0, 0) n to own lmnt = (,,0) " Mning o =, <=, mx t or vtor stmps" ompr lmnts pirwis (,,) (0,0,) Not tht implis V()<V( ). Th onvrs is lso tru Cn you s pir o prlll vnts?" (prlll) us nithr V() <= V() nor V() <= V()" (,,) Importnt Points Cloks Cn kp losly synhroniz, ut nvr prt Logil Cloks Eno uslity rltionship Lmport loks provi only on-wy noing Vtor loks provi xt uslity inormtion Lst Ltur Clok Syn Importnt Lssons Cloks on irnt systms will lwys hv irntly Skw n rit twn loks Tim isgrmnt twn mhins n rsult in unsirl hvior Two pths to solution: synhroniz loks or nsur onsistnt loks Clok synhroniztion Rly on -stmp ntwork mssgs Estimt ly or mssg trnsmission Cn synhroniz to UTC or to lol sour 46 A sll xmpl A sll xmpl Four lotions: pithr s moun, irst s, hom plt, n thir s Tn vnts: : pithr throws ll to hom : ll rrivs t hom 3 : ttr hits ll to pithr 4 : ttr runs to irst s 5 : runnr runs to hom 6 : ll rrivs t pithr 7 : pithr throws ll to irst s 8 : runnr rrivs t hom 9 : ll rrivs t irst s 0 : ttr rrivs t irst s Pithr knows hppns or 6, whih hppns or 7 Hom plt umpir knows is or 3, whih is or 4, whih is or 8, Rltionship twn 8 n 9 is unlr 8

9 Wys to synhroniz Sn mssg rom irst s to hom? Or to ntrl kpr How long os this mssg tk to rriv? Synhroniz loks or th gm? Cloks rit million to on => son in ys Synhroniz ontinuously uring th gm? GPS, pulsrs, t Th sll xmpl rvisit y th mssg rul 0, us, y th mssg rul 4, y lol orring t hom plt 4 0, y th mssg rul Rpt trnsitivity o th ov rltions 8 9, us No pplition o th ruls yils ithr 8 9 or 9 8 Lmport on th sll xmpl Initilizing h lol lok to 0, w gt L( ) = L( ) = L( 3 ) = 3 L( 4 ) = 4 L( 5 ) = L( 6 ) = 4 L( 7 ) = 5 L( 8 ) = 5 L( 9 ) = 6 (pithr throws ll to hom) (ll rrivs t hom) (ttr hits ll to pithr) (ttr runs to irst s) (runnr runs to hom) (ll rrivs t pithr) (pithr throws ll to irst s) (runnr rrivs t hom) (ll rrivs t irst s) L( 0 ) = 7 (ttr rrivs t irst s) For our xmpl, Lmport s lgorithm sys tht th run sors! Lmport on th sll xmpl Initilizing h lol lok to 0, w gt L( ) = L( ) = L( 3 ) = 3 L( 4 ) = 4 L( 5 ) = L( 6 ) = 4 L( 7 ) = 5 L( 8 ) = 5 L( 9 ) = 6 (pithr throws ll to hom) (ll rrivs t hom) (ttr hits ll to pithr) (ttr runs to irst s) (runnr runs to hom) (ll rrivs t pithr) (pithr throws ll to irst s) (runnr rrivs t hom) (ll rrivs t irst s) L( 0 ) = 7 (ttr rrivs t irst s) For our xmpl, Lmport s lgorithm sys tht th run sors! Vtor loks on th sll xmpl Vtor Cloks () Evnt Vtor Ation [,0,0,0] pithr throws ll to hom [,0,,0] ll rrivs t hom 3 [,0,,0] ttr hits ll to pithr 4 [,0,3,0] ttr runs to irst s) 5 [0,0,0,] runnr runs to hom 6 [,0,,0] ll rrivs t pithr 7 [3,0,,0] pithr throws ll to st s 8 [,0,4,] runnr rrivs t hom 9 [3,,,0] ll rrivs t irst s 0 [3,,3,0] ttr rrivs t irst s Vtor: [p,,h,t] Conurrnt mssg trnsmission using logil loks. 54 9

10 Vtor Cloks () Vtor loks r onstrut y ltting h pross P i mintin vtor VC i with th ollowing two proprtis:. VC i [ i ] is th numr o vnts tht hv ourr so r t P i. In othr wors, VC i [ i ] is th lol logil lok t pross P i.. I VC i [ j ] = k thn P i knows tht k vnts hv ourr t P j. It is thus P i s knowlg o th lol t P j. 55 Vtor Cloks (3) Stps rri out to omplish proprty o prvious sli:. Bor xuting n vnt P i xuts VC i [ i ] VC i [i ] +.. Whn pross P i sns mssg m to P j, it sts m s (vtor) stmp ts (m) qul to VC i tr hving xut th prvious stp. 3. Upon th ript o mssg m, pross P j justs its own vtor y stting VC j [k ] mx{vc j [k ], ts (m)[k ]} or h k, tr whih it xuts th irst stp n livrs th mssg to th pplition. 56 Enoring Cusl Communition Lmport s Logil Cloks () Th "hppns-or" rltion n osrv irtly in two situtions: I n r vnts in th sm pross, n ours or, thn is tru. Enoring usl ommunition I is th vnt o mssg ing snt y on pross, n is th vnt o th mssg ing riv y nothr pross, thn Lmport s Logil Cloks () Lmport s Logil Cloks (3) Thr prosss, h with its own lok. Th loks run t irnt rts. Lmport s lgorithm orrts th loks

11 Lmport s Logil Cloks (4) Th positioning o Lmport s logil loks in istriut systms. Lmport s Logil Cloks (5) Upting ountr C i or pross P i. Bor xuting n vnt P i xuts C i C i +.. Whn pross P i sns mssg m to P j, it sts m s stmp ts (m) qul to C i tr hving xut th prvious stp. 3. Upon th ript o mssg m, pross P j justs its own lol ountr s C j mx{c j, ts (m)}, tr whih it thn xuts th irst stp n livrs th mssg to th pplition. 6 6 Lst Ltur Clok Syn Importnt Lssons Cloks on irnt systms will lwys hv irntly Skw n rit twn loks Tim isgrmnt twn mhins n rsult in unsirl hvior Two pths to solution: synhroniz loks or nsur onsistnt loks Clok synhroniztion Rly on -stmp ntwork mssgs Estimt ly or mssg trnsmission Cn synhroniz to UTC or to lol sour Distriut Prmis Th notion o is wll-in (n msurl) t h singl lotion But th rltionship twn t irnt lotions is unlr Cn minimiz isrpnis, ut nvr limint thm Rlity Sttionry GPS rivrs n gt glol with < µs rror Fw systms sign to us this 63 Glol Positioning Systm () Glol Positioning Systm () Rl worl ts tht omplit GPS It tks whil or t on stllit s position rhs th rivr. Th rivr s lok is gnrlly not in synh with tht o stllit. Computing position in two-imnsionl sp

12 Srvr popultion y strtum (997 survy) Clint popultion y strtum (997 survy) NTP - synhronistion o srvrs Cloks () Th synhroniztion sunt n ronigur i ilurs our,.g. primry tht loss its UTC sour n om sonry sonry tht loss its primry n us nothr primry Mos o synhroniztion: Multist A srvr within high sp LAN multists to othrs whih st loks ssuming som ly (not vry urt) Prour ll A srvr pts rqusts rom othr omputrs (lik Cristiin s lgorithm). Highr ury. Usul i no hrwr multist. Symmtri Pirs o srvrs xhng mssgs ontining inormtion Us whr vry high uris r n (.g. or highr lvls) Figur 6-. Computtion o th mn solr y Cloks () N or Prision Tim Figur 6-3. TAI sons r o onstnt lngth, unlik solr sons. Lp sons r introu whn nssry to kp in phs with th sun. Distriut ts trnstion journlling n logging Stok mrkt uy n sll orrs Sur oumnt stmps (with ryptogrphi rtiition) Avition tri ontrol n position rporting Rio n TV progrmming lunh n monitoring Intrur ttion, lotion n rporting Muli synhroniztion or rl- tlonrning Intrtiv simultion vnt synhroniztion n orring Ntwork monitoring, msurmnt n ontrol Erly ttion o iling ntwork inrstrutur vis n ir onitioning quipmnt Dirntit srvis tri nginring Distriut ntwork gming n trining 7 7

13 Vtor Cloks V i [ i ] is th numr o vnts tht p i hs stmp" V i [ j ] ( j i) is th numr o vnts t p j tht p i hs n t y" Vtor lok V i t pross p i is n rry o N intgrs. initilly V i [j] = 0 or i, j =,, N. or p i stmps n vnt it sts V i [i] := V i [i] + 3. p i piggyks t = V i on vry mssg it sns 4. whn p i rivs (m,t) it sts V i [j] := mx(v i [j], t[j]) j =,, N ( thn or nxt vnt s to own lmnt using rul ) 73 3

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

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

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

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

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

, 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

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

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

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

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

More information

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

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

More information

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

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

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

More information

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

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

More information

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

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

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

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

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

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

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

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

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

More information

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

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

More information

# 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

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

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

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

Present state Next state Q + M N

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

More information

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

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

More information

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

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

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

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

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

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

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

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

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

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

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

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

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

(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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

More information

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

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

More information

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

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued... Progrssiv Printing T.M. CPITLS g 4½+ Th sy, fun (n FR!) wy to tch cpitl lttrs. ook : C o - For Kinrgrtn or First Gr (not for pr-school). - Tchs tht cpitl lttrs mk th sm souns s th littl lttrs. - Tchs th

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

Module 2 Motion Instructions

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

More information

Announcements. 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

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

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

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

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

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

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

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

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

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

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

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

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

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata CSE303 - Introduction to th Thory of Computing Smpl Solutions for Exrciss on Finit Automt Exrcis 2.1.1 A dtrministic finit utomton M ccpts th mpty string (i.., L(M)) if nd only if its initil stt is finl

More information

SAMPLE PAGES. Primary. Primary Maths Basics Series THE SUBTRACTION BOOK. A progression of subtraction skills. written by Jillian Cockings

SAMPLE PAGES. Primary. Primary Maths Basics Series THE SUBTRACTION BOOK. A progression of subtraction skills. written by Jillian Cockings PAGES Primry Primry Mths Bsis Sris THE SUBTRACTION BOOK A prorssion o sutrtion skills writtn y Jillin Cokins INTRODUCTION This ook is intn to hlp sur th mthmtil onpt o sutrtion in hilrn o ll s. Th mstry

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

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

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

DRAWING LIST GENERAL NOTES CIVIL ENGINEER AIR FORCE CENTER COVER SHEET PRE - FINAL MAY 2018 C-1 NOT FOR CONSTRUCTION

DRAWING LIST GENERAL NOTES CIVIL ENGINEER AIR FORCE CENTER COVER SHEET PRE - FINAL MAY 2018 C-1 NOT FOR CONSTRUCTION 3 4 5 6 7 8 RWING LIST GNRL NOTS NUMR 1. US THS OUMNTS IN ONUTION WITH TH STNR SIGN GUI N INTRTIV PROGRMMING WORSHT. -1-1 -2-3 -4-5 -6-7 -8 NM OVR SHT STNR SIGN MOUL PLN & XON MOUL PLN & XON MOULS & PLNS

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

Self-Adjusting Top Trees

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

More information

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

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

Motivation. Problems. Puzzle 1

Motivation. Problems. Puzzle 1 Introution to Roust Algorithms Séstin Tixuil UPMC & IUF Motition Approh Fults n ttks our in th ntwork Th ntwork s usr must not noti somthing wrong hppn A smll numr of fulty omponnts Msking pproh to fult/ttk

More information

Expert System. Knowledge-Based Systems. Page 1. Development of KB Systems. Knowledge base. Expert system = Structured computer program

Expert System. Knowledge-Based Systems. Page 1. Development of KB Systems. Knowledge base. Expert system = Structured computer program Knowlg-Bs Systms Exprt Systm Anrw Kusik 2139 Smns Cntr Iow City, Iow 52242-1527 nrw-kusik@uiow.u http://www.in.uiow.u/~nkusik Tl: 319-335 5934 Fx: 319-335 5669 Knowlg s Infrn Engin Dt Exprt systm = Strutur

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

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

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

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

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

More information

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

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

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

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

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

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

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

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

TOPIC 5: INTEGRATION

TOPIC 5: INTEGRATION TOPIC 5: INTEGRATION. Th indfinit intgrl In mny rspcts, th oprtion of intgrtion tht w r studying hr is th invrs oprtion of drivtion. Dfinition.. Th function F is n ntidrivtiv (or primitiv) of th function

More information