Graphs: Paths, trees and flows

Size: px
Start display at page:

Download "Graphs: Paths, trees and flows"

Transcription

1 in in grph rph: Ph, r n flow ph-fir rh fin vri rhl from nohr givn vrx. Th ph r no h hor on. rph r = hor in = = Jori orll n Jori Pi prmn of ompur in = in wn wo no: lngh of h hor ph wn hm rh-fir rh rph p., UP rh-fir rh imilr o wv propgion rph p., UP rph p., UP

2 rh-fir rh lgorihm vii vri lyr y lyr:,,,,. On h vri lyr hv n vii, r viiing vri lyr +. lgorihm wih wo iv lyr: Vri lyr (urrnly ing vii). Vri lyr + (o vii nx). nrl ruur: quu. rph p., UP lgorihm rph p., UP lgorihm funion (, ) // Inpu: rph (V, ), our vrx. // Oupu: or h vrx u, i[u] i // h in from o u. for ll u V: i[u]= i[] = Q = {} // Quu onining ju whil no Q.mpy(): u = Q.pop_fron() for ll u, v : if i[v] = : i[v] = i[u] + Q.puh_k(v) rph p., UP 7 Runim O( V + ): h vrx i vii on, h g i vii on (for ir grph) or wi (for unir grph). rph p., UP

3 in on g Ruing hp://.wikipi.org/wiki/ijkr-lgorihmu rph p., UP Trking runnr km km Inffiin: mny yl wihou ny inring progr. How ou rl numr? rph p., UP Th runnr lgorihm h ginning, w hv on runnr for h g u v wiing u for h rrivl of h fir runnr. Whn h fir runnr rriv u, ll runnr wiing u r running long hir g u v. ll runnr run onn p: uni / uni W ju n o nno h fir rrivl im vry vrx. km km km km km nno h im of h fir rrivl h no. rph p., UP lgorihm: h xp rrivl im o. No xp rrivl im for h r of vri (). Rp unil hr r no mor runnr: l h rli xp rrivl im vrx no vii y (vrx u, im T). nno finl in u o T. or h ougoing u v: If v h no n vii y n h xp rrivl im for h runnr u v i mllr hn h xp rrivl im v y ny ohr iv runnr, r running long u v n op h ohr runnr going o v. Ohrwi, o no r running. rph p., UP

4 xmpl xmpl = = = = on Quu on Quu : : : : : : : : : : : : : : rph p., UP xmpl on Quu on Quu : : : : : : : : : : : : : : rph p., UP xmpl = = = = on Quu on Quu : : : : : : : : : : : : : : rph p., UP on Quu on Quu : : : : : : : : : : : : : : rph p., UP

5 hor-ph r xmpl ijkr lgorihm for hor ph funion horph(, l, ) // Inpu: rph (V, ), our vrx, // poiiv g lngh {l : } // Oupu: i[u] h h in from, // prv[u] h h pror in h r for ll u V: i[u] = prv[u] = nil W n o: kp li of iv runnr n hir xp rrivl im. l h rli runnr rriving vrx. up h iv runnr n hir rrivl im. rph p., UP 7 ijkr lgorihm: omplxiy Q = mkquu(v) whil no Q.mpy(): u = Q.lmin() for ll u, v : if i[v] > i[u] + l(u, v): i[v] = i[u] + l u, v prv[v] = u Q.rky(v) V im im Th klon of ijkr lgorihm i on, whih i O( V + ) W n o oun for h o of: mkquu: inr V vri o li. lmin: fin h vrx wih min i in h li ( V im) rky: up i for vrx ( im) L u onir wo implmnion for h li: vor n inry hp i[] = Q = mkquu(v) // uing i ky whil no Q.mpy(): u = Q.lmin() for ll u, v : if i[v] > i[u] + l(u, v): i[v] = i[u] + l u, v prv[v] = u Q.rky(v) rph p., UP ijkr lgorihm: omplxiy Implmnion lmin inr/ rky ijkr omplxiy Vor O( V ) O() O( V ) inry hp O(log V ) O(log V ) O(( V + ) log V ) inry hp: Th lmn r or in ompl (ln) inry r. Inrion: pl lmn h oom n l i ul up wpping h loion wih h prn ( mo log V lvl). lmin: Rmov lmn from h roo, k h l no in h r, pl i h roo n l i if own ( mo log V lvl). rky: r h ky in h r n l i ul up (m inrion). ruur migh rquir o known h loion of h vrx in h hp (l of poinr). rph p., UP rph p., UP

6 rph wih ngiv g ijkr lgorihm o no work: - ijkr woul y h h hor ph h lngh=. ijkr i on f up h im n g (u, v) i r: i v = min i v, i u + l u, v Prolm: non-promiing up r no on. oluion: l u no or up h rly. rph wih ngiv g Th hor ph from o n hv mo V g: If h qun of up inlu, u, u, u, u, u,, u k,, in h orr, h hor in from o will ompu orrly (up r lwy f). No h h qun of up o no n o onuiv. oluion: up ll g V im! omplxiy: O( V ). u u u u k rph p., UP llmn-or lgorihm rph p., UP llmn-or: xmpl funion horph(, l, ) // Inpu: rph (V, ), our vrx, // g lngh {l : }, no ngiv yl. // Oupu: i[u] h h in from, // prv[u] h h pror in h r for ll u V: i[u] = prv[u] = nil i[] = rp V im: for ll u, v : if i[v] > i[u] + l(u, v): i[v] = i[u] + l(u, v) prv[v] = u No Irion rph p., UP rph p., UP

7 Ngiv yl hor ph in Wh i h hor in wn n? llmn-or o no work i um h h hor ph will no hv mor hn V g. ngiv yl prou in y nlly pplying roun o h yl. How o ngiv yl? pply llmn-or (up g V im) Prform n xr roun n hk whhr om in r. propry: In ny ph of, h vri ppr in inring opologil orr. ny qun of up h prrv h opologil orr will ompu in orrly. Only on roun viiing h g in opologil orr i uffiin: O( V + ). How o lul h long ph? Ng h g lngh. ompu h hor ph. rph p., UP hor ph lgorihm rph p., UP Minimum pnning Tr funion ghorph(, l, ) // Inpu: (V, ), our vrx, // g lngh {l : }. // Oupu: i[u] h h in from, // prv[u] h h pror in h r for ll u V: i[u] = prv[u] = nil i[] = Linriz for ll u V in linriz orr: for ll u, v : if i[v] > i[u] + l(u, v): i[v] = i[u] + l(u, v) prv[v] = u No r ompur g r link Wigh r minnn o ol: pik u of g uh h h no r onn h minnn o i minimum Th oluion i no uniqu. in nohr on! Propry: n opiml oluion nno onin yl. rph p., UP 7 rph p., UP

8 Propri of r r i n unir grph h i onn n yli. Propry: r on n no h n g. r from n mpy grph. on g im mking ur h i onn wo ionn omponn. Propry: ny onn, unir grph = (V, ) wih = V i r. I i uffiin o prov h i yli. If no, w n lwy rmov g from yl unil h grph om yli. Propry: ny unir grph i r iff hr i uniqu ph wn ny pir of no. If hr woul wo ph wn wo no, h union of h ph woul onin yl. Minimum pnning Tr ivn un unir grph = (V, ) wih g wigh w, fin r T = (V, ), wih, h minimiz wigh T = w. Krukl lgorihm: rply h nx ligh g h o no prou yl. rph p., UP Th u propry rph p., UP Th u propry: xmpl V MT T uppo g X r pr of n MT of = V,. Pik ny u of no for whih X o no ro wn n V, n l h ligh g ro hi priion. Thn X {} i pr of om MT. Proof (kh): L T n MT n um i no in T. If w o T, yl will r wih nohr g ro h u (, V ). W n now rmov n oin nohr r T wih wigh T wigh(t). in T i n MT, hn h wigh mu qul. MT T V rph p., UP rph p., UP

9 Minimum pnning Tr Prim lgorihm ny hm lik hi work (u of h propri of r): X = rp V im: pik V for whih X h no g wn n V l h minimum-wigh g wn n V X = X {} Prim lgorihm: X lwy form ur n i h of X no: V funion Prim(, w) // Inpu: onn unir rph V, // wih g wigh w. // Oupu: n MT fin y h vor prv. for ll u V: o(u)= prv(u)= nil pik ny iniil no u o(u ) = // H prioriy quu uing o ky ( V ) H = mkquu(v) whil H i no mpy: v = lmin(h) for h v, z, z H: if o(z)> w(v, z): o(z)= w v, z prv(z) = v rky(h,z) rph p., UP Prim lgorihm { } /nil /nil /nil /nil /nil /nil / / / /nil /nil, / / /nil /,, / /nil /,,, / /,,,, rph p., UP / omplxiy: h m ijkr lgorihm, O(( V + ) log V ) rph p., UP funion Krukl(, w) Krukl lgorihm Informl lgorihm: or g y wigh. Vii g in ning orr of wigh n hm long hy o no r yl. How o w know whhr nw g will r yl? // Inpu: onn unir rph V, // wih g wigh w. // Oupu: n MT fin y h g in X. X = or h g in y wigh for ll u, v, in ning orr of wigh: if (X h no ph onning u n v): X = X { u, v } rph p., UP

10 ijoin Krukl lgorihm ruur o or ollion of ijoin. Oprion: mk(x): r inglon onining ju x. fin(x): rurn h inifir of h onining x. union(x, y): mrg h onining x n y. Krukl lgorihm u ijoin n ll mk: V im fin: im union: V im funion Krukl(, w) // Inpu: onn unir rph V, // wih g wigh w. // Oupu: n MT fin y h g in X. for ll u V: mk(u) X = or h g in y wigh for ll u, v, in ning orr of wigh: if (fin(u) fin(v)): X = X { u, v } union(u,v) rph p., UP 7 ijoin rph p., UP ijoin Th no r orgniz of r. h r rprn. H H h no h wo riu: prn (π): nor in h r rnk: high of h ur Th roo lmn i h rprniv for h : i prn poinr i ilf (lf-loop). Th ffiiny of h oprion pn on h high of h r. funion mk(x): π x = x rnk x = funion fin(x): whil x π x : x = π x rurn x funion union(x, y): r x = fin(x) r y = fin(y) if r x = r y : rurn if rnk(r x ) > rnk(r y ): π(r y ) = r x l: π(r x ) = r y if rnk(r x ) = rnk(r y ): rnk(r y ) = rnk(r y ) + funion mk(x): π x = x rnk x = funion fin(x): whil x π x : x = π x rurn x rph p., UP rph p., UP

11 ijoin fr mk(),,mk(): fr union(,), union(,), union(,): fr union(,), union(,): fr union(,): ijoin : ph omprion omplxiy of Krukl lgorihm: O( log V ). oring g: O log O( log V ). in + union ( im): O( log V ). How ou if h g r lry or or oring n on in linr im (wigh r mll)? Ph omprion: Propry: ny roo no of rnk k h l k no in i r. Propry: If hr r n lmn ovrll, hr n mo nτ k no of rnk k. Thrfor, ll r hv high log n. rph p., UP ijoin : ph omprion rph p., UP Mx-flow/min-u prolm funion fin(x): if x π x : π(x)= fin(π x ) rurn π(x) How muh wr n you pump from our o rg? fin(i) I H H J OpnVlv, y J HYUN L I J K moriz o of fin: O() I K Krukl o: O( ) (if oring h linr o) H J rph p., UP K Wh i h fw numr of grn u h n o u o h no wr will l o flow from h hyrn o h uk? Mx-flow/Min-u lgorihm. rillin.org. hp://rillin.org/wiki/mx-flow-min-u-lgorihm/ rph p., UP

12 kwr Mx-flow/min-u prolm: ppliion Nwork h rry, wr, oil, lriiy, r,. How o mximiz ug? How o minimiz o? How o mximiz rliiliy? Mulipl ppliion omin: ompur nwork Img proing ompuionl iology irlin huling mining iriu ompuing Mol: ir grph = V,. Two pil no, V. pii > on h g. Mx-flow prolm ol: ign flow f o h g of h nwork ifying: f for ll (g piy no x) or ll no u (xp n ), h flow nring h no i qul o h flow xiing h no: w,u f wu = u,z f uz. iz of flow: ol quniy n from o (qul o h quniy lving ): iz f =,u f u rph p., UP ugmning ph low ivn flow, n ugmning ph rprn fil iionl flow from o. rph p., UP ugmning ph low ugmning ph n hv forwr n kwr g. ugmning ph Nw flow ugmning ph Nw flow rph p., UP 7 rph p., UP

13 ugmning ph ivn flow f, n ugmning ph i ir ph from o, whih oni of g from, u no nrily in h m irion. h of h g ifi xly on of h following wo oniion: i in h m irion in (forwr) n f <. Th iffrn f i ll h lk of h g. i in h oppoi irion (kwr) n f >. I rprn h f h om flow n orrow from h urrn flow. rph p., UP Riul grph rph p., UP low rph Riul grph kwr forwr or-ulkron lgorihm: xmpl rph p., UP Riul low or-ulkron lgorihm: xmpl rph p., UP

14 or-ulkron lgorihm or-ulkron lgorihm: omplxiy funion or-ulkron(,,) // Inpu: ir rph V, wih g pii. // n n h our n rg of h flow. // Oupu: flow f h mximiz h iz of h flow. // or h u, v, f(v, u) rprn i flow. for ll u, v : f u, v = u, v // orwr g f v, u = // kwr g whil hr xi ph p = in h riul grph: f p = min{f u, v : u, v p} for ll u, v p: f u, v = f u, v f(p) f v, u = f v, u + f(p) ining ph in h riul grph rquir O( ) im (uing or ). How mny irion (ugmning ph) r rquir? Th wor i rlly : O( ), wih ing h lrg piy of n g (if only ingrl vlu r u). y ling h ph wih fw g (uing ) h mximum numr of irion i O( V ). y rfully ling f ugmning ph (uing om vrin of ijkr lgorihm), h numr of irion n ru. or-ulkron lgorihm i O( V ) if i u o l h ph wih fw g. rph p., UP Mx-flow prolm rph p., UP Min-u lgorihm u: n (, )-u priion h no ino wo ijoin group, L n R, uh h L n R. or ny flow f n ny (, )-u (L, R): iz f piy L, R. Th mx-flow min-u horm: L R rph ining u wih minimum piy: Riul grph Th iz of h mximum flow qul h piy of h mll (, )-u. Th ugmning-ph horm: flow i mximum iff i mi no ugmning ph.. olv h mx-flow prolm wih or-ulkron.. ompu L h of no rhl from in h riul grph.. fin R = V L.. Th u (L, R) i min-u. rph p., UP rph p., UP

15 ipri mhing ipri mhing OY lix rn rl vi IRL i r riin un lix rn rl vi i r riin un Thr i n g wn oy n girl if hy lik h ohr. n w pik oupl o h vryon h xly on prnr h h/h lik? mhing: if w pik (lix, i) n (rn, riin), hn w nno fin oupl for r, un, rl n vi. prf mhing woul : (lix, r), (rn, un), (rl, i) n (vi, riin). Ru o mx-flow prolm wih =. Quion: n w lwy gurn n ingr-vlu flow? Propry: if ll g pii r ingr, hn h opiml flow foun y or-ulkron lgorihm i ingrl. I i y o h h flow of h ugmning ph foun h irion i ingrl. rph p., UP 7 rph p., UP ijkr (. in [PV]) H XRI Run ijkr lgorihm ring no : rw l howing h inrmi in vlu of ll h no h irion how h finl hor-ph r rph p., UP rph p., UP

16 llmn-or (. in [PV]) Nw ro (. in [PV]) Run llmn-or lgorihm ring no : rw l howing h inrmi in vlu of ll h no h irion how h finl hor-ph r I H - Thr i nwork of ro = (V, ) onning of ii V. h ro in h n oi lngh l. Thr i propol o on nw ro o hi nwork, n hr i li of pir of ii wn whih h nw ro n uil. h uh ponil ro h n oi lngh. ignr for h puli work prmn you r k o rmin h ro who iion o h xiing nwork woul rul in h mximum r in h riving in wn wo fix ii n in h nwork. iv n ffiin lgorihm for olving hi prolm. rph p., UP Minimum pnning Tr rph p., UP low nwork J K H 7 I 7 lul h hor ph r from no uing ijkr lgorihm. lul h MT uing Prim lgorihm. Ini h qun of g o h r n h voluion of h in l. lul h MT uing Krukl lgorihm. Ini h qun of g o h r n h voluion of h ijoin. In of i wn wo g, ry o l h on h i no in Prim r. in h mximum flow from o T. iv qun of ugmning ph h l o h mximum flow. rw h riul grph fr fining h mximum flow. in minimum u wn n T. T [from PV] rph p., UP rph p., UP

17 loo rnfuion g-ijoin ph nhuii lrion of unny y prominn norhrn univriy h rul in h rrivl h univriy' mil lini of un in n of mrgny rmn. h of h un rquir rnfuion of on uni of whol loo. Th lini h uppli of 7 uni of whol loo. Th numr of uni of loo vill in h of h four mjor loo group n h iriuion of pin mong h group i ummriz low. loo yp O upply mn Typ pin n only riv yp or O; yp pin n riv only yp or O; yp O pin n riv only yp O; n yp pin n riv ny of h four yp. iv mxflow formulion h rmin iriuion h ifi h mn of mximum numr of pin. ivn igrph = (V, ) n vri, V, ri n lgorihm h fin h mximum numr of g-ijoin ph from o. No: wo ph r g-ijoin if hy o no hr ny g. n w hv nough loo uni for ll h un? our: gwik n Wyn, lgorihm, h iion,. rph p., UP rph p., UP

Jonathan Turner Exam 2-10/28/03

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

More information

Combinatorial Optimization

Combinatorial Optimization Cominoril Opimizion Prolm : oluion. Suppo impl unir rp mor n on minimum pnnin r. Cn Prim lorim (or Krukl lorim) u o in ll o m? Explin wy or wy no, n iv n xmpl. Soluion. Y, Prim lorim (or Krukl lorim) n

More information

CS 541 Algorithms and Programs. Exam 2 Solutions. Jonathan Turner 11/8/01

CS 541 Algorithms and Programs. Exam 2 Solutions. Jonathan Turner 11/8/01 CS 1 Algorim nd Progrm Exm Soluion Jonn Turnr 11/8/01 B n nd oni, u ompl. 1. (10 poin). Conidr vrion of or p prolm wi mulipliiv o. In i form of prolm, lng of p i produ of dg lng, rr n um. Explin ow or

More information

CSE 421 Algorithms. Warmup. Dijkstra s Algorithm. Single Source Shortest Path Problem. Construct Shortest Path Tree from s

CSE 421 Algorithms. Warmup. Dijkstra s Algorithm. Single Source Shortest Path Problem. Construct Shortest Path Tree from s CSE Alorihm Rihr Anron Dijkr lorihm Sinl Sor Shor Ph Prolm Gin rph n r r Drmin in o ry r rom Iniy hor ph o h r Epr onily hor ph r Eh r h poinr o pror on hor ph Conr Shor Ph Tr rom Wrmp - - I P i hor ph

More information

1 Finite Automata and Regular Expressions

1 Finite Automata and Regular Expressions 1 Fini Auom nd Rgulr Exprion Moivion: Givn prn (rgulr xprion) for ring rching, w migh wn o convr i ino drminiic fini uomon or nondrminiic fini uomon o mk ring rching mor fficin; drminiic uomon only h o

More information

Shortest Paths. CSE 421 Algorithms. Bottleneck Shortest Path. Negative Cost Edge Preview. Compute the bottleneck shortest paths

Shortest Paths. CSE 421 Algorithms. Bottleneck Shortest Path. Negative Cost Edge Preview. Compute the bottleneck shortest paths Shor Ph CSE Alorihm Rihr Anron Lr 0- Minimm Spnnin Tr Ni Co E Dijkr lorihm m poii o For om ppliion, ni o mk n Shor ph no wll in i rph h ni o yl - - - Ni Co E Priw Topoloil Sor n or olin h hor ph prolm

More information

Library Support. Netlist Conditioning. Observe Point Assessment. Vector Generation/Simulation. Vector Compression. Vector Writing

Library Support. Netlist Conditioning. Observe Point Assessment. Vector Generation/Simulation. Vector Compression. Vector Writing hpr 2 uomi T Prn Gnrion Fundmnl hpr 2 uomi T Prn Gnrion Fundmnl Lirry uppor Nli ondiioning Orv Poin mn Vor Gnrion/imulion Vor omprion Vor Wriing Figur 2- Th Ovrll Prn Gnrion Pro Dign-or-T or Digil I nd

More information

Mathcad Lecture #4 In-class Worksheet Vectors and Matrices 1 (Basics)

Mathcad Lecture #4 In-class Worksheet Vectors and Matrices 1 (Basics) Mh Lr # In-l Workh Vor n Mri (Bi) h n o hi lr, o hol l o: r mri n or in Mh i mri prorm i mri mh oprion ol m o linr qion ing mri mh. Cring Mri Thr r rl o r mri. Th "Inr Mri" Wino (M) B K Poin Rr o

More information

RUTH. land_of_israel: the *country *which God gave to his people in the *Old_Testament. [*map # 2]

RUTH. land_of_israel: the *country *which God gave to his people in the *Old_Testament. [*map # 2] RUTH 1 Elimlk g ln M 1-2 I in im n ln Irl i n *king. Tr r lr rul ln. Ty r ug. Tr n r l in Ju u r g min. Elimlk mn y in n Blm in Ju. H i nm Nmi. S n Elimlk 2 *n. Tir nm r Mln n Kilin. Ty r ll rm Er mily.

More information

Labeling Problem & Graph-Based Solution

Labeling Problem & Graph-Based Solution Lling Prolm & Grph-B Soluion Am M. Ali Lling Prolm In lling Prolm w hv o i P n o ll L : rprn img ur {.g. pixl, g, img gmn,.}. Fur my hv om nurl ruur pixl r rrng in 2D rry. : rprn innii, iprii,. P L Lling

More information

Design and Analysis of Algorithms (Autumn 2017)

Design and Analysis of Algorithms (Autumn 2017) Din an Analyi o Alorim (Auumn 2017) Exri 3 Soluion 1. Sor pa Ain om poiiv an naiv o o ar o rap own low, o a Bllman-For in a or pa. Simula ir alorim a ru prolm o a layr DAG ( li), or on a an riv rom rurrn.

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

CSC 373: Algorithm Design and Analysis Lecture 9

CSC 373: Algorithm Design and Analysis Lecture 9 CSC 373: Algorihm Deign n Anlyi Leure 9 Alln Boroin Jnury 28, 2013 1 / 16 Leure 9: Announemen n Ouline Announemen Prolem e 1 ue hi Friy. Term Te 1 will e hel nex Mony, Fe in he uoril. Two nnounemen o follow

More information

Graduate Algorithms CS F-18 Flow Networks

Graduate Algorithms CS F-18 Flow Networks Grue Algorihm CS673-2016F-18 Flow Nework Dvi Glle Deprmen of Compuer Siene Univeriy of Sn Frnio 18-0: Flow Nework Diree Grph G Eh ege weigh i piy Amoun of wer/eon h n flow hrough pipe, for inne Single

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

Statistics Assessing Normality Gary W. Oehlert School of Statistics 313B Ford Hall

Statistics Assessing Normality Gary W. Oehlert School of Statistics 313B Ford Hall Siic 504 0. Aing Normliy Gry W. Ohlr School of Siic 33B For Hll 6-65-557 gry@.umn.u Mny procur um normliy. Som procur fll pr if h rn norml, whr ohr cn k lo of bu n kp going. In ihr c, i nic o know how

More information

Jonathan Turner Exam 2-12/4/03

Jonathan Turner Exam 2-12/4/03 CS 41 Algorim an Program Prolm Exam Soluion S Soluion Jonaan Turnr Exam -1/4/0 10/8/0 1. (10 poin) T igur low ow an implmnaion o ynami r aa ruur wi vral virual r. Sow orrponing o aual r (owing vrx o).

More information

Single Correct Type. cos z + k, then the value of k equals. dx = 2 dz. (a) 1 (b) 0 (c)1 (d) 2 (code-v2t3paq10) l (c) ( l ) x.

Single Correct Type. cos z + k, then the value of k equals. dx = 2 dz. (a) 1 (b) 0 (c)1 (d) 2 (code-v2t3paq10) l (c) ( l ) x. IIT JEE/AIEEE MATHS y SUHAAG SIR Bhopl, Ph. (755)3 www.kolsss.om Qusion. & Soluion. In. Cl. Pg: of 6 TOPIC = INTEGRAL CALCULUS Singl Corr Typ 3 3 3 Qu.. L f () = sin + sin + + sin + hn h primiiv of f()

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

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

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

EE Control Systems LECTURE 11

EE Control Systems LECTURE 11 Up: Moy, Ocor 5, 7 EE 434 - Corol Sy LECTUE Copyrigh FL Lwi 999 All righ rrv POLE PLACEMET A STEA-STATE EO Uig fc, o c ov h clo-loop pol o h h y prforc iprov O c lo lc uil copor o oi goo y- rcig y uyig

More information

Solutions to assignment 3

Solutions to assignment 3 D Sruure n Algorihm FR 6. Informik Sner, Telikeplli WS 03/04 hp://www.mpi-.mpg.e/~ner/oure/lg03/inex.hml Soluion o ignmen 3 Exerie Arirge i he ue of irepnie in urreny exhnge re o rnform one uni of urreny

More information

Ma/CS 6a Class 15: Flows and Bipartite Graphs

Ma/CS 6a Class 15: Flows and Bipartite Graphs //206 Ma/CS 6a Cla : Flow and Bipari Graph By Adam Shffr Rmindr: Flow Nwork A flow nwork i a digraph G = V, E, oghr wih a ourc vrx V, a ink vrx V, and a capaciy funcion c: E N. Capaciy Sourc 7 a b c d

More information

Image Modeling & Segmentation

Image Modeling & Segmentation Img Moling & Sgmnion Aly Frg n Am Ali Lur #7 MGRF- Img Anlyi Fiing MRF mol o n img rquir h h prmr o h mol im rom mpl o h img Th lirur i rih wih work h propo irn MGRF mol whih r uil or pii ym hvior. Uully,

More information

Final Exam : Solutions

Final Exam : Solutions Comp : Algorihm and Daa Srucur Final Exam : Soluion. Rcuriv Algorihm. (a) To bgin ind h mdian o {x, x,... x n }. Sinc vry numbr xcp on in h inrval [0, n] appar xacly onc in h li, w hav ha h mdian mu b

More information

Eager st-ordering. Universität Konstanz. Ulrik Brandes. Konstanzer Schriften in Mathematik und Informatik Nr. 171, April 2002 ISSN

Eager st-ordering. Universität Konstanz. Ulrik Brandes. Konstanzer Schriften in Mathematik und Informatik Nr. 171, April 2002 ISSN Univriä Konnz Er -Orrin Ulrik Brn Konnzr Srin in Mmik un Inormik Nr. 171, April 2002 ISSN 1430 3558 Fri Mmik un Siik Fri Inormik un Inormionwin Univriä Konnz F D 188, 78457 Konnz, Grmny Emil: prprin@inormik.uni

More information

A Study of the Solutions of the Lotka Volterra. Prey Predator System Using Perturbation. Technique

A Study of the Solutions of the Lotka Volterra. Prey Predator System Using Perturbation. Technique Inrnionl hmil orum no. 667-67 Sud of h Soluions of h o Volrr r rdor Ssm Using rurion Thniqu D.Vnu ol Ro * D. of lid hmis IT Collg of Sin IT Univrsi Vishnm.. Indi Y... Thorni D. of lid hmis IT Collg of

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

Global Solutions of the SKT Model in Population Dynamics

Global Solutions of the SKT Model in Population Dynamics Volm 7 No 7 499-5 ISSN: 3-88 rin rion; ISSN: 34-3395 on-lin rion rl: h://ijm ijm Glol Solion of h SK Mol in Polion Dnmi Rizg Hor n Mo Soilh USH El li Ezzor lgir lgri rizg@gmilom USH El li Ezzor lgir lgri

More information

Midterm. Answer Key. 1. Give a short explanation of the following terms.

Midterm. Answer Key. 1. Give a short explanation of the following terms. ECO 33-00: on nd Bnking Souhrn hodis Univrsi Spring 008 Tol Poins 00 0 poins for h pr idrm Answr K. Giv shor xplnion of h following rms. Fi mon Fi mon is nrl oslssl produd ommodi h n oslssl sord, oslssl

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

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

Pupil / Class Record We can assume a word has been learned when it has been either tested or used correctly at least three times.

Pupil / Class Record We can assume a word has been learned when it has been either tested or used correctly at least three times. 2 Pupi / Css Rr W ssum wr hs b r wh i hs b ihr s r us rry s hr ims. Nm: D Bu: fr i bus brhr u firs hf hp hm s uh i iv iv my my mr muh m w ih w Tik r pp push pu sh shu sisr s sm h h hir hr hs im k w vry

More information

Eager st-ordering. 1 Introduction. Ulrik Brandes

Eager st-ordering. 1 Introduction. Ulrik Brandes Er -Orrin Ulrik Brn Dprmn o Compur & Inormion Sin, Univriy o Konnz ulrik.rn@uni-konnz. Ar. Givn ionn rp G =(V,E) wi{, } E, n -orrin i n orrin v 1,...,v n o V u = v 1, = v n,n vry or vrx o ir-numr n lowr-numr

More information

Overview. Splay trees. Balanced binary search trees. Inge Li Gørtz. Self-adjusting BST (Sleator-Tarjan 1983).

Overview. Splay trees. Balanced binary search trees. Inge Li Gørtz. Self-adjusting BST (Sleator-Tarjan 1983). Ovrvw B r rh r: R-k r -3-4 r 00 Ig L Gør Amor Dm rogrmmg Nwork fow Srg mhg Srg g Comuo gomr Irouo o NP-om Rom gorhm B r rh r -3-4 r Aow,, or 3 k r o Prf Evr h from roo o f h m gh mr h E w E R E R rgr h

More information

CRABTREE ROHRBAUGH & ASSOCIATES - ARCHITECTS

CRABTREE ROHRBAUGH & ASSOCIATES - ARCHITECTS OL UNKR 00 NO OR ONRUION LL RPOR, PLN PIIION N OMPUR IL RLING O HI PROJ R H PROPRY O RR, ROHRUGH & OI. RR ROHRUGH & OI RIN LL OMMON LW, U N OHR RRV RIGH INLUING H OPYRIGH HRO. RPROUION O H MRIL HRIN OR

More information

Instructors Solution for Assignment 3 Chapter 3: Time Domain Analysis of LTIC Systems

Instructors Solution for Assignment 3 Chapter 3: Time Domain Analysis of LTIC Systems Inrucor Soluion for Aignmn Chapr : Tim Domain Anali of LTIC Sm Problm i a 8 x x wih x u,, an Zro-inpu rpon of h m: Th characriic quaion of h LTIC m i i 8, which ha roo a ± j Th zro-inpu rpon i givn b zi

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

, 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

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

Distributed Algorithms for Secure Multipath Routing in Attack-Resistant Networks

Distributed Algorithms for Secure Multipath Routing in Attack-Resistant Networks 1 Diriu Algorihm or Sur Muliph Rouing in Ak-Rin Nwork Prik P. C. L, Vihl Mir, n Dn Runin Ar To proivly n gin inrur rom rily joprizing ingl-ph ion, w propo iriu ur muliph oluion o rou ro mulipl ph o h inrur

More information

Life Science Journal 2014;11(9) An Investigation of the longitudinal fluctuations of viscoelastic cores

Life Science Journal 2014;11(9)   An Investigation of the longitudinal fluctuations of viscoelastic cores Lif Sin Journl (9) h://wwwlifiniom n Invigion of h longiuinl fluuion of violi or Kurnov Ni yg, Bjnov Vul Gmz Drmn of Gnrl Mh, Sumgi S Univriy, Sumgi, ZE 5, zrijn vul@gmilom r: I i nry o l rolm from ynmi

More information

Maximum Flow. Flow Graph

Maximum Flow. Flow Graph Mximum Flow Chper 26 Flow Grph A ommon enrio i o ue grph o repreen flow nework nd ue i o nwer queion ou meril flow Flow i he re h meril move hrough he nework Eh direed edge i ondui for he meril wih ome

More information

Relation between Fourier Series and Transform

Relation between Fourier Series and Transform EE 37-3 8 Ch. II: Inro. o Sinls Lcur 5 Dr. Wih Abu-Al-Su Rlion bwn ourir Sris n Trnsform Th ourir Trnsform T is riv from h finiion of h ourir Sris S. Consir, for xmpl, h prioic complx sinl To wih prio

More information

16.512, Rocket Propulsion Prof. Manuel Martinez-Sanchez Lecture 3: Ideal Nozzle Fluid Mechanics

16.512, Rocket Propulsion Prof. Manuel Martinez-Sanchez Lecture 3: Ideal Nozzle Fluid Mechanics 6.5, Rok ropulsion rof. nul rinz-snhz Lur 3: Idl Nozzl luid hnis Idl Nozzl low wih No Sprion (-D) - Qusi -D (slndr) pproximion - Idl gs ssumd ( ) mu + Opimum xpnsion: - or lss, >, ould driv mor forwrd

More information

Math 266, Practice Midterm Exam 2

Math 266, Practice Midterm Exam 2 Mh 66, Prcic Midrm Exm Nm: Ground Rul. Clculor i NOT llowd.. Show your work for vry problm unl ohrwi d (pril crdi r vilbl). 3. You my u on 4-by-6 indx crd, boh id. 4. Th bl of Lplc rnform i vilbl h l pg.

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

NEWBERRY FOREST MGT UNIT Stand Level Information Compartment: 10 Entry Year: 2001

NEWBERRY FOREST MGT UNIT Stand Level Information Compartment: 10 Entry Year: 2001 iz oy- kg vg. To. 1 M 6 M 10 11 100 60 oh hwoo uvg N o hul 0 Mix bg. woo, moly low quliy. Coif ompo houghou - WP/hmlok/pu/blm/. vy o whi pi o h ouh fig of. iffiul o. Th o hi i o PVT l wh h g o wll big

More information

Applications of these ideas. CS514: Intermediate Course in Operating Systems. Problem: Pictorial version. 2PC is a good match! Issues?

Applications of these ideas. CS514: Intermediate Course in Operating Systems. Problem: Pictorial version. 2PC is a good match! Issues? CS514: Inmi Co in Oing Sm Poo Kn imn K Ooki: T liion o h i O h h k h o Goi oool Dii monioing, h, n noiiion gmn oool, h 2PC n 3PC Unling hm: om hing n ong om o onin, om n mng ih k oi To, l look n liion

More information

Revisiting what you have learned in Advanced Mathematical Analysis

Revisiting what you have learned in Advanced Mathematical Analysis Fourir sris Rvisiing wh you hv lrnd in Advncd Mhmicl Anlysis L f x b priodic funcion of priod nd is ingrbl ovr priod. f x cn b rprsnd by rigonomric sris, f x n cos nx bn sin nx n cos x b sin x cosx b whr

More information

The Procedure Abstraction Part II: Symbol Tables and Activation Records

The Procedure Abstraction Part II: Symbol Tables and Activation Records Th Produr Absrion Pr II: Symbol Tbls nd Aivion Rords Th Produr s Nm Sp Why inrodu lxil soping? Provids ompil-im mhnism for binding vribls Ls h progrmmr inrodu lol nms How n h ompilr kp rk of ll hos nms?

More information

T HE 1017TH MEETING OF THE BRODIE CLUB The 1017th Meeting of the Brodie Club was held at 7:30 pm on January 15, 2008 in the R amsay Wright Laboratorie

T HE 1017TH MEETING OF THE BRODIE CLUB The 1017th Meeting of the Brodie Club was held at 7:30 pm on January 15, 2008 in the R amsay Wright Laboratorie 1017 MN OF BRO LUB 1017h M Bi lu hl 7:30 u 15, 2008 R Wih Li Uivi. hi: : A h 28 u. u: hl M, u A i u, u vi ull R : K Ah, Oliv B, Bill Rl N W BUN: M u vl: l v, Bu Fll, v ull l B u Fll i Fu k ul M, l u u

More information

Laplace Transform. National Chiao Tung University Chun-Jen Tsai 10/19/2011

Laplace Transform. National Chiao Tung University Chun-Jen Tsai 10/19/2011 plc Trnorm Nionl Chio Tung Univriy Chun-Jn Ti /9/ Trnorm o Funcion Som opror rnorm uncion ino nohr uncion: d Dirniion: x x, or Dx x dx x Indini Ingrion: x dx c Dini Ingrion: x dx 9 A uncion my hv nicr

More information

FL/VAL ~RA1::1. Professor INTERVI of. Professor It Fr recru. sor Social,, first of all, was. Sys SDC? Yes, as a. was a. assumee.

FL/VAL ~RA1::1. Professor INTERVI of. Professor It Fr recru. sor Social,, first of all, was. Sys SDC? Yes, as a. was a. assumee. B Pror NTERV FL/VAL ~RA1::1 1 21,, 1989 i n or Socil,, fir ll, Pror Fr rcru Sy Ar you lir SDC? Y, om um SM: corr n 'd m vry ummr yr. Now, y n y, f pr my ry for ummr my 1 yr Un So vr ummr cour d rr o l

More information

10/30/12. Today. CS/ENGRD 2110 Object- Oriented Programming and Data Structures Fall 2012 Doug James. DFS algorithm. Reachability Algorithms

10/30/12. Today. CS/ENGRD 2110 Object- Oriented Programming and Data Structures Fall 2012 Doug James. DFS algorithm. Reachability Algorithms 0/0/ CS/ENGRD 0 Ojt- Orint Prormmin n Dt Strutur Fll 0 Dou Jm Ltur 9: DFS, BFS & Shortt Pth Toy Rhility Dpth-Firt Srh Brth-Firt Srh Shortt Pth Unwiht rph Wiht rph Dijktr lorithm Rhility Alorithm Dpth Firt

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

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

CS3510 Design & Analysis of Algorithms Fall 2017 Section A. Test 3 Solutions. Instructor: Richard Peng In class, Wednesday, Nov 15, 2017

CS3510 Design & Analysis of Algorithms Fall 2017 Section A. Test 3 Solutions. Instructor: Richard Peng In class, Wednesday, Nov 15, 2017 Uer ID (NOT he 9 igi numer): gurell4 CS351 Deign & Anlyi of Algorihm Fll 17 Seion A Te 3 Soluion Inruor: Rihr Peng In l, Weney, Nov 15, 17 Do no open hi quiz ookle unil you re iree o o o. Re ll he inruion

More information

1. Be a nurse for 2. Practice a Hazard hunt 4. ABCs of life do. 7. Build a pasta sk

1. Be a nurse for 2. Practice a Hazard hunt 4. ABCs of life do. 7. Build a pasta sk Y M B P V P U up civii r i d d Wh clu dy 1. B nur fr cll 2. Prcic 999 3. Hzrd hun d 4. B f lif d cld grm 5. Mk plic g hzrd 6. p cmp ln 7. Build p k pck? r hi p Bvr g c rup l fr y k cn 7 fu dr, u d n cun

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

Derivation of the differential equation of motion

Derivation of the differential equation of motion Divion of h iffnil quion of oion Fis h noions fin h will us fo h ivion of h iffnil quion of oion. Rollo is hough o -insionl isk. xnl ius of h ll isnc cn of ll (O) - IDU s cn of gviy (M) θ ngl of inclinion

More information

2. The Laplace Transform

2. The Laplace Transform Th aac Tranorm Inroucion Th aac ranorm i a unamna an vry uu oo or uying many nginring robm To in h aac ranorm w conir a comx variab σ, whr σ i h ra ar an i h imaginary ar or ix vau o σ an w viw a a oin

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

Factors Success op Ten Critical T the exactly what wonder may you referenced, being questions different the all With success critical ten top the of l

Factors Success op Ten Critical T the exactly what wonder may you referenced, being questions different the all With success critical ten top the of l Fr Su p T rl T xl r rr, bg r ll Wh u rl p l Fllg ll r lkg plr plr rl r kg: 1 k r r u v P 2 u l r P 3 ) r rl k 4 k rprl 5 6 k prbl lvg hkg rl 7 lxbl F 8 l S v 9 p rh L 0 1 k r T h r S pbl r u rl bv p p

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

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

1. Accident preve. 3. First aid kit ess 4. ABCs of life do. 6. Practice a Build a pasta sk

1. Accident preve. 3. First aid kit ess 4. ABCs of life do. 6. Practice a Build a pasta sk Y M D B D K P S V P U D hi p r ub g rup ck l yu cn 7 r, f r i y un civi i u ir r ub c fr ll y u n rgncy i un pg 3-9 bg i pr hich. ff c cn b ll p i f h grup r b n n c rk ivii ru gh g r! i pck? i i rup civ

More information

Shortest Path With Negative Weights

Shortest Path With Negative Weights Shor Pah Wih Ngaiv Wigh 1 9 18-1 19 11 1-8 1 Conn Conn. Dird hor pah wih ngaiv wigh. Ngaiv yl dion. appliaion: urrny xhang arbirag Tramp amr problm. appliaion: opimal piplining of VLSI hip Shor Pah wih

More information

Binomials and Pascal s Triangle

Binomials and Pascal s Triangle Binomils n Psl s Tringl Binomils n Psl s Tringl Curriulum R AC: 0, 0, 08 ACS: 00 www.mthltis.om Binomils n Psl s Tringl Bsis 0. Intif th prts of th polnomil: 8. (i) Th gr. Th gr is. (Sin is th highst

More information

Overview. Splay trees. Balanced binary search trees. Inge Li Gørtz. Self-adjusting BST (Sleator-Tarjan 1983).

Overview. Splay trees. Balanced binary search trees. Inge Li Gørtz. Self-adjusting BST (Sleator-Tarjan 1983). Ovrvw Bn nr rh r: R-k r n -- r 00 Ing L Gør Amor n Dnm rogrmmng Nwork fow Srng mhng Srng nng Comuon gomr Inrouon o NP-omn Rnom gorhm Bn nr rh r -- r. Aow,, or k r no Prf n. Evr h from roo o f h m ngh.

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

Advanced Engineering Mathematics, K.A. Stroud, Dexter J. Booth Engineering Mathematics, H.K. Dass Higher Engineering Mathematics, Dr. B.S.

Advanced Engineering Mathematics, K.A. Stroud, Dexter J. Booth Engineering Mathematics, H.K. Dass Higher Engineering Mathematics, Dr. B.S. Rfrc: (i) (ii) (iii) Advcd Egirig Mhmic, K.A. Sroud, Dxr J. Booh Egirig Mhmic, H.K. D Highr Egirig Mhmic, Dr. B.S. Grwl Th mhod of m Thi coi of h followig xm wih h giv coribuio o h ol. () Mid-rm xm : 3%

More information

A-1 WILDCARD BEER TASTING ROOM 3 DRAWING INDEX & STATE CODES 4 PROJECT DATA SOLANO AVE KAINS AVE. 5 AERIAL VIEW 6 PROJECT TEAM TENANT IMPROVEMENTS

A-1 WILDCARD BEER TASTING ROOM 3 DRAWING INDEX & STATE CODES 4 PROJECT DATA SOLANO AVE KAINS AVE. 5 AERIAL VIEW 6 PROJECT TEAM TENANT IMPROVEMENTS NN : 11 ONO VNU, BNY OWN: WI BWING O. XIING NN U: I B ING NN NB : FI FOO 1,090 F NO HNG MZZNIN 80 F 6 F O 1,70 F 1,5 F MZZNIN : MZZNIN I U O % 1 FOO NN OUPN O: 1 FOO FO O ING OOM 59 F 15 0.5 B 117 F 100

More information

Advanced Queueing Theory. M/G/1 Queueing Systems

Advanced Queueing Theory. M/G/1 Queueing Systems Advand Quung Thory Ths slds ar rad by Dr. Yh Huang of Gorg Mason Unvrsy. Sudns rgsrd n Dr. Huang's ourss a GMU an ma a sngl mahn-radabl opy and prn a sngl opy of ah sld for hr own rfrn, so long as ah sld

More information

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

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

More information

A Tutorial of The Context Tree Weighting Method: Basic Properties

A Tutorial of The Context Tree Weighting Method: Basic Properties A uoril of h on r Wighing Mhod: Bic ropri Zijun Wu Novmbr 9, 005 Abrc In hi uoril, ry o giv uoril ovrvi of h on r Wighing Mhod. W confin our dicuion o binry boundd mmory r ourc nd dcrib qunil univrl d

More information

x, x, e are not periodic. Properties of periodic function: 1. For any integer n,

x, x, e are not periodic. Properties of periodic function: 1. For any integer n, Chpr Fourir Sri, Igrl, d Tror. Fourir Sri A uio i lld priodi i hr i o poiiv ur p uh h p, p i lld priod o R i,, r priodi uio.,, r o priodi. Propri o priodi uio:. For y igr, p. I d g hv priod p, h h g lo

More information

where: u: input y: output x: state vector A, B, C, D are const matrices

where: u: input y: output x: state vector A, B, C, D are const matrices Sa pac modl: linar: y or in om : Sa q : f, u Oupu q : y h, u u Du F Gu y H Ju whr: u: inpu y: oupu : a vcor,,, D ar con maric Eampl " $ & ' " $ & 'u y " & * * * * [ ],, D H D I " $ " & $ ' " & $ ' " &

More information

Stable Matching for Spectrum Market with Guaranteed Minimum Requirement

Stable Matching for Spectrum Market with Guaranteed Minimum Requirement Sl g Spum Gun mum Rqumn Yno n T S Ky Sw ngg ompu Sool Wun Uny nyno@wuun Yuxun Xong T S Ky Sw ngg ompu Sool Wun Uny xongyx@mlluun Qn Wng ompu Sool Wun Uny qnwng@wuun STRT Xoyn Y Sool mon Tlogy ow Uny X

More information

CS 103 BFS Alorithm. Mark Redekopp

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

More information

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 259] B-Trees

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 259] B-Trees CPSC 211 Daa Srucurs & Implmnaions (c) Txas A&M Univrsiy [ 259] B-Trs Th AVL r and rd-black r allowd som variaion in h lnghs of h diffrn roo-o-laf pahs. An alrnaiv ida is o mak sur ha all roo-o-laf pahs

More information

LINEAR 2 nd ORDER DIFFERENTIAL EQUATIONS WITH CONSTANT COEFFICIENTS

LINEAR 2 nd ORDER DIFFERENTIAL EQUATIONS WITH CONSTANT COEFFICIENTS Diol Bgyoko (0) I.INTRODUCTION LINEAR d ORDER DIFFERENTIAL EQUATIONS WITH CONSTANT COEFFICIENTS I. Dfiiio All suh diffril quios s i h sdrd or oil form: y + y + y Q( x) dy d y wih y d y d dx dx whr,, d

More information

Right Angle Trigonometry

Right Angle Trigonometry Righ gl Trigoomry I. si Fs d Dfiiios. Righ gl gl msurig 90. Srigh gl gl msurig 80. u gl gl msurig w 0 d 90 4. omplmry gls wo gls whos sum is 90 5. Supplmry gls wo gls whos sum is 80 6. Righ rigl rigl wih

More information

How to Order. Description. Metric thread (M5) Rc NPT G

How to Order. Description. Metric thread (M5) Rc NPT G Ai Fil AF0 o I ymol Ai Fil Ai Fil ih Auo AF0 Ho o Od AF Md o Od (f o pg 334 hough o 336 fo dils.) Opion/mi-sndd: l on h fo o f. Opion/mi-sndd symol: Whn mo hn on spifiion is uid, indi in lphnumi od. Exmpl)

More information

Chapter Introduction. 2. Linear Combinations [4.1]

Chapter Introduction. 2. Linear Combinations [4.1] Chper 4 Inrouion Thi hper i ou generlizing he onep you lerne in hper o pe oher n hn R Mny opi in hi hper re heoreil n MATLAB will no e le o help you ou You will ee where MATLAB i ueful in hper 4 n how

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

Silv. Criteria Met? Condition

Silv. Criteria Met? Condition NEWERRY FORET MGT UNIT Ifomio Compm: 106 Ey Y: 2001 iz oy- kg g vg. To. i 1 Q 6 Q 2 48 115 9 100 35 mix wmp mu Y o hul 0 j low i Ro (ou o ply vilbl) h o h ouhw wih 10' f. Culy o o hough PVT popy o hi.

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

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

The Laplace Transform

The Laplace Transform Th Lplc Trnform Dfiniion nd propri of Lplc Trnform, picwi coninuou funcion, h Lplc Trnform mhod of olving iniil vlu problm Th mhod of Lplc rnform i ym h rli on lgbr rhr hn clculu-bd mhod o olv linr diffrnil

More information

ENJOY ALL OF YOUR SWEET MOMENTS NATURALLY

ENJOY ALL OF YOUR SWEET MOMENTS NATURALLY ENJOY ALL OF YOUR SWEET MOMENTS NATURALLY I T R Fily S U Wi Av I T R Mkr f Sr I T R L L All-Nrl Sr N Yrk, NY (Mr 202) Crl Pki Cr., kr f Sr I T R Svi I T R v x ll-rl I T R fily f r il Av I T R, 00% ri v

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

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

From thriving city cycle paths to calm and tranquil car-free routes, the UK offers some of the most stunning and varied bike rides around.

From thriving city cycle paths to calm and tranquil car-free routes, the UK offers some of the most stunning and varied bike rides around. Vii i ii 195 0 i Wi T f l W Wi l W ilw li l p l i i v i, F f i qil f. UK ff i bik k i l p v p f li lp j i S, p Bii x l w w lv, w k ff i i v f f i w i l v l pbli l p. l k fi b il v l l w i f i f T f f i.

More information

Fourier Series and Parseval s Relation Çağatay Candan Dec. 22, 2013

Fourier Series and Parseval s Relation Çağatay Candan Dec. 22, 2013 Fourir Sris nd Prsvl s Rlion Çğy Cndn Dc., 3 W sudy h m problm EE 3 M, Fll3- in som dil o illusr som conncions bwn Fourir sris, Prsvl s rlion nd RMS vlus. Q. ps h signl sin is h inpu o hlf-wv rcifir circui

More information