3/3/2015. Chapter 7. Network Flow. Maximum Flow and Minimum Cut. Minimum Cut Problem
|
|
- Ashley Fisher
- 5 years ago
- Views:
Transcription
1 // 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 / reducion. Daa mining. Open-pi mining. Projec elecion. Airline cheduling. Biparie maching. Baeball eliminaion. Image egmenaion. Nework conneciviy. Nework reliabiliy. Diribued compuing. Securiy of aiical daa. Nework inruion deecion. Muli-camera cene reconrucion. Many many more Minimum Cu Problem Flow nework. Abracion for maerial flowing hrough he edge. G = (V, E), direced graph, no parallel edge. Two diinguihed node: = ource, = ink. c(e) = capaciy of edge e. ource ink capaciy
2 // Cu Def. An - cu i a pariion (A, B) of V wih A and B. Def. The capaciy of a cu (A, B) i: cap( A, B) c(e) e ou of A A Capaciy = + + = Cu Def. An - cu i a pariion (A, B) of V wih A and B. Def. The capaciy of a cu (A, B) i: cap( A, B) c(e) e ou of A A Capaciy = = Minimum Cu Problem Min - cu problem. Find an - cu of minimum capaciy. A Capaciy = + + =
3 // Flow Def. An - flow i a funcion f ha aifie: For each e E: f (e) c(e) [capaciy] For each v V {, }: f (e) f (e) [conervaion] e in o v e ou of v Def. The value of a flow f i: v( f ) f (e). e ou of capaciy flow Value = Flow Def. An - flow i a funcion f ha aifie: For each e E: f (e) c(e) [capaciy] For each v V {, }: f (e) f (e) [conervaion] e in o v e ou of v Def. The value of a flow f i: v( f ) f (e). e ou of capaciy flow Value = Maximum Flow Problem Max flow problem. Find - flow of maximum value. capaciy flow Value =
4 // Flow and Cu Flow value lemma. Le f be any flow, and le (A, B) be any - cu. Then, he ne flow en acro he cu i equal o he amoun leaving. f (e) f (e) v( f ) e ou of A e in o A A Value = Flow and Cu Flow value lemma. Le f be any flow, and le (A, B) be any - cu. Then, he ne flow en acro he cu i equal o he amoun leaving. f (e) f (e) v( f ) e ou of A e in o A A Value = = Flow and Cu Flow value lemma. Le f be any flow, and le (A, B) be any - cu. Then, he ne flow en acro he cu i equal o he amoun leaving. f (e) f (e) v( f ) e ou of A e in o A A Value = =
5 // Flow and Cu Flow value lemma. Le f be any flow, and le (A, B) be any - cu. Then f (e) f (e) v( f ). e ou of A e in o A Pf. by flow conervaion, all erm excep v = are v( f ) va e ou of f ( e) e f ( e) ou of v e in o v f ( e) f ( e) e ou of A e in o A f ( e). Flow and Cu Weak dualiy. Le f be any flow, and le (A, B) be any - cu. Then he value of he flow i a mo he capaciy of he cu. Cu capaciy = Flow value A Capaciy = Flow and Cu Weak dualiy. Le f be any flow. Then, for any - cu (A, B) we have v(f) cap(a, B). Pf. v( f ) f (e) f (e) e ou of A e in o A f (e) e ou of A c(e) e ou of A cap(a, B) A B
6 // Cerificae of Opimaliy Corollary. Le f be any flow, and le (A, B) be any cu. If v(f) = cap(a, B), hen f i a max flow and (A, B) i a min cu. Value of flow = Cu capaciy = Flow value A Toward a Max Flow Algorihm Greedy algorihm. Sar wih f(e) = for all edge e E. Find an - pah P where each edge ha f(e) < c(e). Augmen flow along pah P. Repea unil you ge uck. Flow value = Toward a Max Flow Algorihm Greedy algorihm. Sar wih f(e) = for all edge e E. Find an - pah P where each edge ha f(e) < c(e). Augmen flow along pah P. Repea unil you ge uck. X X X Flow value =
7 // Toward a Max Flow Algorihm Greedy algorihm. Sar wih f(e) = for all edge e E. Find an - pah P where each edge ha f(e) < c(e). Augmen flow along pah P. Repea unil you ge uck. locally opimaliy global opimaliy greedy = op = Reidual Graph Original edge: e = (u, v) E. Flow f(e), capaciy c(e). u capaciy v flow Reidual edge. "Undo" flow en. e = (u, v) and e R = (v, u). Reidual capaciy: u reidual capaciy v c(e) f (e) c f (e) if f (e) e E if e R E reidual capaciy Reidual graph: G f = (V, E f ). Reidual edge wih poiive reidual capaciy. E f = {e : f(e) < c(e)} {e R : f(e) > }. Ford-Fulkeron Algorihm G: capaciy
8 // Ford-Fulkeron Algorihm G: flow capaciy Flow value = Ford-Fulkeron Algorihm G: flow capaciy X X X Flow value = G f : reidual capaciy Ford-Fulkeron Algorihm G: X X X X Flow value = G f :
9 // Ford-Fulkeron Algorihm G: X X X X Flow value = G f : Ford-Fulkeron Algorihm G: X X X X Flow value = G f : Ford-Fulkeron Algorihm X G: X X X X Flow value = G f :
10 // Ford-Fulkeron Algorihm G: Flow value = G f : Ford-Fulkeron Algorihm G: Cu capaciy = Flow value = G f : Augmening Pah Algorihm Augmen(f, c, P) { b boleneck(p) foreach e P { if (e E) f(e) f(e) + b ele f(e R ) f(e R ) - b } reurn f } forward edge revere edge Ford-Fulkeron(G,,, c) { foreach e E f(e) G f reidual graph while (here exi augmening pah P) { f Augmen(f, c, P) updae G f } reurn f }
11 // Max-Flow Min-Cu Theorem Augmening pah heorem. Flow f i a max flow iff here are no augmening pah. Max-flow min-cu heorem. [Elia-Feinein-Shannon, Ford-Fulkeron ] The value of he max flow i equal o he value of he min cu. Pf. We prove boh imulaneouly by howing he following aemen are logically equivalen: (i) There exi a cu (A, B) uch ha v(f) = cap(a, B). (ii) Flow f i a max flow. (iii) There i no augmening pah relaive o f. (i) (ii) Thi wa he corollary o weak dualiy lemma. (ii) (iii) We how conrapoiive. Le f be a flow. If here exi an augmening pah, hen we can improve f by ending flow along pah. Proof of Max-Flow Min-Cu Theorem (iii) (i) Le f be a flow wih no augmening pah in G f. Le A be e of verice reachable from in reidual graph. By definiion of A, A. By definiion of f, A. v( f ) e ou of A f ( e) e ou of A e in o A c( e) cap( A, B) f ( e) A B original nework Running Time Aumpion. All capaciie are ineger beween and C. Invarian. Every flow value f(e) and every reidual capaciy c f (e) remain an ineger hroughou he algorihm. Theorem. The algorihm erminae in a mo v(f*) nc ieraion. Pf. Each augmenaion increae value by a lea. Corollary. If C =, Ford-Fulkeron run in O(mn) ime, where n = V and m = E. Inegraliy heorem. If all capaciie are ineger, hen here exi a max flow f for which every flow value f(e) i an ineger. Pf. Since he algorihm erminae, he heorem follow from invarian.
12 //. Chooing Good Augmening Pah Ford-Fulkeron: Exponenial Number of Augmenaion Q. I generic Ford-Fulkeron algorihm polynomial in inpu ize? m, n, and log C A. No. If max capaciy i C, hen algorihm can ake C ieraion. X X X C C C C X X X C C X C C X X Chooing Good Augmening Pah Ue care when elecing augmening pah. Some choice lead o exponenial algorihm. Clever choice lead o polynomial algorihm. If capaciie are irraional, algorihm no guaraneed o erminae! Goal: chooe augmening pah o ha: Can find augmening pah efficienly. Few ieraion. Chooe augmening pah wih: [Edmond-Karp, Diniz ] Max boleneck capaciy. Sufficienly large boleneck capaciy. Fewe number of edge.
13 // Capaciy Scaling Inuiion. Chooing pah wih highe boleneck capaciy increae flow by max poible amoun. Don' worry abou finding exac highe boleneck pah. Mainain caling parameer. Le G f () be he ubgraph of he reidual graph coniing of only arc wih capaciy a lea. G f G f () Capaciy Scaling Scaling-Max-Flow(G,,, c) { foreach e E f(e) malle power of greaer han or equal o C G f reidual graph while ( ) { G f () -reidual graph while (here exi augmening pah P in G f ()) { f augmen(f, c, P) updae G f () } / } reurn f } Capaciy Scaling: Correcne Aumpion. All edge capaciie are ineger beween and C. Inegraliy invarian. All flow and reidual capaciy value are inegral. Correcne. If he algorihm erminae, hen f i a max flow. Pf. By inegraliy invarian, when = G f () = G f. Upon erminaion of = phae, here are no augmening pah.
14 // Capaciy Scaling: Running Time Lemma. The ouer while loop repea + log C ime. Pf. Iniially C <C. decreae by a facor of each ieraion. Lemma. Le f be he flow a he end of a -caling phae. Then he value of he maximum flow i a mo v(f) + m. proof on nex lide Lemma. There are a mo m augmenaion per caling phae. Pf. Le k be he number of augmenaion in he curren caling phae. Le f and f be he flow before and afer he curren caling phae, repecively. Lemma v(f*) v(f) + m (). Each augmenaion in a -phae increae v(f) by a lea. If k augmenion are done, v(f) + k v(f) v(f*) v(f) + m (). So k m Theorem. The caling max-flow algorihm find a max flow in O(m log C) augmenaion. I can be implemened o run in O(m log C) ime. Capaciy Scaling: Running Time Lemma. Le f be he flow a he end of a -caling phae. Then value of he maximum flow i a mo v(f) + m. Pf. (almo idenical o proof of max-flow min-cu heorem) We how ha a he end of a -phae, here exi a cu (A, B) uch ha cap(a, B) v(f) + m. Chooe A o be he e of node reachable from in G f (). By definiion of A, A. By definiion of f, A. v( f ) f (e) f (e) e ou of A e in o A (c(e) ) e ou of A e in o A c(e) e ou of A e ou of A e in o A cap(a, B) - m A B original nework. Biparie Maching
15 // 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. Biparie Maching Biparie maching. Inpu: undireced, biparie graph G = (L R, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. ' ' ' maching -', -', -' ' L ' R Biparie Maching Biparie maching. Inpu: undireced, biparie graph G = (L R, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. ' ' ' max maching -', -', -' -' ' L ' R
16 // Biparie Maching Max flow formulaion. Creae digraph G' = (L R {, }, E' ). Direc all edge from L o R, and aign infinie (or uni) capaciy. Add ource, and uni capaciy edge from o each node in L. Add ink, and uni capaciy edge from each node in R o. G' ' ' ' ' L ' R Biparie Maching: Proof of Correcne Theorem. Max cardinaliy maching in G = value of max flow in G'. Pf. Given max maching M of cardinaliy k. Conider flow f ha end uni along each of k pah. f i a flow, and ha cardinaliy k. ' ' ' ' ' ' ' ' G ' ' G' Biparie Maching: Proof of Correcne Theorem. Max cardinaliy maching in G = value of max flow in G'. Pf. Le f be a max flow in G' of value k. Inegraliy heorem k i inegral and can aume f i -. Conider M = e of edge from L o R wih f(e) =. each node in L and R paricipae in a mo one edge in M M = k: conider cu (L, R ) ' ' ' ' ' ' ' ' G' ' ' G
17 // Perfec Maching Def. A maching M E i perfec if each node appear in exacly one edge in M. Q. When doe a biparie graph have a perfec maching? Srucure of biparie graph wih perfec maching. Clearly we mu have L = R. Wha oher condiion are neceary? Wha condiion are ufficien? Perfec Maching Noaion. Le S be a ube of node, and le N(S) be he e of node adjacen o node in S. Obervaion. If a biparie graph G = (L R, E) ha a perfec maching, hen N(S) S for all ube S L. Pf. Each node in S ha o be mached o a differen node in N(S). ' ' ' No perfec maching: S = {,, } N(S) = { ', ' }. ' L ' R Marriage Theorem Marriage Theorem. [Frobeniu, Hall ] Le G = (L R, E) be a biparie graph wih L = R. Then, G ha a perfec maching iff N(S) S for all ube S L. Pf. Thi wa he previou obervaion. ' ' ' No perfec maching: S = {,, } N(S) = { ', ' }. ' L ' R
18 // Proof of Marriage Theorem Pf. Suppoe G doe no have a perfec maching. Formulae a a max flow problem and le (A, B) be min cu in G'. By max-flow min-cu, cap(a, B) < L. Define L A = L A, L B = L B, R A = R A. cap(a, B) = L B + R A. Since min cu can' ue edge: N(L A ) R A. N(L A ) R A = cap(a, B) - L B < L - L B = L A. Chooe S = L A. max maching G' -', -', -' -' ' A ' L A = {,, } L B = {, } ' R A = {', '} N(L A ) = {', '} ' ' Biparie Maching: Running Time Which max flow algorihm o ue for biparie maching? Generic augmening pah: O(m val(f*) ) = O(mn). Capaciy caling: O(m log C ) = O(m ). Shore augmening pah: O(m n / ). Non-biparie maching. Srucure of non-biparie graph i more complicaed, bu well-underood. [Tue-Berge, Edmond-Galai] Bloom algorihm: O(n ). [Edmond ] Be known: O(m n / ). [Micali-Vazirani ]. Dijoin Pah
19 // Edge Dijoin Pah Dijoin pah problem. Given a digraph G = (V, E) and wo node and, find he max number of edge-dijoin - pah. Def. Two pah are edge-dijoin if hey have no edge in common. Ex: communicaion nework. Edge Dijoin Pah Dijoin pah problem. Given a digraph G = (V, E) and wo node and, find he max number of edge-dijoin - pah. Def. Two pah are edge-dijoin if hey have no edge in common. Ex: communicaion nework. Edge Dijoin Pah Max flow formulaion: aign uni capaciy o every edge. Theorem. Max number edge-dijoin - pah equal max flow value. Pf. Suppoe here are k edge-dijoin pah P,..., P k. Se f(e) = if e paricipae in ome pah P i ; ele e f(e) =. Since pah are edge-dijoin, f i a flow of value k.
20 // Edge Dijoin Pah Max flow formulaion: aign uni capaciy o every edge. Theorem. Max number edge-dijoin - pah equal max flow value. Pf. Suppoe max flow value i k. Inegraliy heorem here exi - flow f of value k. Conider edge (, u) wih f(, u) =. by conervaion, here exi an edge (u, v) wih f(u, v) = coninue unil reach, alway chooing a new edge Produce k (no necearily imple) edge-dijoin pah. can eliminae cycle o ge imple pah if deired Nework Conneciviy Nework conneciviy. Given a digraph G = (V, E) and wo node and, find min number of edge whoe removal diconnec from. Def. A e of edge F E diconnec from if every - pah ue a lea one edge in F. Edge Dijoin Pah and Nework Conneciviy Theorem. [Menger ] The max number of edge-dijoin - pah i equal o he min number of edge whoe removal diconnec from. Pf. Suppoe F = k i minimal and he removal of F E diconnec from. Every - pah ue a lea one edge in F. Hence, he number of edge-dijoin pah i a mo k.
21 // Dijoin Pah and Nework Conneciviy Theorem. [Menger ] The max number of edge-dijoin - pah i equal o he min number of edge whoe removal diconnec from. Pf. Suppoe max number of edge-dijoin pah i k. Then max flow value i k. Max-flow min-cu cu (A, B) of capaciy k. Le F be e of edge going from A o B. F = k and diconnec from. A. Image Segmenaion Image Segmenaion Image egmenaion. Cenral problem in image proceing. Divide image ino coheren region. Ex: Three people anding in fron of complex background cene. Idenify each peron a a coheren objec.
22 // Image Segmenaion Foreground / background egmenaion. Label each pixel in picure a belonging o foreground or background. V = e of pixel, E = pair of neighboring pixel. a i i he credi if pixel i in foreground. b i i he credi if pixel i in background. p ij i eparaion penaly for labeling one of i and j a foreground, and he oher a background. Example. For a black-whie phoo, a whie pixel ha value and a black pixel ha value. We may define a i = v i and b i = v i, where v i i he value of pixel i. We alo le p ij = c/(+ a i -a j ), where c i a conan. Goal. Accuracy: if a i > b i in iolaion, prefer o label i in foreground. Smoohne: if many neighbor of i are labeled foreground, we hould be inclined o label i a foreground. Image Segmenaion Foreground / background egmenaion. Label each pixel in picure a belonging o foreground or background. V = e of pixel, E = pair of neighboring pixel. a i i he credi if pixel i in foreground. b i i he credi if pixel i in background. p ij i eparaion penaly for labeling one of i and j a foreground, and he oher a background. Goal. Accuracy: if a i > b i in iolaion, prefer o label i in foreground. Smoohne: if many neighbor of i are labeled foreground, we hould be inclined o label i a foreground. Find pariion (A, B) ha maximize: a i b j p ij foreground background i A j B (i, j) E A{i, j} Image Segmenaion Formulae a min cu problem. Maximizaion. No ource or ink. Undireced graph. Turn ino minimizaion problem. Maximizing i equivalen o minimizing a i b j p ij i A j B (i, j) E A{i, j} i V a i j V b j a conan a i b j p ij i A j B (i,j) E A{i,j} or o alernaively minimizing a j b i p ij j B i A (i, j) E A{i, j}
23 // Image Segmenaion Formulae a min cu problem. G' = (V', E'). Add ource o correpond o foreground; add ink o correpond o background Ue wo ani-parallel edge inead of undireced edge. p ij p ij p ij G' a j i p ij j b i Image Segmenaion Conider min cu (A, B) in G'. A = foreground. cap(a, B) a j b i p ij j B i A (i, j) E i A, j B if i and j on differen ide, p ij couned exacly once Preciely he quaniy we wan o minimize. G' a j i p ij j A b i. Projec Selecion
24 // Projec Selecion can be poiive or negaive Projec wih prerequiie. Se P of poible projec. Projec v ha aociaed revenue p v. ome projec generae money: creae ineracive e-commerce inerface, redeign web page oher co money: upgrade compuer, ge ie licene Se of prerequiie E. If (v, w) E, can' do projec v, unle alo do projec w. A ube of projec A P i feaible if he prerequiie of every projec in A alo belong o A. Projec elecion. Chooe a feaible ube of projec o maximize revenue. Projec Selecion: Prerequiie Graph Prerequiie graph. Include an edge from v o w if can' do v wihou alo doing w. {v, w, x} i feaible ube of projec. {v, x} i infeaible ube of projec. w w v x v x feaible infeaible Projec Selecion: Min Cu Formulaion Min cu formulaion. Aign capaciy o all prerequiie edge. Add edge (, v) wih capaciy -p v if p v >. Add edge (v, ) wih capaciy -p v if p v <. For noaional convenience, define p = p =. p u u w -p w p y y z -p z p v v x -px
25 // Projec Selecion: Min Cu Formulaion Claim. (A, B) i min cu iff A { } i opimal e of projec. Infinie capaciy edge enure A { } i feaible. Max revenue becaue: cap(a, B) p v ( p v ) v B: p v v A: p v p v p v v: p v v A conan w u A p u -p w p v v p y y z x -p x Open Pi Mining Open-pi mining. (udied ince early ) Block of earh are exraced from urface o rerieve ore. Each block v ha ne value p v = value of ore - proceing co. Can' remove block v before w or x. w v x. Exenion o Max Flow
26 // Circulaion wih Demand Circulaion wih demand. Direced graph G = (V, E). Edge capaciie c(e), e E. Node upply and demand d(v), v V. demand if d(v) > ; upply if d(v) < ; ranhipmen if d(v) = Def. A circulaion i a funcion ha aifie: For each e E: f(e) c(e) (capaciy) For each v V: f (e) f (e) d(v) (conervaion) e in o v e ou of v Circulaion problem: given (V, E, c, d), doe here exi a circulaion? Circulaion wih Demand Neceary condiion: um of upplie = um of demand. d(v) d(v) : D v : d (v) v : d (v) Pf. Sum conervaion conrain for every demand node v. - - upply - flow capaciy demand Circulaion wih Demand Max flow formulaion. G: - - upply - demand
27 // Circulaion wih Demand Max flow formulaion. Add new ource and ink. For each v wih d(v) <, add edge (, v) wih capaciy -d(v). For each v wih d(v) >, add edge (v, ) wih capaciy d(v). Claim: G ha circulaion iff G' ha max flow of value D. aurae all edge leaving and enering G': upply demand Circulaion wih Demand Inegraliy heorem. If all capaciie and demand are ineger, and here exi a circulaion, hen here exi one ha i ineger-valued. Pf. Follow from max flow formulaion and inegraliy heorem for max flow. Characerizaion. Given (V, E, c, d), here doe no exi a circulaion iff here exi a node pariion (A, B) uch ha vb d v > cap(a, B) Pf idea. Look a min cu in G'. demand by node in B exceed upply of node in B plu max capaciy of edge going from A o B Circulaion wih Demand and Lower Bound Feaible circulaion. Direced graph G = (V, E). Edge capaciie c(e) and lower bound (e), e E. Node upply and demand d(v), v V. Def. A circulaion i a funcion ha aifie: For each e E: (e) f(e) c(e) (capaciy) For each v V: f (e) f (e) d(v) (conervaion) e in o v e ou of v Circulaion problem wih lower bound. Given (V, E,, c, d), doe here exi a a circulaion?
28 // Circulaion wih Demand and Lower Bound Idea. Model lower bound wih demand. Send (e) uni of flow along edge e. Updae demand of boh endpoin. lower bound upper bound capaciy v [, ] w d(v) d(w) d(v) + d(w) - G G' v w Theorem. There exi a circulaion in G iff here exi a circulaion in G'. If all demand, capaciie, and lower bound in G are ineger, hen here i a circulaion in G ha i ineger-valued. Pf kech. f(e) i a circulaion in G iff f'(e) = f(e) - (e) i a circulaion in G'. Lower bound on flow Edge wih minimum and maximum capaciy For all e: l(e) f(e) c(e) l(e) c(e) Flow wih Lower Bound Look for maximum flow wih for each e: l(e) f(e) c(e) Problem olved in wo phae Fir, find admiible flow Then, augmen i o a maximum flow Admiible flow: any flow f, wih Flow conervaion if v{,}, flow ino v equal flow ou of v Lower and upper capaciy conrain fulfilled: for each e: l(e) f(e) c(e)
29 // Finding admiible flow Fir, we ranform he queion o: find an admiible circulaion Finding admiible circulaion i ranformed o: finding maximum flow in nework wih new ource and new ink Tranlaed back Circulaion Given: digraph G, lower bound l, upper capaciy bound c A circulaion fulfill: For all v: flow ino v equal flow ou of v For all (u,v): l(u,v) f(u,v) c(u,v) Exience of circulaion: fir ep for finding admiible flow Circulaion v. Flow Model flow nework wih circulaion nework: add an arc (,) wih large capaciy (e.g., um over all c(,v) ), and ak for a circulaion wih f(,) a large a poible G G f (,) = value( f )
30 // Finding admiible flow Find admiible circulaion in nework wih arc (,) Conrucion: ee previou hee Remove he arc (,) and we have an admiible flow Finding admiible circulaion I ranformed o: finding a maximum flow in a new nework New ource New ink Each arc i replaced by hree arc Finding admiible circulaion a l(e) c(e) b Do hi for each edge l(e) T New ink New ource S a b Lower bound: c(e)-l(e) l(e)
31 // Finding admiible flow/circulaion Find maximum flow from S o T If all edge from S (and hence all edge o T ) ue full capaciy, we have admiible flow: f (u,v) = f(u,v) + l(u,v) for all (u,v) in G From admiible flow o maximum flow Take admiible flow f (in original G) Compue a maximum flow f from o in G f Here c f (u,v) = c(u,v) f(u,v) And c f (v,u) = f(u,v) l(u,v) If (u,v) and (v,u) boh exi in G: add (deail omied) f + f i a maximum flow from o ha fulfill upper and lower capaciy conrain Any flow algorihm can be ued. Survey Deign
32 // Survey Deign one urvey queion per produc Survey deign. Deign urvey aking n conumer abou n produc. Can only urvey conumer i abou produc j if hey own i. Ak conumer i beween c i and c i ' queion. Ak beween p j and p j ' conumer abou produc j. Goal. Deign a urvey ha mee hee pec, if poible. Biparie perfec maching. Special cae when c i = c i ' = p i = p i ' =. Survey Deign Algorihm. Formulae a a circulaion problem wih lower bound. Include an edge (i, j) if conumer j own produc i. Ineger circulaion feaible urvey deign. [, ] [, ] ' [c, c '] [p, p '] ' ' ' conumer ' produc. Baeball Eliminaion
33 // Baeball Eliminaion Team i Win w i Loe To play Again = r ij l i r i Al Phi NY Mon Alana - Philly - New York - Monreal - Which eam have a chance of finihing he eaon wih mo win? Monreal eliminaed ince i can finih wih a mo win, bu Alana already ha. w i + r i < w j eam i eliminaed. Only reaon por wrier appear o be aware of. Sufficien, bu no neceary! Baeball Eliminaion Team i Win w i Loe To play Again = r ij l i r i Al Phi NY Mon Alana - Philly - New York - Monreal - Which eam have a chance of finihing he eaon wih mo win? Philly can win, bu ill eliminaed... If Alana loe a game, hen ome oher eam win one. Remark. Anwer depend no ju on how many game already won and lef o play, bu alo on whom hey're again. Baeball Eliminaion Baeball eliminaion problem. Se of eam S. Diinguihed eam S. Team x ha won w x game already. Team x and y play each oher r xy addiional ime. I here any oucome of he remaining game in which eam finihe wih he mo (or ied for he mo) win?
34 // Baeball Eliminaion: Max Flow Formulaion Can eam finih wih mo win? Aume eam win all remaining game w + r win. Divvy remaining game o ha all eam have w + r win. - game lef - - eam can ill win hi many more game r = - w + r -w - game node - eam node Baeball Eliminaion: Max Flow Formulaion Theorem. Team i no eliminaed iff max flow aurae all edge leaving ource. Inegraliy heorem each remaining game beween x and y added o number of win for eam x or eam y. Capaciy on (x, ) edge enure no eam win oo many game. - game lef - - eam can ill win hi many more game r = - w + r -w - game node - eam node Baeball Eliminaion: Explanaion for Spor Wrier Team i Win w i Loe To play Again = r ij l i r i NY Bal Bo Tor NY - Balimore - Boon - Torono - Deroi De - - AL Ea: Augu, Which eam have a chance of finihing he eaon wih mo win? Deroi could finih eaon wih + = win.
35 // Baeball Eliminaion: Explanaion for Spor Wrier Team i Win w i Loe To play Again = r ij l i r i NY Bal Bo Tor NY - Balimore - Boon - Torono - Deroi De - - AL Ea: Augu, Which eam have a chance of finihing he eaon wih mo win? Deroi could finih eaon wih + = win. Cerificae of eliminaion. R = {NY, Bal, Bo, Tor} Have already won w(r) = game. Mu win a lea r(r) = more. Average eam in R win a lea / > game. Baeball Eliminaion: Explanaion for Spor Wrier Cerificae of eliminaion. # remaining game # win T S, w(t ): w i, g(t ): g xy, it {x, y} T If LB on avg # game won w(t ) g(t ) T w hen z i eliminaed (by ube T). z g z Theorem. [Hoffman-Rivlin ] Team z i eliminaed iff here exi a ube T* ha eliminae z. Proof idea. Le T* = eam node on ource ide of min cu. Baeball Eliminaion: Explanaion for Spor Wrier Pf of heorem. Ue max flow formulaion, and conider min cu (A, B). Define T* = eam node on ource ide of min cu. Oberve x-y A iff boh x T* and y T*. infinie capaciy edge enure if x-y A hen x A and y A if x A and y A bu x-y T, hen adding x-y o A decreae capaciy of cu game lef y eam x can ill win hi many more game r = x-y x w z + r z -w x
36 // Page : Problem - A popular web ie ha idenified k diinc demographic group, G, G,, Gk (hee group may overlap). The ie ha conrac wih m differen adverier, o how ad o he uer of he ie aifying he following conrain: (R) For he adverier i, i will how ad only o a ube Xi of {G, G,, Gk} and wan o how ad o a lea Yi uer each hour. The ie will how only one ad o each uer of he ie each hour. Suppoe a a given hour, here are n uer viiing he ie and we know each uer belong o which demographic group. I here a way o how a ingle ad o each uer aifying he conrain (R)? Page : Problem - A popular web ie ha idenified k diinc demographic group, G, G,, Gk (hee group may overlap). The ie ha conrac wih m differen adverier, o how ad o he uer of he ie aifying he following conrain: (R) For he adverier i, i will how ad only o a ube Xi of {G, G,, Gk} and wan o how ad o a lea Ri uer each hour. The ie will how only one ad o each uer of he ie each hour. Suppoe a a given hour, here are n uer viiing he ie and we know each uer belong o which demographic group. I here a way o how a ingle ad o each uer aifying he conrain (R)? Soluion: Nework G = (V, E,, ), where V = uer U adverier U {, } E = { (, x) x i a uer } U { (y, ) y i adverier } U { (x, y) x i a uer in a demographic group ha adverier y wan o how ad } U {(, ) } All edge have capaciy, excep c(y, ) = [Ri, infiniy]. Page : Problem - For he nex n day, a hopial need Pi docor for day i and ak each of i k docor o provide a li (Lj for docor j) of preferred working day for hee n day. Uing Pi and Lj, can you provide a chedule of docor uch ha each docor will work a lea number of non-preferred day?
37 // Page : Problem - For he nex n day, a hopial need Pi docor for day i and ak each of i k docor o provide a li (Lj for docor j) of preferred working day for hee n day. Uing Pi and Lj, can you provide a chedule of docor uch ha each docor will work a lea number of non-preferred day? Soluion : Nework G = (V, E,, ), where V = D U T U {, } Docor D = {d, d,, dk}, Day T = {,,, n} For each j in D, for each i in T, c(, j) = Lj, c(i, ) = Pi,c(j, i) = if i i in Lj. If G ha a flow of value P+P+ +Pn, hen no docor work on non-preferred day. Page : Problem - For he nex n day, a hopial need Pi docor for day i and ak each of i k docor o provide a li (Lj for docor j) of preferred working day for hee n day. Uing Pi and Lj, can you provide a chedule of docor uch ha each docor will work a lea number of non-preferred day? Soluion : Nework G = (V, E,, ), where V = D U T U {, } Docor D = {d, d,, dk}, Day T = {,,, n} For each j in D, for each i in T, c(, j) = Lj, c(i, ) = Pi,c(j, i) = if i i in Lj. If G ha a flow of value P+P+ +Pn, hen no docor work on non-preferred day. Soluion : Nework G = (V, E,, ), where V = D U C U T U {, } D, T a before and C = {c, c,, ck}. c(, cj) = b, where b i a conan. The value of b can be decided by binary earch. Page : Problem - Le M be a - n by n marix and Mij i he enry in row i and column j. Mii i called a diagonal enry. We ay M i rearrangeable if i i poible o wap ome of row or ome of column o ha afer all he wapping, all he diagonal enrie of M are equal o. Give a polynomial ime algorihm ha deermine wheher a - marix i rearrangeable.
38 // Page : Problem - Le M be a - n by n marix and Mij i he enry in row i and column j. M ii i called a diagonal enry. We ay M i rearrangeable if i i poible o wap ome of row o ha afer all he wapping, all he diagonal enrie of M are equal o. Give a polynomial ime algorihm ha deermine wheher a - marix i rearrangeable. Soluion: Le G = (X, Y, E) be a biparie graph, where X = {x, x,, xn} and Y = {y, y,, yn}. (xi, yi) in E iff M ij =. Claim: G ha a perfec maching iff M i rearrangeable. =>: If G ha a perfec maching, here i a permuaion f of {,,, n} uch ha x i mache o y f(i). We may wap row i o row f(i) in M. Afer wapping, M i,f(i) =. <=: Suppoe M i rearrangeable. If M i wapped o M and he correponding graph are G and G, repecively. Then G and G are iomorphic, and G ha a perfec maching iff G ha one. Since M ii i, G ha a perfec maching. Page : Problem In a group of n people, ome own money o oher people in he group. If A own money o B, hen B doen own o A. I ime o ele up hee deb by check. Can you deign a way o ha a mo a oal of n- check will be ued and A wrie a check o B only if A own B? Page : Problem In a group of n people, ome own money o oher people in he group. If A own money o B, hen B doen own o A. I ime o ele up hee deb by check. Can you deign a way o ha a mo a oal of n- check will be ued and A wrie a check o B only if A own B? Soluion: Creae a weighed digraph G = (V, E), where V = {,,,n} and w(x,y) = c if x own y $c, where c >. Repea he following: Search imple cycle C in G, reaing each edge a undireced. Decreae he flow along he cycle according o he minimum value. Delee he edge wih value. A he end, G ha no cycle, i.e., ha a mo n- edge.
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! 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 information4/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 information7.5 Bipartite Matching. Chapter 7. Network Flow. Matching. Bipartite Matching
Chaper. Biparie Maching Nework Flow Slide by Kein Wayne. Copyrigh 00 Pearon-Addion Weley. All righ reered. Maching Biparie Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node
More information6/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 informationSoviet 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 information7.5 Bipartite Matching. Chapter 7. Network Flow. Matching. Bipartite Matching
Chaper. Biparie Maching Nework Flow Slide by Kevin Wayne. Copyrigh PearonAddion Weley. All righ reerved. Maching Biparie Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node
More informationAlgorithm 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 informationMaximum 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 informationMatching. 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 informationAlgorithm 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 informationThe 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 informationMax 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 informationThe 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 informationNetwork Flow Applications
Hopial problem Neork Flo Applicaion Injured people: n Hopial: k Each peron need o be brough o a hopial no more han 30 minue aay Each hopial rea no more han n/k" people Gien n, k, and informaion abou people
More informationCSE 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 informationProblem 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 information7. NETWORK FLOW II. Soviet rail network (1950s) Max-flow and min-cut applications. "Free world" goal. Cut supplies (if cold war turns into real war).
Sovie rail nework (9). NETWORK FLOW II "Free world" goal. Cu upplie (if cold war urn ino real war). Lecure lide by Kevin Wayne Copyrigh Pearon-Addion Weley Copyrigh Kevin Wayne hp://www.c.princeon.edu/~wayne/kleinberg-ardo
More informationMaximum 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 informationGreedy. 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 informationToday: 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 information1 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 informationCS4445/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 informationCSE 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 informationGraphs 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 informationFlow 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 informationNetwork 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 informationMain 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 informationMAXIMUM 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 informationAlgorithms 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 information18 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 informationNetwork 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 informationAlgorithmic 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 informationCSC 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 information7. NETWORK FLOW II. Minimum cut application (RAND 1950s) Maximum flow application (Tolstoǐ 1930s) Max-flow and min-cut applications
Minimum cu applicaion (RAND 90). NETWORK FLOW II Free world goal. Cu upplie (if Cold War urn ino real war). Lecure lide by Kevin Wayne Copyrigh 00 Pearon-Addion Weley biparie maching dijoin pah exenion
More informationAdmin 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 informationMaximum 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 informationToday 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 informationReminder: 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 informationCS 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 informationFlow 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 informationNetwork 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 informationRandomized 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 informationAlgorithms. 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 informationThey 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 information16 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 informationFlow 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 information7. 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 information7. 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 informationintroduction 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 informationChapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 7.5 Bipartite Matching Matching Matching. Input: undirected graph G = (V, E). M E is a matching
More informationIntroduction 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 informationPlease 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 informationSoviet Rail Network, 1955
Ch7. Network Flow Soviet Rail Network, 955 Reference: On the history of the transportation and maximum flow problems. Alexander Schrijver in Math Programming, 9: 3, 2002. 2 Maximum Flow and Minimum Cut
More informationintroduction 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 informationChapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slide by Kevin Wayne. Copyright 5 Pearon-Addion Weley. All right reerved. Soviet Rail Network, 55 Reference: On the hitory of the tranportation and maximum flow problem. Alexander
More information20/20 20/20 0/5 0/5 20/20 20/20 5/5 0/5 0/5 5/5 0/20 25/30 20/20 30/30 20/20 0/5 5/5 20/20 0/5 0/5 15/20 15/25 20/20 10/10
Annoncemen CSEP Applied Algorihm Richard Anderon Lecre 9 Nework Flow Applicaion Reading for hi week 7.-7.. Nework flow applicaion Nex week: Chaper 8. NP-Compleene Final exam, March 8, 6:0 pm. A UW. hor
More informationBipartite Matching. Matching. Bipartite Matching. Maxflow Formulation
Mching Inpu: undireced grph G = (V, E). Biprie Mching Inpu: undireced, biprie grph G = (, E).. Mching Ern Myr, Hrld äcke Biprie Mching Inpu: undireced, biprie grph G = (, E). Mflow Formulion Inpu: undireced,
More informationCS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018
CS 580: Algorithm Design and Analysis Jeremiah Blocki Purdue University Spring 208 Midterm Exam Anticipate having midterm graded at this point Look for comments on Piazza Common Mistakes Average, Max,
More informationBasic 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 informationChapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 7.5 Bipartite Matching Bipartite Matching Bipartite matching. Input: undirected, bipartite graph
More informationSelfish 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 informationCMPS 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 informationAverage 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 informationIntroduction 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 informationMaximum 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 informationMaximum Flow 5/6/17 21:08. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015
Maximm Flo 5/6/17 21:08 Preenaion for e ih he exbook, Algorihm Deign and Applicaion, by M. T. Goodrich and R. Tamaia, Wiley, 2015 Maximm Flo χ 4/6 4/7 1/9 2015 Goodrich and Tamaia Maximm Flo 1 Flo Neork
More information26.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 informationChapter 7. Network Flow. CS 350: Winter 2018
Chapter 7 Network Flow CS 3: Winter 1 1 Soviet Rail Network, Reference: On the hitory of the tranportation and maximum flow problem. Alexander Schrijver in Math Programming, 1: 3,. Maximum Flow and Minimum
More information23 Maximum Flows and Minimum Cuts
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
More informationFord 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 informationApril 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 informationSelfish 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 informationCHAPTER 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 information7.5 Bipartite Matching
7. Bipartite Matching Matching Matching. Input: undirected graph G = (V, E). M E is a matching if each node appears in at most edge in M. Max matching: find a max cardinality matching. Bipartite Matching
More information7.6 Disjoint Paths. 7. Network Flow Applications. Edge Disjoint Paths. Edge Disjoint Paths
. Nework Flow Applcaon. Djon Pah Algorhm Degn by Éva Tardo and Jon Klenberg Copyrgh Addon Weley Slde by Kevn Wayne Algorhm Degn by Éva Tardo and Jon Klenberg Copyrgh Addon Weley Slde by Kevn Wayne Edge
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
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 informationu(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 informationEECE 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 informationTo 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 information18.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 informationDiscussion 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 informationPhysics 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 informationAlgorithm Design and Analysis
Algorithm Deign and Analyi LECTURES 1-1 Network Flow Flow, cut Ford-Fulkeron Min-cut/max-flow theorem Adam Smith // A. Smith; baed on lide by E. Demaine, C. Leieron, S. Rakhodnikova, K. Wayne Detecting
More informationStationary Distribution. Design and Analysis of Algorithms Andrei Bulatov
Saionary Disribuion Design and Analysis of Algorihms Andrei Bulaov Algorihms Markov Chains 34-2 Classificaion of Saes k By P we denoe he (i,j)-enry of i, j Sae is accessible from sae if 0 for some k 0
More informationARTIFICIAL 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 informationLaplace 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 informationMath 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 informationMath 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 informationNotes 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 information16 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 informationLecture 26. Lucas and Stokey: Optimal Monetary and Fiscal Policy in an Economy without Capital (JME 1983) t t
Lecure 6. Luca and Sokey: Opimal Moneary and Fical Policy in an Economy wihou Capial (JME 983. A argued in Kydland and Preco (JPE 977, Opimal governmen policy i likely o be ime inconien. Fiher (JEDC 98
More information6.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 informationChapter 9 - The Laplace Transform
Chaper 9 - The Laplace Tranform Selece Soluion. Skech he pole-zero plo an region of convergence (if i exi) for hee ignal. ω [] () 8 (a) x e u = 8 ROC σ ( ) 3 (b) x e co π u ω [] ( ) () (c) x e u e u ROC
More informationWrap 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 informationFLAT 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 informationChapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 7.5 Bipartite Matching Matching Matching. Input: undirected graph G = (V, E). M E is a matching
More informationInterpolation and Pulse Shaping
EE345S Real-Time Digial Signal Proceing Lab Spring 2006 Inerpolaion and Pule Shaping Prof. Brian L. Evan Dep. of Elecrical and Compuer Engineering The Univeriy of Texa a Auin Lecure 7 Dicree-o-Coninuou
More informationChapter 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 informationCONTROL 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