《算法入门》(英文版)Lecture 23 Prof. Charles E. Leiserson

Introduction to algorithms 6.046J/18,401J/SMA5503 Lecture 23 Prof charles e. leiserson
Introduction to Algorithms 6.046J/18.401J/SMA5503 Lecture 23 Prof. Charles E. Leiserson

Recall from lecture 22 Flow value: f=f(s, v) Cut: Any partition(, T)of y such that s E S andt∈T Lemma. f=f(s, n) for any cut(S, T) Corollary. f0. Augmenting path: Any path from s to t in Gr Residual capacity of an augmenting path Cy(p)=min (cr(u, v) (u, vEp c 2001 by Charles E Leiserson Introduction to Algorithms Day40L23.2
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.2 Recall from Lecture 22 • Flow value: | f | = f(s, V). • Cut: Any partition (S, T) of V such that s ∈ S and t ∈ T. • Lemma. | f | = f(S, T) for any cut (S, T). • Corollary. | f | ≤ c(S, T) for any cut (S, T). • Residual graph: The graph Gf = (V, Ef ) with strictly positive residual capacities cf (u, v) = c(u, v) – f(u, v) > 0. • Augmenting path: Any path from s to t in Gf . • Residual capacity of an augmenting path: ( ) min { ( , )} ( , ) c p c u v f u v p f ∈ =

Max-flow. min-cut theorem Theorem. The following are equivalent 1. f=c(S, n) for some cut(S, T) 2. fis a maximum flow 3. f admits no augmenting paths Proof (1)→(2): Since f≤c(S, T)for any cut(S,T)(by the corollary from Lecture 22), the assumption that f=cs, T) implies that f is a maximum flow (2)=(3): If there were an augmenting path, the flow value could be increased, contradicting the maximality of f. c 2001 by Charles E Leiserson Introduction to Agorithms Day40L23.3
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.3 Max-flow, min-cut theorem Theorem. The following are equivalent: 1. | f | = c(S, T) for some cut (S, T). 2. f is a maximum flow. 3. f admits no augmenting paths. Proof. (1) ⇒ (2): Since | f | ≤ c(S, T) for any cut (S, T) (by the corollary from Lecture 22), the assumption that | f | = c(S, T) implies that f is a maximum flow. (2) ⇒ (3): If there were an augmenting path, the flow value could be increased, contradicting the maximality of f

Proof (continued) (3)=(1): Suppose that f admits no augmenting paths Define s=lvev: there exists a path in Gr from s to v) and let t=v-s observe that s e s and te t and thus (S, T)is a cut. Consider any vertices u E S and vE T path in g We must have cr(u, v)=0, since if cr(u, v)>0, then E S not v E T as assumed. Thus, f(u,v)=c(u, v), since cr(u,v) cu, v)f(u, v). Summing over all u E S and E ields f(S,T)=c(S, 1), and since f =f(S, T), the theorem allOWS c 2001 by Charles E Leiserson Introduction to Agorithms Day 40 L23.4
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.4 Proof (continued) (3) ⇒ (1): Suppose that f admits no augmenting paths. Define S = {v ∈ V : there exists a path in Gf from s to v}, and let T = V – S. Observe that s ∈ S and t ∈ T, and thus (S, T) is a cut. Consider any vertices u ∈ S and v ∈ T. We must have cf (u, v) = 0, since if cf (u, v) > 0, then v ∈ S, not v ∈ T as assumed. Thus, f(u, v) = c(u, v), since cf (u, v) = c(u, v) – f(u, v). Summing over all u ∈ S and v ∈ T yields f(S, T) = c(S, T), and since | f | = f(S, T), the theorem follows. ss uu vv S T path in Gf

Ford fulkerson max-flow algorithm Algorithm: flu,v <0 for while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow c 2001 by Charles E Leiserson Introduction to Agorithms Day40L23.5
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.5 Ford-Fulkerson max-flow algorithm Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p) Can be slow: ss tt 109 109 109 1 109 G:

Ford fulkerson max-flow algorithm Algorithm: flu,v <0 for while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow 0:10 0:109 0:1 0:109 0:109 c 2001 by Charles E Leiserson Introduction to Agorithms y40L236
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.6 Ford-Fulkerson max-flow algorithm Can be slow: ss tt 0:109 0:109 0:109 0:1 0:109 G: Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p)

Ford fulkerson max-flow algorithm Algorithm: f[vl,v<0 for all u,∈ while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow 0:109 0:109 0:1 0:109 0:109 c 2001 by Charles E Leiserson Introduction to Agorithms Day40L23.7
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.7 Ford-Fulkerson max-flow algorithm Can be slow: ss tt 0:109 0:109 0:109 0:1 0:109 G: Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p)

Ford fulkerson max-flow algorithm Algorithm: flu,v <0 for while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow 1:10 0:109 0:109 1:109 c 2001 by Charles E Leiserson Introduction to Agorithms Day 40 L23. 8
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.8 Ford-Fulkerson max-flow algorithm Can be slow: ss tt 1:109 0:109 1:109 1:1 0:109 G: Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p)

Ford fulkerson max-flow algorithm Algorithm: flu,v <0 for while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow 1:10 0:109 0:10 1:10 c 2001 by Charles E Leiserson Introduction to Agorithms y
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.9 Ford-Fulkerson max-flow algorithm Can be slow: ss tt 1:109 0:109 1:109 1:1 0:109 G: Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p)

Ford fulkerson max-flow algorithm Algorithm: flu,v <0 for while an augmenting path p in G wrtf exists do augment f by cr(p) Can be slow 1:10 1:109 0:1 1:109 1:10 c 2001 by Charles E Leiserson Introduction to Agorithms Day40L23.10
© 2001 by Charles E. Leiserson Introduction to Algorithms Day 40 L23.10 Ford-Fulkerson max-flow algorithm Can be slow: ss tt 1:109 1:109 1:109 0:1 1:109 G: Algorithm: f [u, v] ← 0 for all u, v ∈ V while an augmenting path p in G wrt f exists do augment f by cf(p)
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《算法入门》(英文版)Lecture 22 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 21 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 20 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 19 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 18 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 17 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 16 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 15 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 14 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 13 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 12 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 11 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 10 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 9 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 8 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 7 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 6 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 5 Prof. Erik Demaine.pdf
- 《算法入门》(英文版)Lecture 4 Prof. Charles E. Leiserson.pdf
- 《算法入门》(英文版)Lecture 3 Prof. Erik Demaine.pdf
- 《加快林业建设—缓解气候变化》讲义.ppt
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Alkene/Alkyne Hydrozirconation.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Olefin functionalization via metal promoted Nu attack.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Murai has described the synthesis.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)π-Trimethylenemethane cyclization.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Functionalization of terminal olefins.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Course Overviewweek1.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Ligand Exchange Mechanisms.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)C-C Bond Formation.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Sonogashira:in situ, metal assisted deprotonation.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Wilkinson's original.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Substrate-directed hydrogenations with.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)Monohydride catalysts.pdf
- 哈佛大学:《有机过渡金属化学》英文教学资源(讲义)The Holy Grail of Catalysis.pdf
- 《建筑施工图的绘制》第五讲 建筑图纸的表达.ppt
- 21 世纪高职高专会计专业主干课程:《管理会计》PPT教学课件(共十章).ppt
- 西安电子科技大学:《多媒体通信技术》课程电子教案(PPT教学课件)第1章 多媒体通信技术概论.ppt
- 西安电子科技大学:《多媒体通信技术》课程电子教案(PPT教学课件)第2章 多媒体信息编码.ppt
- 西安电子科技大学:《多媒体通信技术》课程电子教案(PPT教学课件)第3章 多媒体通信同步.ppt
- 西安电子科技大学:《多媒体通信技术》课程电子教案(PPT教学课件)第4章 多媒体通信网络环境.ppt