23 Maximum Flows and Minimum Cuts

Size: px
Start display at page:

Download "23 Maximum Flows and Minimum Cuts"

Transcription

1 A proce canno be underood by opping i. Underanding mu move wih he flow of he proce, mu join i and flow wih i. The Fir Law of Mena, in Frank Herber Dune (196) Conrary o expecaion, flow uually happen no during relaxing momen of leiure and enerainmen, bu raher when we are acively involved in a difficul enerprie, in a ak ha reche our menal and phyical abiliie.... Flow i hard o achieve wihou effor. Flow i no waing ime. Mihaly Cíkzenmihályi, Flow: The Pychology of Opimal Experience (1990) There a difference beween knowing he pah and walking he pah. Morpheu [Laurence Fihburne], The Marix (1999) 23 Maximum Flow and Minimum Cu In he mid-190, Air Force reearcher Theodore E. Harri and reired army general Frank S. Ro publihed a claified repor udying he rail nework ha linked he Sovie Union o i aellie counrie in Eaern Europe. The nework wa modeled a a graph wih 44 verice, repreening geographic region, and edge, repreening link beween hoe region in he rail nework. Each edge wa given a weigh, repreening he rae a which maerial could be hipped from one region o he nex. Eenially by rial and error, hey deermined boh he maximum amoun of uff ha could be moved from Ruia ino Europe, a well a he cheape way o dirup he nework by removing link (or in le abrac erm, blowing up rain rack), which hey called he boleneck. Their reul, including he drawing of he nework below, were only declaified in 1999.¹ Harri and Ro map of he Waraw Pac rail nework ¹Boh he map and he ory were aken fromfigure Alexander 2 Schrijver facinaing urvey On he hiory of combinaorial opimizaion From Harri(ill and Ro 1960). [19]: Schemaic diagram of he railway nework of he Weern Sovie Union and Eaern European counrie, wih a maximum flow of value 163,000 on from Ruia o Eaern Europe, and a cu of capaciy 163,000 on indicaed a The boleneck. Copyrigh 201 Jeff Erickon. Thi work i licened under a Creaive Common Licene (hp://creaivecommon.org/licene/by-nc-a/4.0/). Free diribuion i rongly encouraged; commercial diribuion i exprely forbidden. See hp:// for he mo recen reviion. The max-flow min-cu heorem 1 In he RAND Repor of 19 November 194, Ford and Fulkeron [194] gave (nex o defining he maximum flow problem and uggeing he implex mehod for i) he max-flow mincu heorem for undireced graph, aying ha he maximum flow value i equal o he

2 Thi one of he fir recorded applicaion of he maximum flow and minimum cu problem. For boh problem, he inpu i a direced graph G = (V, E), along wih pecial verice and called he ource and arge. A in he previou lecure, I will ue u v o denoe he direced edge from verex u o verex v. Inuiively, he maximum flow problem ak for he large amoun of maerial ha can be ranpored from o ; he minimum cu problem ak for he minimum damage needed o eparae from Flow An (, )-flow (or ju a flow if he ource and arge are clear from conex) i a funcion f : E 0 ha aifie he following conervaion conrain a every verex v excep poibly and : f (u v) = f (v w). u w In Englih, he oal flow ino v i equal o he oal flow ou of v. To keep he noaion imple, we define f (u v) = 0 if here i no edge u v in he graph. The value of he flow f, denoed f, i he oal ne flow ou of he ource verex : f := f ( w) f (u ). w I no hard o prove ha f i alo equal o he oal ne flow ino he arge verex, a follow. To implify noaion, le f (v) denoe he oal ne flow ou of any verex v: f (v) := f (u v) f (v w). u The conervaion conrain implie ha f (v) = 0 or every verex v excep and, o f (v) = f () + f (). v On he oher hand, any flow ha leave one verex mu ener anoher verex, o we mu have v f (v) = 0. I follow immediaely ha f = f () = f (). Now uppoe we have anoher funcion c : E 0 ha aign a non-negaive capaciy c(e) o each edge e. We ay ha a flow f i feaible (wih repec o c) if f (e) c(e) for every edge e. Mo of he ime we will conider only flow ha are feaible wih repec o ome fixed capaciy funcion c. We ay ha a flow f aurae edge e if f (e) = c(e), and avoid edge e if f (e) = 0. The maximum flow problem i o compue a feaible (, )-flow in a given direced graph, wih a given capaciy funcion, whoe value i a large a poible. u w 0/ /20 / 0/1 / /1 0/ /20 / An (, )-flow wih value. Each edge i labeled wih i flow/capaciy. 2

3 23.2 Cu An (, )-cu (or ju cu if he ource and arge are clear from conex) i a pariion of he verice ino dijoin ube S and T meaning S T = V and S T = where S and T. If we have a capaciy funcion c : E 0, he capaciy of a cu i he um of he capaciie of he edge ha ar in S and end in T: S, T := c(v w). v S w T (Again, if v w i no an edge in he graph, we aume c(v w) = 0.) Noice ha he definiion i aymmeric; edge ha ar in T and end in S are unimporan. The minimum cu problem i o compue an (, )-cu whoe capaciy i a large a poible An (, )-cu wih capaciy 1. Each edge i labeled wih i capaciy. Inuiively, he minimum cu i he cheape way o dirup all flow from o. Indeed, i i no hard o how he following relaionhip beween flow and cu: Lemma 1. Le f be any feaible (, )-flow, and le (S, T) be any (, )-cu. The value of f i a mo he capaciy of (S, T). Moreover, f = S, T if and only if f aurae every edge from S o T and avoid every edge from T o S. Proof: Chooe your favorie flow f and your favorie cu (S, T), and hen follow he bouncing inequaliie: f = f ( w) f (u ) by definiion w = f (v w) f (u v) v S w u = f (v w) f (u v) v S w T u u T by he conervaion conrain removing duplicae edge f (v w) becaue f (u v) 0 v S w T c(v w) v S w T becaue f (v w) c(v w) = S, T by definiion The wo inequaliie in hi derivaion are acually equaliie if and only if f (u v) = 0 and f (v w) = c(v w) for all v S and u, w T. Lemma 1 implie ha if f = S, T, hen f mu be a maximum flow, and (S, T) mu be a minimum cu. 3

4 23.3 The Maxflow Mincu Theorem Surpriingly, for any weighed direced graph, here i alway a flow f and a cu (S, T) ha aify he equaliy condiion. Thi i he famou max-flow min-cu heorem, fir proved by Leer Ford (of hore pah fame) and Delber Ferguon in 194 and independenly by Peer Elia, Amiel Feinein, and and Claude Shannon (of informaion heory fame) in 196. The Maxflow Mincu Theorem. In any flow nework wih ource and arge, he value of he maximum (, )-flow i equal o he capaciy of he minimum (, )-cu. Ford and Fulkeron proved hi heorem a follow. Fix a graph G, verice and, and a capaciy funcion c : E 0. The proof will be eaier if we aume ha he capaciy funcion i reduced: For any verice u and v, eiher c(u v) = 0 or c(v u) = 0, or equivalenly, if an edge appear in G, hen i reveral doe no. Thi aumpion i eay o enforce. Whenever an edge u v and i reveral v u are boh he graph, replace he edge u v wih a pah u x v of lengh wo, where x i a new verex and c(u x) = c(x v) = c(u v). The modified graph ha he ame maximum flow value and minimum cu capaciy a he original graph. Enforcing he one-direcion aumpion. Le f be a feaible flow. We define a new capaciy funcion c f : V V, called he reidual capaciy, a follow: c(u v) f (u v) if u v E c f (u v) = f (v u) if v u E. 0 oherwie Since f 0 and f c, he reidual capaciie are alway non-negaive. I i poible o have c f (u v) > 0 even if u v i no an edge in he original graph G. Thu, we define he reidual graph G f = (V, E f ), where E f i he e of edge whoe reidual capaciy i poiive. Noice ha he reidual capaciie are no necearily reduced; i i quie poible o have boh c f (u v) > 0 and c f (v u) > 0. 0/ /20 / 0/ 0/1 / /1 / / A flow f in a weighed graph G and he correponding reidual graph G f. Suppoe here i no pah from he ource o he arge in he reidual graph G f. Le S be he e of verice ha are reachable from in G f, and le T = V \ S. The pariion (S, T) i clearly an (, )-cu. For every verex u S and v T, we have c f (u v) = (c(u v) f (u v)) + f (v u) = 0, 4

5 which implie ha c(u v) f (u v) = 0 and f (v u) = 0. In oher word, our flow f aurae every edge from S o T and avoid every edge from T o S. Lemma 1 now implie ha f = S, T, which mean f i a maximum flow and (S, T) i a minimum cu. / 1 1 /20 / / 0/1 /1 0/ /20 / An augmening pah in G f wih value F = and he augmened flow f. On he oher hand, uppoe here i a pah = v 0 v 1 v r = in G f. We refer o v 0 v 1 v r a an augmening pah. Le F = min i c f (v i v i+1 ) denoe he maximum amoun of flow ha we can puh hrough he augmening pah in G f. We define a new flow funcion f : E a follow: f (u v) + F if u v i in he augmening pah f (u v) = f (u v) F if v u i in he augmening pah f (u v) oherwie To prove ha he flow f i feaible wih repec o he original capaciie c, we need o verify ha f 0 and f c. Conider an edge u v in G. If u v i in he augmening pah, hen f (u v) > f (u v) 0 and f (u v) = f (u v) + F by definiion of f f (u v) + c f (u v) by definiion of F = f (u v) + c(u v) f (u v) by definiion of c f = c(u v) Duh. On he oher hand, if he reveral v u i in he augmening pah, hen f (u v) < f (u v) c(u v), which implie ha f (u v) = f (u v) F by definiion of f f (u v) c f (v u) by definiion of F = f (u v) f (u v) by definiion of c f = 0 Duh. Finally, we oberve ha (wihou lo of generaliy) only he fir edge in he augmening pah leave, o f = f + F > 0. In oher word, f i no a maximum flow. Thi complee he proof! 23.4 Ford and Fulkeron augmening-pah algorihm Ford and Fulkeron proof of he Maxflow-Mincu Theorem ranlae immediaely o an algorihm o compue maximum flow: Saring wih he zero flow, repeaedly augmen he flow along any pah from o in he reidual graph, unil here i no uch pah. Thi algorihm ha an imporan bu raighforward corollary:

6 Inegraliy Theorem. If all capaciie in a flow nework are ineger, hen here i a maximum flow uch ha he flow hrough every edge i an ineger. Proof: We argue by inducion ha afer each ieraion of he augmening pah algorihm, all flow value and reidual capaciie are ineger. Before he fir ieraion, reidual capaciie are he original capaciie, which are inegral by definiion. In each laer ieraion, he inducion hypohei implie ha he capaciy of he augmening pah i an ineger, o augmening change he flow on each edge, and herefore he reidual capaciy of each edge, by an ineger. In paricular, he algorihm increae he overall value of he flow by a poiive ineger, which implie ha he augmening pah algorihm hal and reurn a maximum flow. If every edge capaciy i an ineger, he algorihm hal afer f ieraion, where f i he acual maximum flow. In each ieraion, we can build he reidual graph G f and perform a whaever-fir-earch o find an augmening pah in O(E) ime. Thu, for nework wih ineger capaciie, he Ford-Fulkeron algorihm run in O(E f ) ime in he wor cae. The following example how ha hi running ime analyi i eenially igh. Conider he 4-node nework illuraed below, where i ome large ineger. The maximum flow in hi nework i clearly 2. However, Ford-Fulkeron migh alernae beween puhing 1 uni of flow along he augmening pah u v and hen puhing 1 uni of flow along he augmening pah v u, leading o a running ime of Θ( ) = Ω( f ). v 1 u A bad example for he Ford-Fulkeron algorihm. Ford and Fulkeron algorihm work quie well in many pracical iuaion, or in eing where he maximum flow value f i mall, bu wihou furher conrain on he augmening pah, hi i no an efficien algorihm in general. The example nework above can be decribed uing only O(log ) bi; hu, he running ime of Ford-Fulkeron i acually exponenial in he inpu ize. 23. Irraional Capaciie If we muliply all he capaciie by he ame (poiive) conan, he maximum flow increae everywhere by he ame conan facor. I follow ha if all he edge capaciie are raional, hen he Ford-Fulkeron algorihm evenually hal, alhough ill in exponenial ime. However, if we allow irraional capaciie, he algorihm can acually loop forever, alway finding maller and maller augmening pah! Wore ye, hi infinie equence of augmenaion may no even converge o he maximum flow, or even o a ignifican fracion of he maximum flow! Perhap he imple example of hi effec wa dicovered by Uri Zwick. Conider he ix-node nework hown on he nex page. Six of he nine edge have ome large ineger capaciy, wo have capaciy 1, and one ha capaciy φ = ( 1)/ , choen o ha 1 φ = φ 2. To prove ha he Ford-Fulkeron algorihm can ge uck, we can wach he reidual capaciie of he hree horizonal edge a he algorihm progree. (The reidual capaciie of he oher ix edge will alway be a lea 3.) 6

7 Suppoe he Ford-Fulkeron algorihm ar by chooing he cenral augmening pah, hown in he large figure on he nex page. The hree horizonal edge, in order from lef o righ, now have reidual capaciie 1, 0, and φ. Suppoe inducively ha he horizonal reidual capaciie are φ k 1, 0, φ k for ome non-negaive ineger k. 1. Augmen along B, adding φ k o he flow; he reidual capaciie are now φ k+1, φ k, Augmen along C, adding φ k o he flow; he reidual capaciie are now φ k+1, 0, φ k. 3. Augmen along B, adding φ k+1 o he flow; he reidual capaciie are now 0, φ k+1, φ k Augmen along A, adding φ k+1 o he flow; he reidual capaciie are now φ k+1, 0, φ k+2. I follow by inducion ha afer 4n + 1 augmenaion ep, he horizonal edge have reidual capaciie φ 2n 2, 0, φ 2n 1. A he number of augmenaion grow o infiniy, he value of he flow converge o φ i = φ = 4 + < 7, even hough he maximum flow value i clearly i=1 1 1 ϕ A B C Uri Zwick non-erminaing flow example, and hree augmening pah. Pracically-minded reader migh wonder why we hould care abou irraional capaciie; afer all, compuer can repreen anyhing bu (mall) ineger or (dyadic) raional exacly. Good queion! One reaon i ha he ineger rericion i lierally arificial; i an arifac of acual compuaional hardware (or perhap he oherwie-irrelevan law of phyic), no an inheren feaure of he abrac compuaional problem. Bu a more pracical reaon i ha he behavior of he algorihm wih irraional inpu ell u omehing abou i wor-cae behavior in pracice given floaing-poin capaciie errible! Even wih very reaonable capaciie, a carele implemenaion of Ford-Fulkeron could ener an infinie loop imply becaue of round-off error Combining and Decompoing Flow Flow are normally defined a funcion on he edge of a graph aifying cerain conrain a he verice. However, flow have a econd repreenaion ha i more naural and ueful in cerain conex. 7

8 Conider an arbirary graph G wih ource verex and arge verex. Fix any wo (, )-flow f and g and any wo real number α and β, and conider he funcion h: E defined by eing h(u v) := α f (u v) + β g(u v) for every edge u v; we can wrie hi definiion more imply a h = αf + β g. Sraighforward definiion-chaing implie ha h i alo an (, )-flow wih value h = α f +β g. More generally, any weighed um of (, )-flow i alo an (, )-flow. I urn ou ha any (, )-flow can be wrien a a weighed um of flow wih a very pecial rucure. For any direced pah P from o, we define a correponding pah flow a follow; 1 if u v P, P(u v) = 1 if v u P, 0 oherwie. Sraighforward definiion-chaing implie ha he funcion P : E i indeed an (, )-flow wih value 1. I am deliberaely overloading he variable P o mean boh he pah (a equence of verice and direced edge) and he uni flow along ha pah. Similarly, for any cycle C, we define a correponding cycle flow 1 if u v C, C(u v) = 1 if v u C, 0 oherwie; again, i i eay o verify ha C : E i an (, )-flow wih value zero. Our earlier argumen implie ha any weighed um of hee pah and cycle flow give u anoher an (, )-flow; hi weighed um i called a flow decompoiion of he reuling flow. Moreover, every flow ha uch a decompoiion. Flow Decompoiion Theorem. Every feaible (, )-flow f can be wrien a a weighed um of direced (, )-pah and direced cycle. Moreover, a direced edge u v appear in a lea one of hee pah or cycle if and only if f (u v) > 0, and he oal number of pah and cycle i a mo he number of edge in he nework. Proof: We prove he heorem by inducion on he number of edge carrying non-zero flow. Fix an arbirary (, )-flow f in an arbirary flow nework G. There are hree cae o conider: If f (u v) = 0 for every edge u v, hen f i a weighed um of he empy e of pah and cycle. Suppoe f = 0, meaning flow i conerved a every verex, including and. Pick an arbirary edge u v wih f (u v) > 0. Conider an arbirary walk v 0 v 1 v 2 wih v 0 = u and v 1 = v, uch ha f (v i 1 v i ) > 0 for every index i. The conervaion conrain implie ha every verex ha ha incoming flow alo ha ougoing flow, o we can make hi walk arbirarily long; in paricular, he walk mu evenually vii ome verex more han once. Le j < k be he malle indice uch ha v j = v k. Then he ubwalk v j v j 1 v k i acually a imple direced cycle C. 8

9 Define f min (C) := min e C f (e), and conider he funcion f := f f min (C) C, or more verboely, f (u v) f min (C) if u v C, f (u v) := f (u v) + f min (C) if v u C, f (u v) oherwie. Sraighforward definiion chaing how ha f i indeed a feaible flow in G wih value 0. There i a lea one edge e C uch ha f (e) = f min (C) and herefore f (e) = 0. Thu, fewer edge carry flow in f han in f. The inducion hypohei implie ha f ha a valid decompoiion ino a mo E 1 pah and cycle. Adding C wih he appropriae weigh give u a flow decompoiion for f ; pecifically, f = f + f min (C) C. The final cae f > 0 i imilar o he previou cae. Conervaion implie ha here i a direced walk v 1 v 2 v l where every edge carrie poiive flow. By removing loop, we can aume wihou lo of generaliy ha hi walk i a imple pah P. Le f min (P) := min e P f (e); and define a new flow f := f f min (P) P. We eaily verify ha f i a feaible flow in G wih value f f min (P). The inducion hypohei implie ha f can be decompoed ino a mo E 1 pah and cycle. Adding P wih weigh give u a flow decompoiion for f. In all cae, we obain a valid flow decompoiion. The previou argumen implie ha we can renghen he decompoiion heorem in wo inereing pecial cae. Fir, we can decompoe any flow wih value zero ino a weighed um of cycle; no pah are neceary. Flow wih value zero are ofen called circulaion. On he oher hand, we can decompoe any acyclic (, )-flow ino a weighed um of (, )-pah; no cycle are neceary. The proof alo immediaely ranlae direcly ino an algorihm, imilar o he Ford-Fulkeron algorihm, o decompoe any (, )-flow ino pah and cycle in O(V E) ime. The algorihm repeaedly eek eiher a direced (, )-pah or a direced cycle in he remaining flow, and hen ubrac a much flow a poible along ha pah or cycle, unil he flow i empy. Each ieraion can be execued in O(V ) ime and remove a lea one edge from he graph, o he enire algorihm run in O(VE) ime. Flow decompoiion provide a naural lower bound on he running ime of any maximum-flow algorihm ha build he flow one pah or cycle a a ime. Every flow can be decompoed ino a mo E pah and cycle, each of which ue a mo V edge, o he overall complexiy of he flow decompoiion i O(V E). Moreover, i i eay o conruc flow for which every flow decompoiion ha complexiy Θ(V E). Thu, any maximum-flow algorihm ha (eiher explicily or implicily) conruc a flow a a um of pah or cycle in paricular, any implemenaion of Ford and Fulkeron augmening pah algorihm mu ake Ω(V E) ime in he wor cae Edmond and Karp Algorihm Ford and Fulkeron algorihm doe no pecify which pah in he reidual graph o augmen, and he poor behavior of he algorihm can be blamed on poor choice for he augmening pah. In he early 1970, Jack Edmond and Richard Karp analyzed wo naural rule for chooing augmening pah, boh of which led o more efficien algorihm. 9

10 Fa Pipe Edmond and Karp fir rule i eenially a greedy algorihm: Chooe he augmening pah wih large boleneck value. I a fairly eay o how ha he maximum-boleneck (, )-pah in a direced graph can be compued in O(E log V ) ime uing a varian of Jarník minimum-panning-ree algorihm, or of Dijkra hore pah algorihm. Simply grow a direced panning ree T, rooed a. Repeaedly find he highe-capaciy edge leaving T and add i o T, unil T conain a pah from o. Alernaely, one could emulae Krukal algorihm iner edge one a a ime in decreaing capaciy order unil here i a pah from o alhough hi i le efficien, a lea when he graph i direced. We can now analyze he algorihm in erm of he value of he maximum flow f. Le f be any flow in G, and le f be he maximum flow in he curren reidual graph G f. (A he beginning of he algorihm, G f = G and f = f.) We have already proved ha f can be decompoed ino a mo E pah and cycle. A imple averaging argumen implie ha a lea one of he pah in hi decompoiion mu carry a lea f /E uni of flow. I follow immediaely ha he fae (, )-pah in G f carrie a lea f /E uni of flow. Thu, augmening f along he maximum-boleneck pah in G f muliplie he value of he remaining maximum flow in G f by a facor of a mo 1 1/E. In oher word, he reidual maximum flow value decay exponenially wih he number of ieraion. Afer E ln f ieraion, he maximum flow value in G f i a mo f (1 1/E) E ln f < f e ln f = 1. (Tha Euler conan e, no he edge e. Sorry.) In paricular, if all he capaciie are ineger, hen afer E ln f ieraion, he maximum capaciy of he reidual graph i zero and f i a maximum flow. We conclude ha for graph wih ineger capaciie, he Edmond-Karp fa pipe algorihm run in O(E 2 log E log f ) ime, which i acually a polynomial funcion of he inpu ize Shor Pipe The econd Edmond-Karp rule wa acually propoed by Ford and Fulkeron in heir original max-flow paper; a varian of hi rule wa independenly conidered by he Ruian mahemaician Yefim Dini around he ame ime a Edmond and Karp. Chooe he augmening pah wih he malle number of edge. The hore augmening pah can be found in O(E) ime by running breadh-fir earch in he reidual graph. Surpriingly, he reuling algorihm hal afer a polynomial number of ieraion, independen of he acual edge capaciie! The proof of hi polynomial upper bound relie on wo obervaion abou he evoluion of he reidual graph. Le f i be he curren flow afer i augmenaion ep, le G i be he correponding reidual graph. In paricular, f 0 i zero everywhere and G 0 = G. For each verex v, le level i (v) denoe he unweighed hore pah diance from o v in G i, or equivalenly, he level of v in a breadh-fir earch ree of G i rooed a. Our fir obervaion i ha hee level can only increae over ime.

11 Lemma 2. level i+1 (v) level i (v) for all verice v and ineger i. Proof: The claim i rivial for v =, ince level i () = 0 for all i. Chooe an arbirary verex v, and le u v be a hore pah from o v in G i+1. (If here i no uch pah, hen level i+1 (v) =, and we re done.) Becaue hi i a hore pah, we have level i+1 (v) = level i+1 (u) + 1, and he inducive hypohei implie ha level i+1 (u) level i (u). We now have wo cae o conider. If u v i an edge in G i, hen level i (v) level i (u) + 1, becaue he level are defined by breadh-fir raveral. On he oher hand, if u v i no an edge in G i, hen v u mu be an edge in he ih augmening pah. Thu, v u mu lie on he hore pah from o in G i, which implie ha level i (v) = level i (u) 1 level i (u) + 1. In boh cae, we have level i+1 (v) = level i+1 (u) + 1 level i (u) + 1 level i (v). Whenever we augmen he flow, he boleneck edge in he augmening pah diappear from he reidual graph, and ome oher edge in he reveral of he augmening pah may (re-)appear. Our econd obervaion i ha an edge canno appear or diappear oo many ime. Lemma 3. During he execuion of he Edmond-Karp hor-pipe algorihm, any edge u v diappear from he reidual graph G f a mo V /2 ime. Proof: Suppoe u v i in wo reidual graph G i and G j+1, bu no in any of he inermediae reidual graph G i+1,..., G j, for ome i < j. Then u v mu be in he ih augmening pah, o level i (v) = level i (u) + 1, and v u mu be on he jh augmening pah, o level j (v) = level j (u) 1. By he previou lemma, we have level j (u) = level j (v) + 1 level i (v) + 1 = level i (u) + 2. In oher word, he diance from o u increaed by a lea 2 beween he diappearance and reappearance of u v. Since every level i eiher le han V or infinie, he number of diappearance i a mo V /2. Now we can derive an upper bound on he number of ieraion. Since each edge can diappear a mo V /2 ime, here are a mo EV /2 edge diappearance overall. Bu a lea one edge diappear on each ieraion, o he algorihm mu hal afer a mo EV /2 ieraion. Finally, ince each ieraion require O(E) ime, hi algorihm run in O(VE 2 ) ime overall Furher Progre Thi i nowhere near he end of he ory for maximum-flow algorihm. Decade of furher reearch have led o a number of even faer algorihm, ome of which are ummarized in he able below.² All of he algorihm lied below compue a maximum flow in everal ieraion. Each algorihm ha wo varian: a impler verion ha perform each ieraion by brue force, and a faer varian ha ue ophiicaed daa rucure o mainain a panning ree of he flow nework, o ha each ieraion can be performed (and he panning ree updaed) in logarihmic ime. There i no reaon o believe ha he be algorihm known o far are opimal; indeed, maximum flow are ill a very acive area of reearch. ²To keep he able hor, I have deliberaely omied algorihm whoe running ime depend on he maximum capaciy, he um of he capaciie, or he maximum flow value. Even wih hi rericion, he able i incomplee! 11

12 Technique Direc Wih dynamic ree Source Blocking flow O(V 2 E) O(V E log V ) [Dini; Sleaor and Tarjan] Nework implex O(V 2 E) O(V E log V ) [Danzig; Goldfarb and Hao; Goldberg, Grigoriadi, and Tarjan] Puh-relabel (generic) O(V 2 E) [Goldberg and Tarjan] Puh-relabel (FIFO) O(V 3 ) O(V 2 log(v 2 /E)) [Goldberg and Tarjan] Puh-relabel (highe label) O(V 2 E) [Cheriyan and Mahehwari; Tunçel] Peudoflow O(V 2 E) O(V E log V ) [Hochbaum] Peudoflow (highe label) O(V 3 ) O(V E log(v 2 /E)) [Hochbaum and Orlin] Compac abundance graph O(V E) [Orlin] Several purely combinaorial maximum-flow algorihm and heir running ime. The fae maximum flow algorihm known, announced by Jame Orlin in 2012, run in O(V E) ime, exacly maching he wor-cae complexiy of a flow decompoiion. The deail of Orlin algorihm are far beyond he cope of hi coure; in addiion o hi own new echnique, Orlin ue everal older algorihm and daa rucure a black boxe, mo of which are hemelve quie complicaed. (In paricular, orlin algorihm doe no conruc an explici flow decompoiion; in fac, for graph wih only O(V ) edge, an exenion of hi algorihm acually run in only O(V 2 / log V ) ime!) Neverhele, for purpoe of analyzing algorihm ha ue maximum flow, hi i he ime bound you hould cie. So wrie he following enence on your chea hee and cie i in your homework: Maximum flow can be compued in O(VE) ime. Exercie 1. Suppoe you are given a direced graph G = (V, E), wo verice and, a capaciy funcion c : E +, and a econd funcion f : E. Decribe an algorihm o deermine wheher f i a maximum (, )-flow in G. 2. Le (S, T) and (S, T ) be minimum (, )-cu in ome flow nework G. Prove ha (S S, T T ) and (S S, T T ) are alo minimum (, )-cu in G. 3. Decribe an efficien algorihm o deermine wheher a given flow nework conain a unique maximum flow. 4. Fix any flow nework G = (V, E). Our obervaion ha any weighed um of (, )-flow i ielf an (, )-flow implie ha he e of all (, )-flow in any graph acually define a vecor pace over he real. (a) Prove ha he dimenion of hi vecor pace i exacly E V + 2. (b) Le T be any panning ree of G. Prove ha he following collecion of pah and cycle define a bai for hi vecor pace: The unique pah in T from o ; The unique cycle in T {e}, for every edge e T. 12

13 (c) Le T be any panning ree of G, and le F be he fore obained by deleing any ingle edge in T. Prove ha he following collecion of pah and cycle define a bai for hi vecor pace: The unique pah in F {e} from o, for every edge e F ha ha one endpoin in each componen of F; The unique cycle in F {e}, for every edge e F wih boh endpoin in he ame componen of F.. Cu are omeime defined a ube of he edge of he graph, inead of a pariion of i verice. In hi problem, you will prove ha hee wo definiion are almo equivalen. We ay ha a ube of (direced) edge eparae and if every direced pah from o conain a lea one (direced) edge in. For any ube S of verice, le δs denoe he e of direced edge leaving S; ha i, δs := {u v u S, v S}. (a) Prove ha if (S, T) i an (, )-cu, hen δs eparae and. (b) Le be an arbirary ube of edge ha eparae and. Prove ha here i an (, )-cu (S, T) uch ha δs. (c) Le be a minimal ube of edge ha eparae and. (Such a e of edge i omeime called a bond.) Prove ha here i an (, )-cu (S, T) uch ha δs =. 6. Suppoe inead of capaciie, we conider nework where each edge u v ha a nonnegaive demand d(u v). Now an (, )-flow f i feaible if and only if f (u v) d(u v) for every edge u v. (Feaible flow value can now be arbirarily large.) A naural problem in hi eing i o find a feaible (, )-flow of minimum value. (a) Decribe an efficien algorihm o compue a feaible (, )-flow, given he graph, he demand funcion, and he verice and a inpu. [Hin: Find a flow ha i non-zero everywhere, and hen cale i up o make i feaible.] (b) Suppoe you have acce o a ubrouine MaxFlow ha compue maximum flow in nework wih edge capaciie. Decribe an efficien algorihm o compue a minimum flow in a given nework wih edge demand; your algorihm hould call MaxFlow exacly once. (c) Sae and prove an analogue of he max-flow min-cu heorem for hi eing. (Do minimum flow correpond o maximum cu?) 7. For any flow nework G and any verice u and v, le boleneck G (u, v) denoe he maximum, over all pah π in G from u o v, of he minimum-capaciy edge along π. (a) Decribe and analyze an algorihm o compue boleneck G (, ) in O(E log V ) ime. (b) Decribe an algorihm o conruc a panning ree T of G uch ha boleneck T (u, v) = boleneck G (u, v) for all verice u and v. (Edge in T inheri heir capaciie from G.) 8. Suppoe you have already compued a maximum flow f in a flow nework G wih ineger edge capaciie. 13

14 (a) Decribe and analyze an algorihm o updae he maximum flow afer he capaciy of a ingle edge i increaed by 1. (b) Decribe and analyze an algorihm o updae he maximum flow afer he capaciy of a ingle edge i decreaed by 1. Boh algorihm hould be ignificanly faer han recompuing he maximum flow from crach. 9. Le G be a nework wih ineger edge capaciie. An edge in G i upper-binding if increaing i capaciy by 1 alo increae he value of he maximum flow in G. Similarly, an edge i lower-binding if decreaing i capaciy by 1 alo decreae he value of he maximum flow in G. (a) Doe every nework G have a lea one upper-binding edge? Prove your anwer i correc. (b) Doe every nework G have a lea one lower-binding edge? Prove your anwer i correc. (c) Decribe an algorihm o find all upper-binding edge in G, given boh G and a maximum flow in G a inpu, in O(E) ime. (d) Decribe an algorihm o find all lower-binding edge in G, given boh G and a maximum flow in G a inpu, in O(EV ) ime.. A new aian profeor, eaching maximum flow for he fir ime, ugge he following greedy modificaion o he generic Ford-Fulkeron augmening pah algorihm. Inead of mainaining a reidual graph, ju reduce he capaciy of edge along he augmening pah! In paricular, whenever we aurae an edge, ju remove i from he graph. GreedyFlow(G, c,, ): for every edge e in G f (e) 0 while here i a pah from o π an arbirary pah from o F minimum capaciy of any edge in π for every edge e in π f (e) f (e) + F if c(e) = F remove e from G ele c(e) c(e) F reurn f (a) Show ha GreedyFlow doe no alway compue a maximum flow. (b) Show ha GreedyFlow i no even guaraneed o compue a good approximaion o he maximum flow. Tha i, for any conan α > 1, here i a flow nework G uch ha he value of he maximum flow i more han α ime he value of he flow compued by GreedyFlow. [Hin: Aume ha GreedyFlow chooe he wor poible pah π a each ieraion.] 14

15 (c) Prove ha for any flow nework, if he Greedy Pah Fairy ell you preciely which pah π o ue a each ieraion, hen GreedyFlow doe compue a maximum flow. (Sadly, he Greedy Pah Fairy doe no acually exi.) 11. A given flow nework G may have more han one minimum (, )-cu. Le define he be minimum (, )-cu o be any minimum cu (S, T) wih he malle number of edge croing from S o T. (a) Decribe an efficien algorihm o deermine wheher a given flow nework conain a unique minimum (, )-cu. (b) Decribe an efficien algorihm o find he be minimum (, )-cu when he capaciie are ineger. (c) Decribe an efficien algorihm o find he be minimum (, )-cu for arbirary edge capaciie. (d) Decribe an efficien algorihm o deermine wheher a given flow nework conain a unique be minimum (, )-cu. 12. We can peed up he Edmond-Karp fa pipe heuriic, a lea for ineger capaciie, by relaxing our requiremen for he nex augmening pah. Inead of finding he augmening pah wih maximum boleneck capaciy, we find a pah whoe boleneck capaciy i a lea half of maximum, uing he following capaciy caling algorihm. The algorihm mainain a boleneck hrehold ; iniially, i he maximum capaciy among all edge in he graph. In each phae, he algorihm augmen along pah from o in which every edge ha reidual capaciy a lea. When here i no uch pah, he phae end, we e /2, and he nex phae begin. (a) How many phae will he algorihm execue in he wor cae, if he edge capaciie are ineger? (b) Le f be he flow a he end of a phae for a paricular value of. Le S be he node ha are reachable from in he reidual graph G f uing only edge wih reidual capaciy a lea, and le T = V \ S. Prove ha he capaciy (wih repec o G original edge capaciie) of he cu (S, T) i a mo f + E. (c) Prove ha in each phae of he caling algorihm, here are a mo 2E augmenaion. (d) Wha i he overall running ime of he caling algorihm, auming all he edge capaciie are ineger? 13. An (, )-erie-parallel graph i an direced acyclic graph wih wo deignaed verice (he ource) and (he arge or ink) and wih one of he following rucure: Bae cae: A ingle direced edge from o. Serie: The union of an (, u)-erie-parallel graph and a (u, )-erie-parallel graph ha hare a common verex u bu no oher verice or edge. Parallel: The union of wo maller (, )-erie-parallel graph wih he ame ource and arge, bu wih no oher verice or edge in common. 1

16 Decribe an efficien algorihm o compue a maximum flow from o in an (, )-erieparallel graph wih arbirary edge capaciie. 14. In 1980 Maurice Queyranne publihed he following example of a flow nework where Edmond and Karp fa pipe heuriic doe no hal. Here, a in Zwick bad example for he original Ford-Fulkeron algorihm, φ denoe he invere golden raio ( 1)/2. The hree verical edge play eenially he ame role a he horizonal edge in Zwick example. (ϕ+1)/2 a 1/2 b ϕ/2 c (ϕ+1)/2 d ϕ/2 1/2 ϕ ϕ/2 ϕ (ϕ+1)/2 1 1/2 (ϕ+1)/2 e ϕ/2 f (ϕ+1)/2 g 1/2 h ϕ/2 Queyranne nework, and a equence of fa-pipe augmenaion. (a) Show ha he following infinie equence of pah augmenaion i a valid execuion of he Edmond-Karp fa pipe algorihm. (See he figure above.) QueyranneFaPipe: for i 1 o puh φ 3i 2 uni of flow along a f g b h c d puh φ 3i 1 uni of flow along f a b g h c puh φ 3i uni of flow along e f a g b c h forever (b) Decribe a equence of O(1) pah augmenaion ha yield a maximum flow in Queyranne nework. Copyrigh 201 Jeff Erickon. Thi work i licened under a Creaive Common Licene (hp://creaivecommon.org/licene/by-nc-a/4.0/). Free diribuion i rongly encouraged; commercial diribuion i exprely forbidden. See hp:// for he mo recen reviion. 16

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005 CS 473G Lecure 1: Max-Flow Algorihm and Applicaion Fall 200 1 Max-Flow Algorihm and Applicaion (November 1) 1.1 Recap Fix a direced graph G = (V, E) ha doe no conain boh an edge u v and i reveral v u,

More information

16 Max-Flow Algorithms and Applications

16 Max-Flow Algorithms and Applications Algorihm A proce canno be underood by opping i. Underanding mu move wih he flow of he proce, mu join i and flow wih i. The Fir Law of Mena, in Frank Herber Dune (196) There a difference beween knowing

More information

18 Extensions of Maximum Flow

18 Extensions of Maximum Flow Who are you?" aid Lunkwill, riing angrily from hi ea. Wha do you wan?" I am Majikhie!" announced he older one. And I demand ha I am Vroomfondel!" houed he younger one. Majikhie urned on Vroomfondel. I

More information

1 Motivation and Basic Definitions

1 Motivation and Basic Definitions CSCE : Deign and Analyi of Algorihm Noe on Max Flow Fall 20 (Baed on he preenaion in Chaper 26 of Inroducion o Algorihm, 3rd Ed. by Cormen, Leieron, Rive and Sein.) Moivaion and Baic Definiion Conider

More information

16 Max-Flow Algorithms

16 Max-Flow Algorithms A process canno be undersood by sopping i. Undersanding mus move wih he flow of he process, mus join i and flow wih i. The Firs Law of Mena, in Frank Herber s Dune (196) There s a difference beween knowing

More information

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network.

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network. Sovie Rail Nework, Max Flow, Min u OS Kevin Wayne Fall Reference: On he hiory of he ranporaion and maximum flow problem. lexander Schrijver in Mah Programming, :,. Minimum u Problem u Flow nework.! Digraph

More information

Graphs III - Network Flow

Graphs III - Network Flow Graph III - Nework Flow Flow nework eup graph G=(V,E) edge capaciy w(u,v) 0 - if edge doe no exi, hen w(u,v)=0 pecial verice: ource verex ; ink verex - no edge ino and no edge ou of Aume every verex v

More information

CSC 364S Notes University of Toronto, Spring, The networks we will consider are directed graphs, where each edge has associated with it

CSC 364S Notes University of Toronto, Spring, The networks we will consider are directed graphs, where each edge has associated with it CSC 36S Noe Univeriy of Torono, Spring, 2003 Flow Algorihm The nework we will conider are direced graph, where each edge ha aociaed wih i a nonnegaive capaciy. The inuiion i ha if edge (u; v) ha capaciy

More information

Network Flows: Introduction & Maximum Flow

Network Flows: Introduction & Maximum Flow CSC 373 - lgorihm Deign, nalyi, and Complexiy Summer 2016 Lalla Mouaadid Nework Flow: Inroducion & Maximum Flow We now urn our aenion o anoher powerful algorihmic echnique: Local Search. In a local earch

More information

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow. CSE 202: Deign and Analyi of Algorihm Winer 2013 Problem Se 3 Inrucor: Kamalika Chaudhuri Due on: Tue. Feb 26, 2013 Inrucion For your proof, you may ue any lower bound, algorihm or daa rucure from he ex

More information

Main Reference: Sections in CLRS.

Main Reference: Sections in CLRS. Maximum Flow Reied 09/09/200 Main Reference: Secion 26.-26. in CLRS. Inroducion Definiion Muli-Source Muli-Sink The Ford-Fulkeron Mehod Reidual Nework Augmening Pah The Max-Flow Min-Cu Theorem The Edmond-Karp

More information

Randomized Perfect Bipartite Matching

Randomized Perfect Bipartite Matching Inenive Algorihm Lecure 24 Randomized Perfec Biparie Maching Lecurer: Daniel A. Spielman April 9, 208 24. Inroducion We explain a randomized algorihm by Ahih Goel, Michael Kapralov and Sanjeev Khanna for

More information

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001 CS 545 Flow Nework lon Efra Slide courey of Charle Leieron wih mall change by Carola Wenk Flow nework Definiion. flow nework i a direced graph G = (V, E) wih wo diinguihed verice: a ource and a ink. Each

More information

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1 Conider he following flow nework CS444/944 Analyi of Algorihm II Soluion for Aignmen (0 mark) In he following nework a minimum cu ha capaciy 0 Eiher prove ha hi aemen i rue, or how ha i i fale Uing he

More information

Soviet Rail Network, 1955

Soviet Rail Network, 1955 Sovie Rail Nework, 1 Reference: On he hiory of he ranporaion and maximum flow problem. Alexander Schrijver in Mah Programming, 1: 3,. Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic

More information

Algorithmic Discrete Mathematics 6. Exercise Sheet

Algorithmic Discrete Mathematics 6. Exercise Sheet Algorihmic Dicree Mahemaic. Exercie Shee Deparmen of Mahemaic SS 0 PD Dr. Ulf Lorenz 7. and 8. Juni 0 Dipl.-Mah. David Meffer Verion of June, 0 Groupwork Exercie G (Heap-Sor) Ue Heap-Sor wih a min-heap

More information

CSE 521: Design & Analysis of Algorithms I

CSE 521: Design & Analysis of Algorithms I CSE 52: Deign & Analyi of Algorihm I Nework Flow Paul Beame Biparie Maching Given: A biparie graph G=(V,E) M E i a maching in G iff no wo edge in M hare a verex Goal: Find a maching M in G of maximum poible

More information

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov)

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov) Algorihm and Daa Srucure 2011/ Week Soluion (Tue 15h - Fri 18h No) 1. Queion: e are gien 11/16 / 15/20 8/13 0/ 1/ / 11/1 / / To queion: (a) Find a pair of ube X, Y V uch ha f(x, Y) = f(v X, Y). (b) Find

More information

Soviet Rail Network, 1955

Soviet Rail Network, 1955 7.1 Nework Flow Sovie Rail Nework, 19 Reerence: On he hiory o he ranporaion and maximum low problem. lexander Schrijver in Mah Programming, 91: 3, 00. (See Exernal Link ) Maximum Flow and Minimum Cu Max

More information

Today: Max Flow Proofs

Today: Max Flow Proofs Today: Max Flow Proof COSC 58, Algorihm March 4, 04 Many of hee lide are adaped from everal online ource Reading Aignmen Today cla: Chaper 6 Reading aignmen for nex cla: Chaper 7 (Amorized analyi) In-Cla

More information

Maximum Flow and Minimum Cut

Maximum Flow and Minimum Cut // Sovie Rail Nework, Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy. Nework Flow Flow nework.

More information

! Abstraction for material flowing through the edges. ! G = (V, E) = directed graph, no parallel edges.

! Abstraction for material flowing through the edges. ! G = (V, E) = directed graph, no parallel edges. Sovie Rail Nework, haper Nework Flow Slide by Kevin Wayne. opyrigh Pearon-ddion Weley. ll righ reerved. Reference: On he hiory of he ranporaion and maximum flow problem. lexander Schrijver in Mah Programming,

More information

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem MAXIMUM FLOW inroducion Ford-Fulkeron algorihm maxflow-mincu heorem Mincu problem Inpu. An edge-weighed digraph, ource verex, and arge verex. each edge ha a poiive capaciy capaciy 9 10 4 15 15 10 5 8 10

More information

Network Flows UPCOPENCOURSEWARE number 34414

Network Flows UPCOPENCOURSEWARE number 34414 Nework Flow UPCOPENCOURSEWARE number Topic : F.-Javier Heredia Thi work i licened under he Creaive Common Aribuion- NonCommercial-NoDeriv. Unpored Licene. To view a copy of hi licene, vii hp://creaivecommon.org/licene/by-nc-nd/./

More information

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques Algorihm Deign Technique CS : Nework Flow Dan Sheldon April, reedy Divide and Conquer Dynamic Programming Nework Flow Comparion Nework Flow Previou opic: deign echnique reedy Divide and Conquer Dynamic

More information

Reminder: Flow Networks

Reminder: Flow Networks 0/0/204 Ma/CS 6a Cla 4: Variou (Flow) Execie Reminder: Flow Nework A flow nework i a digraph G = V, E, ogeher wih a ource verex V, a ink verex V, and a capaciy funcion c: E N. Capaciy Source 7 a b c d

More information

Introduction to Congestion Games

Introduction to Congestion Games Algorihmic Game Theory, Summer 2017 Inroducion o Congeion Game Lecure 1 (5 page) Inrucor: Thoma Keelheim In hi lecure, we ge o know congeion game, which will be our running example for many concep in game

More information

Flow Networks. Ma/CS 6a. Class 14: Flow Exercises

Flow Networks. Ma/CS 6a. Class 14: Flow Exercises 0/0/206 Ma/CS 6a Cla 4: Flow Exercie Flow Nework A flow nework i a digraph G = V, E, ogeher wih a ource verex V, a ink verex V, and a capaciy funcion c: E N. Capaciy Source 7 a b c d e Sink 0/0/206 Flow

More information

Network Flow. Data Structures and Algorithms Andrei Bulatov

Network Flow. Data Structures and Algorithms Andrei Bulatov Nework Flow Daa Srucure and Algorihm Andrei Bulao Algorihm Nework Flow 24-2 Flow Nework Think of a graph a yem of pipe We ue hi yem o pump waer from he ource o ink Eery pipe/edge ha limied capaciy Flow

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorihm Deign and Analyi LECTURES 17 Nework Flow Dualiy of Max Flow and Min Cu Algorihm: Ford-Fulkeron Capaciy Scaling Sofya Rakhodnikova S. Rakhodnikova; baed on lide by E. Demaine, C. Leieron, A. Smih,

More information

Matching. Slides designed by Kevin Wayne.

Matching. Slides designed by Kevin Wayne. Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. Slide deigned by Kevin Wayne. Biparie Maching Biparie

More information

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t) /0/ dmin lunch oday rading MX LOW PPLIION 0, pring avid Kauchak low graph/nework low nework direced, weighed graph (V, ) poiive edge weigh indicaing he capaciy (generally, aume ineger) conain a ingle ource

More information

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a.

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a. Flow nework, flow, maximum flow Can inerpre direced graph a flow nework. Maerial coure hrough ome yem from ome ource o ome ink. Source produce maerial a ome eady rae, ink conume a ame rae. Example: waer

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorihm Deign and Analyi LECTURE 0 Nework Flow Applicaion Biparie maching Edge-dijoin pah Adam Smih 0//0 A. Smih; baed on lide by E. Demaine, C. Leieron, S. Rakhodnikova, K. Wayne La ime: Ford-Fulkeron

More information

4/12/12. Applications of the Maxflow Problem 7.5 Bipartite Matching. Bipartite Matching. Bipartite Matching. Bipartite matching: the flow network

4/12/12. Applications of the Maxflow Problem 7.5 Bipartite Matching. Bipartite Matching. Bipartite Matching. Bipartite matching: the flow network // Applicaion of he Maxflow Problem. Biparie Maching Biparie Maching Biparie maching. Inpu: undireced, biparie graph = (, E). M E i a maching if each node appear in a mo one edge in M. Max maching: find

More information

Algorithms. Algorithms 6.4 MAXIMUM FLOW

Algorithms. Algorithms 6.4 MAXIMUM FLOW Algorihm ROBERT SEDGEWICK KEVIN WAYNE 6.4 MAXIMUM FLOW Algorihm F O U R T H E D I T I O N ROBERT SEDGEWICK KEVIN WAYNE hp://alg4.c.princeon.edu inroducion Ford Fulkeron algorihm maxflow mincu heorem analyi

More information

They were originally developed for network problem [Dantzig, Ford, Fulkerson 1956]

They were originally developed for network problem [Dantzig, Ford, Fulkerson 1956] 6. Inroducion... 6. The primal-dual algorihmn... 6 6. Remark on he primal-dual algorihmn... 7 6. A primal-dual algorihmn for he hore pah problem... 8... 9 6.6 A primal-dual algorihmn for he weighed maching

More information

CSE 421 Introduction to Algorithms Winter The Network Flow Problem

CSE 421 Introduction to Algorithms Winter The Network Flow Problem CSE 42 Inroducion o Algorihm Winer 202 The Nework Flow Problem 2 The Nework Flow Problem 5 a 4 3 x 3 7 6 b 4 y 4 7 6 c 5 z How much uff can flow from o? 3 Sovie Rail Nework, 955 Reference: On he hiory

More information

Maximum Flow. Contents. Max Flow Network. Maximum Flow and Minimum Cut

Maximum Flow. Contents. Max Flow Network. Maximum Flow and Minimum Cut Conen Maximum Flow Conen. Maximum low problem. Minimum cu problem. Max-low min-cu heorem. Augmening pah algorihm. Capaciy-caling. Shore augmening pah. Princeon Univeriy COS Theory o Algorihm Spring Kevin

More information

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover Pleae Complee Coure Survey CMPSCI : Inroducion o Algorihm Dealing wih NP-Compleene Dan Sheldon hp: //owl.oi.uma.edu/parner/coureevalsurvey/uma/ Univeriy of Maachue Slide Adaped from Kevin Wayne La Compiled:

More information

26.1 Flow networks. f (u,v) = 0.

26.1 Flow networks. f (u,v) = 0. 26 Maimum Flow Ju a we can model a road map a a direced graph in order o find he hore pah from one poin o anoher, we can alo inerpre a direced graph a a flow nework and ue i o anwer queion abou maerial

More information

Notes on cointegration of real interest rates and real exchange rates. ρ (2)

Notes on cointegration of real interest rates and real exchange rates. ρ (2) Noe on coinegraion of real inere rae and real exchange rae Charle ngel, Univeriy of Wiconin Le me ar wih he obervaion ha while he lieraure (mo prominenly Meee and Rogoff (988) and dion and Paul (993))

More information

6/3/2009. CS 244 Algorithm Design Instructor: t Artur Czumaj. Lecture 8 Network flows. Maximum Flow and Minimum Cut. Minimum Cut Problem.

6/3/2009. CS 244 Algorithm Design Instructor: t Artur Czumaj. Lecture 8 Network flows. Maximum Flow and Minimum Cut. Minimum Cut Problem. Maximum Flow and Minimum Cu CS lgorihm Deign Inrucor: rur Czumaj Lecure Nework Max and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy.

More information

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2 Baic Tool CMSC April, Review Aympoic Noaion Order of Growh Recurrence relaion Daa Srucure Li, Heap, Graph, Tree, Balanced Tree, Hah Table Advanced daa rucure: Binomial Heap, Fibonacci Heap Soring Mehod

More information

18.03SC Unit 3 Practice Exam and Solutions

18.03SC Unit 3 Practice Exam and Solutions Sudy Guide on Sep, Dela, Convoluion, Laplace You can hink of he ep funcion u() a any nice mooh funcion which i for < a and for > a, where a i a poiive number which i much maller han any ime cale we care

More information

Maximum Flow in Planar Graphs

Maximum Flow in Planar Graphs Maximum Flow in Planar Graph Planar Graph and i Dual Dualiy i defined for direced planar graph a well Minimum - cu in undireced planar graph An - cu (undireced graph) An - cu The dual o he cu Cu/Cycle

More information

Maximum Flow. How do we transport the maximum amount data from source to sink? Some of these slides are adapted from Lecture Notes of Kevin Wayne.

Maximum Flow. How do we transport the maximum amount data from source to sink? Some of these slides are adapted from Lecture Notes of Kevin Wayne. Conen Conen. Maximum flow problem. Minimum cu problem. Max-flow min-cu heorem. Augmening pah algorihm. Capaciy-caling. Shore augmening pah. Chaper Maximum How do we ranpor he maximum amoun daa from ource

More information

Average Case Lower Bounds for Monotone Switching Networks

Average Case Lower Bounds for Monotone Switching Networks Average Cae Lower Bound for Monoone Swiching Nework Yuval Filmu, Toniann Piai, Rober Robere, Sephen Cook Deparmen of Compuer Science Univeriy of Torono Monoone Compuaion (Refreher) Monoone circui were

More information

7. NETWORK FLOW I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 11/22/17 6:11 AM

7. NETWORK FLOW I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 11/22/17 6:11 AM 7. NETWORK FLOW I max-flow and min-cu problem Ford Fulkeron algorihm max-flow min-cu heorem capaciy-caling algorihm hore augmening pah blocking-flow algorihm imple uni-capaciy nework Lecure lide by Kevin

More information

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V ME 352 VETS 2. VETS Vecor algebra form he mahemaical foundaion for kinemaic and dnamic. Geomer of moion i a he hear of boh he kinemaic and dnamic of mechanical em. Vecor anali i he imehonored ool for decribing

More information

April 3, The maximum flow problem. See class notes on website.

April 3, The maximum flow problem. See class notes on website. 5.05 April, 007 The maximum flow problem See cla noe on webie. Quoe of he day You ge he maxx for he minimum a TJ Maxx. -- ad for a clohing ore Thi wa he mo unkinde cu of all -- Shakepeare in Juliu Caear

More information

CHAPTER 7: SECOND-ORDER CIRCUITS

CHAPTER 7: SECOND-ORDER CIRCUITS EEE5: CI RCUI T THEORY CHAPTER 7: SECOND-ORDER CIRCUITS 7. Inroducion Thi chaper conider circui wih wo orage elemen. Known a econd-order circui becaue heir repone are decribed by differenial equaion ha

More information

7. NETWORK FLOW I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 11/22/17 6:11 AM

7. NETWORK FLOW I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 11/22/17 6:11 AM 7. NETWORK FLOW I max-flow and min-cu problem Ford Fulkeron algorihm max-flow min-cu heorem capaciy-caling algorihm hore augmening pah blocking-flow algorihm imple uni-capaciy nework Lecure lide by Kevin

More information

ARTIFICIAL INTELLIGENCE. Markov decision processes

ARTIFICIAL INTELLIGENCE. Markov decision processes INFOB2KI 2017-2018 Urech Univeriy The Neherland ARTIFICIAL INTELLIGENCE Markov deciion procee Lecurer: Silja Renooij Thee lide are par of he INFOB2KI Coure Noe available from www.c.uu.nl/doc/vakken/b2ki/chema.hml

More information

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal

More information

Physics 240: Worksheet 16 Name

Physics 240: Worksheet 16 Name Phyic 4: Workhee 16 Nae Non-unifor circular oion Each of hee proble involve non-unifor circular oion wih a conan α. (1) Obain each of he equaion of oion for non-unifor circular oion under a conan acceleraion,

More information

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5 Mah 225-4 Week 2 April 2-6 coninue.-.3; alo cover par of.4-.5, EP 7.6 Mon Apr 2:.-.3 Laplace ranform and iniial value problem like we udied in Chaper 5 Announcemen: Warm-up Exercie: Recall, The Laplace

More information

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max ecure 8 7. Sabiliy Analyi For an n dimenional vecor R n, he and he vecor norm are defined a: = T = i n i (7.) I i eay o how ha hee wo norm aify he following relaion: n (7.) If a vecor i ime-dependen, hen

More information

EECE 301 Signals & Systems Prof. Mark Fowler

EECE 301 Signals & Systems Prof. Mark Fowler EECE 31 Signal & Syem Prof. Mark Fowler Noe Se #27 C-T Syem: Laplace Tranform Power Tool for yem analyi Reading Aignmen: Secion 6.1 6.3 of Kamen and Heck 1/18 Coure Flow Diagram The arrow here how concepual

More information

To become more mathematically correct, Circuit equations are Algebraic Differential equations. from KVL, KCL from the constitutive relationship

To become more mathematically correct, Circuit equations are Algebraic Differential equations. from KVL, KCL from the constitutive relationship Laplace Tranform (Lin & DeCarlo: Ch 3) ENSC30 Elecric Circui II The Laplace ranform i an inegral ranformaion. I ranform: f ( ) F( ) ime variable complex variable From Euler > Lagrange > Laplace. Hence,

More information

Introduction to SLE Lecture Notes

Introduction to SLE Lecture Notes Inroducion o SLE Lecure Noe May 13, 16 - The goal of hi ecion i o find a ufficien condiion of λ for he hull K o be generaed by a imple cure. I urn ou if λ 1 < 4 hen K i generaed by a imple curve. We will

More information

6.302 Feedback Systems Recitation : Phase-locked Loops Prof. Joel L. Dawson

6.302 Feedback Systems Recitation : Phase-locked Loops Prof. Joel L. Dawson 6.32 Feedback Syem Phae-locked loop are a foundaional building block for analog circui deign, paricularly for communicaion circui. They provide a good example yem for hi cla becaue hey are an excellen

More information

Selfish Routing. Tim Roughgarden Cornell University. Includes joint work with Éva Tardos

Selfish Routing. Tim Roughgarden Cornell University. Includes joint work with Éva Tardos Selfih Rouing Tim Roughgarden Cornell Univeriy Include join work wih Éva Tardo 1 Which roue would you chooe? Example: one uni of raffic (e.g., car) wan o go from o delay = 1 hour (no congeion effec) long

More information

Today s topics. CSE 421 Algorithms. Problem Reduction Examples. Problem Reduction. Undirected Network Flow. Bipartite Matching. Problem Reductions

Today s topics. CSE 421 Algorithms. Problem Reduction Examples. Problem Reduction. Undirected Network Flow. Bipartite Matching. Problem Reductions Today opic CSE Algorihm Richard Anderon Lecure Nework Flow Applicaion Prolem Reducion Undireced Flow o Flow Biparie Maching Dijoin Pah Prolem Circulaion Loweround conrain on flow Survey deign Prolem Reducion

More information

u(t) Figure 1. Open loop control system

u(t) Figure 1. Open loop control system Open loop conrol v cloed loop feedbac conrol The nex wo figure preen he rucure of open loop and feedbac conrol yem Figure how an open loop conrol yem whoe funcion i o caue he oupu y o follow he reference

More information

Math 333 Problem Set #2 Solution 14 February 2003

Math 333 Problem Set #2 Solution 14 February 2003 Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial

More information

Discussion Session 2 Constant Acceleration/Relative Motion Week 03

Discussion Session 2 Constant Acceleration/Relative Motion Week 03 PHYS 100 Dicuion Seion Conan Acceleraion/Relaive Moion Week 03 The Plan Today you will work wih your group explore he idea of reference frame (i.e. relaive moion) and moion wih conan acceleraion. You ll

More information

Chapter 7: Inverse-Response Systems

Chapter 7: Inverse-Response Systems Chaper 7: Invere-Repone Syem Normal Syem Invere-Repone Syem Baic Sar ou in he wrong direcion End up in he original eady-ae gain value Two or more yem wih differen magniude and cale in parallel Main yem

More information

FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER

FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER #A30 INTEGERS 10 (010), 357-363 FLAT CYCLOTOMIC POLYNOMIALS OF ORDER FOUR AND HIGHER Nahan Kaplan Deparmen of Mahemaic, Harvard Univeriy, Cambridge, MA nkaplan@mah.harvard.edu Received: 7/15/09, Revied:

More information

Price of Stability and Introduction to Mechanism Design

Price of Stability and Introduction to Mechanism Design Algorihmic Game Theory Summer 2017, Week 5 ETH Zürich Price of Sabiliy and Inroducion o Mechanim Deign Paolo Penna Thi i he lecure where we ar deigning yem which involve elfih player. Roughly peaking,

More information

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method ME 352 GRHICL VELCITY NLYSIS 52 GRHICL VELCITY NLYSIS olygon Mehod Velociy analyi form he hear of kinemaic and dynamic of mechanical yem Velociy analyi i uually performed following a poiion analyi; ie,

More information

Notes for Lecture 17-18

Notes for Lecture 17-18 U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up

More information

Chapter 2. First Order Scalar Equations

Chapter 2. First Order Scalar Equations Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.

More information

6.8 Laplace Transform: General Formulas

6.8 Laplace Transform: General Formulas 48 HAP. 6 Laplace Tranform 6.8 Laplace Tranform: General Formula Formula Name, ommen Sec. F() l{ f ()} e f () d f () l {F()} Definiion of Tranform Invere Tranform 6. l{af () bg()} al{f ()} bl{g()} Lineariy

More information

Mechtild Stoer * Frank Wagner** Abstract. fastest algorithm known. The runtime analysis is straightforward. In contrast to

Mechtild Stoer * Frank Wagner** Abstract. fastest algorithm known. The runtime analysis is straightforward. In contrast to SERIE B INFORMATIK A Simple Min Cu Algorihm Mechild Soer * Frank Wagner** B 9{1 May 199 Abrac We preen an algorihm for nding he minimum cu of an edge-weighed graph. I i imple in every repec. I ha a hor

More information

EE Control Systems LECTURE 2

EE Control Systems LECTURE 2 Copyrigh F.L. Lewi 999 All righ reerved EE 434 - Conrol Syem LECTURE REVIEW OF LAPLACE TRANSFORM LAPLACE TRANSFORM The Laplace ranform i very ueful in analyi and deign for yem ha are linear and ime-invarian

More information

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson CMP 6610/4610 Fall 2016 Flow Nework Carola Wenk lide adaped rom lide by Charle Leieron Max low and min c Fndamenal problem in combinaorial opimizaion Daliy beween max low and min c Many applicaion: Biparie

More information

Laplace Transform. Inverse Laplace Transform. e st f(t)dt. (2)

Laplace Transform. Inverse Laplace Transform. e st f(t)dt. (2) Laplace Tranform Maoud Malek The Laplace ranform i an inegral ranform named in honor of mahemaician and aronomer Pierre-Simon Laplace, who ued he ranform in hi work on probabiliy heory. I i a powerful

More information

arxiv: v1 [cs.cg] 21 Mar 2013

arxiv: v1 [cs.cg] 21 Mar 2013 On he rech facor of he Thea-4 graph Lui Barba Proenji Boe Jean-Lou De Carufel André van Renen Sander Verdoncho arxiv:1303.5473v1 [c.cg] 21 Mar 2013 Abrac In hi paper we how ha he θ-graph wih 4 cone ha

More information

NECESSARY AND SUFFICIENT CONDITIONS FOR LATENT SEPARABILITY

NECESSARY AND SUFFICIENT CONDITIONS FOR LATENT SEPARABILITY NECESSARY AND SUFFICIENT CONDITIONS FOR LATENT SEPARABILITY Ian Crawford THE INSTITUTE FOR FISCAL STUDIES DEPARTMENT OF ECONOMICS, UCL cemmap working paper CWP02/04 Neceary and Sufficien Condiion for Laen

More information

CONTROL SYSTEMS. Chapter 10 : State Space Response

CONTROL SYSTEMS. Chapter 10 : State Space Response CONTROL SYSTEMS Chaper : Sae Space Repone GATE Objecive & Numerical Type Soluion Queion 5 [GATE EE 99 IIT-Bombay : Mark] Conider a econd order yem whoe ae pace repreenaion i of he form A Bu. If () (),

More information

The multisubset sum problem for finite abelian groups

The multisubset sum problem for finite abelian groups Alo available a hp://amc-journal.eu ISSN 1855-3966 (prined edn.), ISSN 1855-3974 (elecronic edn.) ARS MATHEMATICA CONTEMPORANEA 8 (2015) 417 423 The muliube um problem for finie abelian group Amela Muraović-Ribić

More information

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes Represening Periodic Funcions by Fourier Series 3. Inroducion In his Secion we show how a periodic funcion can be expressed as a series of sines and cosines. We begin by obaining some sandard inegrals

More information

3/3/2015. Chapter 7. Network Flow. Maximum Flow and Minimum Cut. Minimum Cut Problem

3/3/2015. Chapter 7. Network Flow. Maximum Flow and Minimum Cut. Minimum Cut Problem // Chaper Nework Flow Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy. Nonrivial applicaion /

More information

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities: Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial

More information

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle Objecive Wrap up: Weighed, direced graph hore pah Minimum Spanning Tree eb, 1 SI - Sprenkle 1 Review Wha are greedy algorihm? Wha i our emplae for olving hem? Review he la problem we were working on: Single-ource,

More information

introduction Ford-Fulkerson algorithm

introduction Ford-Fulkerson algorithm Algorihm ROBERT SEDGEWICK KEVIN WAYNE. MAXIMUM FLOW. MAXIMUM FLOW inroducion inroducion Ford-Fulkeron algorihm Ford-Fulkeron algorihm Algorihm F O U R T H E D I T I O N maxflow-mincu heorem analyi of running

More information

Longest Common Prefixes

Longest Common Prefixes Longes Common Prefixes The sandard ordering for srings is he lexicographical order. I is induced by an order over he alphabe. We will use he same symbols (,

More information

Geometric Path Problems with Violations

Geometric Path Problems with Violations Click here o view linked Reference 1 1 1 0 1 0 1 0 1 0 1 Geomeric Pah Problem wih Violaion Anil Mahehwari 1, Subha C. Nandy, Drimi Paanayak, Saanka Roy and Michiel Smid 1 1 School of Compuer Science, Carleon

More information

Ford Fulkerson algorithm max-flow min-cut theorem. max-flow min-cut theorem capacity-scaling algorithm

Ford Fulkerson algorithm max-flow min-cut theorem. max-flow min-cut theorem capacity-scaling algorithm 7. NETWORK FLOW I 7. NETWORK FLOW I max-flow and min-cu problem max-flow and min-cu problem Ford Fulkeron algorihm Ford Fulkeron algorihm max-flow min-cu heorem max-flow min-cu heorem capaciy-caling algorihm

More information

introduction Ford-Fulkerson algorithm

introduction Ford-Fulkerson algorithm Algorihm ROBERT SEDGEWICK KEVIN WAYNE. MAXIMUM FLOW. MAXIMUM FLOW inroducion inroducion Ford-Fulkeron algorihm Ford-Fulkeron algorihm Algorihm F O U R T H E D I T I O N maxflow-mincu heorem analyi of running

More information

Selfish Routing and the Price of Anarchy. Tim Roughgarden Cornell University

Selfish Routing and the Price of Anarchy. Tim Roughgarden Cornell University Selfih Rouing and he Price of Anarchy Tim Roughgarden Cornell Univeriy 1 Algorihm for Self-Inereed Agen Our focu: problem in which muliple agen (people, compuer, ec.) inerac Moivaion: he Inerne decenralized

More information

Generalized Orlicz Spaces and Wasserstein Distances for Convex-Concave Scale Functions

Generalized Orlicz Spaces and Wasserstein Distances for Convex-Concave Scale Functions Generalized Orlicz Space and Waerein Diance for Convex-Concave Scale Funcion Karl-Theodor Surm Abrac Given a ricly increaing, coninuou funcion ϑ : R + R +, baed on he co funcional ϑ (d(x, y dq(x, y, we

More information

Network flows. The problem. c : V V! R + 0 [ f+1g. flow network G = (V, E, c), a source s and a sink t uv not in E implies c(u, v) = 0

Network flows. The problem. c : V V! R + 0 [ f+1g. flow network G = (V, E, c), a source s and a sink t uv not in E implies c(u, v) = 0 Nework flow The problem Seing flow nework G = (V, E, c), a orce and a ink no in E implie c(, ) = 0 Flow from o capaciy conrain kew-ymmery flow-coneraion ale of he flow jfj = P 2V Find a maximm flow from

More information

Final Spring 2007

Final Spring 2007 .615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o

More information

Exponential Sawtooth

Exponential Sawtooth ECPE 36 HOMEWORK 3: PROPERTIES OF THE FOURIER TRANSFORM SOLUTION. Exponenial Sawooh: The eaie way o do hi problem i o look a he Fourier ranform of a ingle exponenial funcion, () = exp( )u(). From he able

More information

ANSWERS TO ODD NUMBERED EXERCISES IN CHAPTER

ANSWERS TO ODD NUMBERED EXERCISES IN CHAPTER John Riley 6 December 200 NWER TO ODD NUMBERED EXERCIE IN CHPTER 7 ecion 7 Exercie 7-: m m uppoe ˆ, m=,, M (a For M = 2, i i eay o how ha I implie I From I, for any probabiliy vecor ( p, p 2, 2 2 ˆ ( p,

More information

Some Basic Information about M-S-D Systems

Some Basic Information about M-S-D Systems Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,

More information