麻省理工学院:《算法导论》(英文版) 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
- 《计算机三级网络技术》第一章 计算机基础知识.doc
- 《计算机三级网络技术》第七章 电子商务和电子政务.doc
- 《计算机三级网络技术》第三章 局域网基础.doc
- 《计算机三级网络技术》第二章 网络基本概念.doc
- 《计算机三级网络技术》第五章 因特网基础.doc
- 《计算机三级网络技术》第八章 网络技术展望.doc
- 《计算机三级网络技术》第六章 网络安全技术.doc
- 《计算机三级网络技术》第四章 网络操作系统.doc
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)目录.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第六章 竞赛评分模板.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第二章 Word2002应用基础.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第四章 VBA编程.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第八章 成绩汇总表及数据导入模板.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第三章 Exce2002.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第九章 排课摸版.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第七章 学生成绩报告单及成绩分析模板.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第十章 教学工作量统计模板.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第十二章 名片制作模板.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第五章 VBA内部函数.ppt
- 吉林师范大学:《VBA》课程电子教案(PPT教学课件)第十一章 教学计划辅助制订模板.ppt