maximum flow
来源:互联网 发布:风华软件 编辑:程序博客网 时间:2024/05/21 10:05
mincut problem: an edge-weighted digraph, source vertex s, and target vertex t.
a st-cut is a partition of the vertices into two disjoint sets, with s in one set A and t in the other set B.
他的容量就是从A到B的边的容量之和,而不计算从B到A的边。
最小st-cut问题: 找一个cut,使得cut的容量最小。
最大流问题: st-flow容量, 边的流 <= 边的容量。除了s和t,inflow = outflow。 流的值等于在t的inflow。需要找到一个值最大的flow。
在augmenting paths增加flow。终止条件是: full forward edge 或者 empty backward edge.
FFA:
start with 0 flow
while there exists an augmenting path:
find an augmenting path
compute bottleneck capacity
increase flow on that path by bottleneck capacity.
the net flow across a cut (A, B) is the sum of the flows on its edges from A to B minus the sum of the flows on its edges from B to A.
Flow-value lemma: let f be any flow and let (A, B) be any cut. Then, the net flow across (A, B) equals the value of f.
value of flow f = net flow across cut (A, B) <= capacity of cut (A, B)
Augmenting path theorem: 如果没有增强路径,一个流是最大流
Maxflow-mincut theorem: value of the maxflow = capacity of mincut
对于任何一个流来说下面的3个条件是对等的
i, 有一个cut的容量 = 流f的值
ii, f是最大流
iii, 对于f来说没有增强路径。
i -> ii , the value of any flow f' <= capacity of cut (A, B) = value of f, 所以f是最大流
ii -> iii, prove contrapositive
iii -> i, let (A, B) be a cut where A is the set of vertices connected to s by an undirected path with no full forward or empty backward edges. s is in A; since no augmenting path, t is in B. capacity of cut = net flow across cut (because forward edges full; backward edges empty) = value of flow f.
- maximum flow
- Maximum Flow
- Maximum Flow
- UVA 10779 【maximum flow】
- [SPOJ FASTFLOW] Fast Maximum Flow [最大流]
- 【SPOJ-FASTFLOW】Fast Maximum Flow【最大流】
- 【2017西安网络赛】E Maximum Flow
- 2011-03-01 CLRS Chapter26 Maximum Flow 最大流
- A New Approach to the Maximum Flow Problem
- 【资料】Ford-Fulkerson Algorithm for Maximum Flow Problem
- Maximum Flow 练习:RookAttack,最大二分图匹配
- [图论]最大流问题(Maximum flow)的定义
- 2017 ACM西安网络赛 E题 Maximum Flow
- 17西安网络赛 规律题 Maximum Flow
- 2017 ACM-ICPC 亚洲区域赛【西安站网赛】Maximum Flow
- flow
- flow
- flow
- 第4章 供给与需求的市场力量
- 原来高德也有一样的图片覆盖物加载方法
- linux—原子操作
- 问题
- PHP学习笔记
- maximum flow
- 用JavaScrip实现选项卡切换的效果
- MyAdapter extends BaseAdapter
- VVS(Virtual Visual Servoing)在单目位姿估算中的应用
- javaweb怎么用eclipse连接mysql
- 门禁系统 (201412-1)
- 自定义ListView中的分割线
- 教你怎么提高网速 最全提高网速方法
- ARM Linux的启动全过程