Algorithms - Lecture 8 - Ford-Fulkerson Analysis & Edmonds-Karp Algorithm

1 Complexity of the Ford-Fulkerson Algorithm

  • Integer capcacities, Ford-Fulkerson algorithm terminates with an integer maximum flow after a finite number of iterations.
  • Real capacities, can run forever, or converge to a suboptimal value.

2 Edmonds-Karp Maximum Flow Algorithm

2.1 High-level idea, (bottleneck)

  • Variant of Ford-Fulkerson in which we always augment along a shortest augmenting path.
  • Bottleneck edges of an augmenting path P P P. Δ \Delta Δ denotes the capacity of a minimum-capacity edge of P P P.
  • Bottleneck count of e e e, the number of iterations such that e e e is a bottleneck edge on an augmenting path.
  • Bound the bottleneck count of each edge within O ( V ) O(V) O(V). Since each iteration increments bottleneck count at least one, number of iterations is O ( ∣ E ∣ ∣ V ∣ ) O(|E||V|) O(EV).
  • Terminates within O ( ∣ E ∣ ∣ V ∣ ) O(|E||V|) O(EV) iterations, each iteration within O ( ∣ E ∣ ) O(|E|) O(E) time, total O ( ∣ E ∣ 2 ∣ V ∣ ) O(|E|^2|V|) O(E2V)

2.2 Bottleneck lemma

  • Vertex distances: d ( v , i ) d(v,i) d(v,i) denotes the minimum length of a path of positive-capacity edges from s s s to v v v in G f G_f Gf after i i i iterations. (No such path: d ( v , i ) = ∞ d(v,i)=\infin d(v,i)=, if d ( v , i ) < ∞ d(v,i)<\infin d(v,i)< then d ( v , i ) ≤ ∣ V ∣ − 1 d(v,i)\leq|V|-1 d(v,i)V1).
  • For all v v v in V V V, and all i ≥ 1 i\geq 1 i1, we have d ( v , i − 1 ) ≤ d ( v , i ) d(v,i-1)\leq d(v,i) d(v,i1)d(v,i).
  • Bottleneck count of ( u , v ) (u,v) (u,v) is at most max ⁡ ( 1 , ∣ V ∣ / 2 ) \max(1,|V|/2) max(1,V/2)

3 Max-Flow Min-cut theorem

  • For any flow network, a maximum flow exists in G G G and the value of a maximum flow in G G G is equal to the capacity of a minimum cut in G G G.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值