Understand and implement the Ford-Fulkerson algorithm for maximum flow problems on directed graphs, with skew symmetry, capacity constraints, and flow conservation. Learn how to find augmenting paths and improve flow efficiently. Explore runtime complexities and optimization strategies for solving max-flow challenges effectively.
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
Residual network 4 5 6 9 7 1 1 7 2 8 4 4 Is there an augmenting path? Is there a path from s to t in the residual network?
Correct ? F zero-flow while augmenting path p improve F along p
Correct ? F zero-flow while augmenting path p improve F along p YES Theorem: no augmenting path max-flow
Theorem: no augmenting path max-flow Proof: no augmenting path no path from s to t in the residual network s t
Theorem: no augmenting path max-flow Proof: no augmenting path no path from s to t in the residual network s t vertices to which we can get from s
Theorem: no augmenting path max-flow Proof: no augmenting path no path from s to t in the residual network all edges from C to V-C saturated C s t vertices to which we can get from s
Is there an augmenting path? Is there a path from s to t in the residual network? time O(E) F zero-flow while augmenting path p improve F along p time = ?
F zero-flow while augmenting path p improve F along p 100 100 0 0 1 0 0 0 100 100
F zero-flow while augmenting path p improve F along p 100 100 0 0 1 0 0 0 100 100
F zero-flow while augmenting path p improve F along p 100 100 1 0 1 1 0 1 100 100
F zero-flow while augmenting path p improve F along p 100 100 1 0 1 1 0 1 100 100
F zero-flow while augmenting path p improve F along p 100 100 1 0 1 1 0 1 100 100
F zero-flow while augmenting path p improve F along p 100 100 1 2 1 -1 2 1 100 100
F zero-flow while augmenting path p improve F along p 100 100 1 2 1 -1 2 1 100 100
F zero-flow while augmenting path p improve F along p 100 100 3 2 1 1 2 3 100 100
F zero-flow while augmenting path p improve F along p Assume that the capacities are integers. Then the number of augementations is bounded by F* (=max-flow) running time O(E F*)
F zero-flow while augmenting path p improve F along p can a good choice of p improve the algorithm? running time O(E F*)
F zero-flow while augmenting path p improve F along p 1. choose path p which increases the flow the most (i.e., p has the maximum bottleneck capacity) 2. choose path p which has the fewest number of edges
1. choose path p which increases the flow the most (i.e., p has the maximum bottleneck capacity) THEOREM: number of augmenting steps O(E log F*)
Graph G flow f in G Residual network Gf f’=flow in Gf Claim: h=f+f’ is a flow in G SKEW SYMMETRY: h(u,v)=f(u,v)+f’(u,v)=-f(v,u)-f’(v,u) = - (f(v,u) + f’(v,u)) = - h(v,u) FLOW CONSERVATION: u h(u,v) = u (f(u,v)+f’(u,v))= u f(u,v) + u f’(u,v) = 0
Graph G flow f in G Residual network Gf f’=flow in Gf Claim: h=f+f’ is a flow in G CAPACITY CONSTRAINTS: f’(u,v) c(u,v)-f(u,v) h(u,v)=f(u,v)+f’(u,v) c(u,v)
Graph G flow f in G Residual network Gf f’=flow in Gf flow h in G Claim: f’=h-g is a flow in Gf CAPACITY CONSTRAINTS: f’(u,v)= h(u,v)-f(u,v)c(u,v)-f(u,v)
Claim: any flow f in G is a sum of at most |{e E;f(e)0}| path flows Induction on the number of non-zero edges in f f = flow G’ with capacities c’(u,v)=max{0,f(u,v)} p = augmenting path from zero flow in G’ p has bottleneck edge f-p has less non-zero edges than f f = p + (f-p)