21
The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson algorithm for find- ing a maximal flow through a network. (0) Assign an initial feasible flow (x ij ) i,j N with value v .. (1) Find an augmenting path 1 = i 1 ,i 2 ,...,i r -1 ,i r = n from node 1 to node n. If no augmenting path exists, then STOP. The flow (x ij ) i,j N is optimal and there exists a cut with capacity v . (2) If an augmenting path exists, then increase the flow along the path by the amount δ = min k=1,...,r -1 max{c i k i k+1 - x i k i k+1 ,x i k+1 i k }

i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

Page 1: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson

The Ford–Fulkerson algorithm Michael Tehranchi

This slideshow illustrates the Ford–Fulkerson algorithm for find-ing a maximal flow through a network.

(0) Assign an initial feasible flow (xij)i,j∈N with value v..

(1) Find an augmenting path 1 = i1, i2, . . . , ir−1, ir = n from node1 to node n.

If no augmenting path exists, then STOP. The flow (xij)i,j∈N isoptimal and there exists a cut with capacity v.

(2) If an augmenting path exists, then increase the flow alongthe path by the amount

δ = mink=1,...,r−1

max{cikik+1− xikik+1

, xik+1ik}

Page 2: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson

by setting

x′ij =

xij + δ if i, j are consecutive nodes of pathxij − δ if j, i are consecutive nodes of path

xij otherwise

Then (x′ij)i,j∈N is a feasible flow with value v′ = v + δ.

(3) Go to step (1).

Page 3: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 4: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 5: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 6: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 7: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 8: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 9: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 10: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 11: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 12: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 13: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 14: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 15: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 16: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 17: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 18: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 19: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 20: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson
Page 21: i ,i ,,i ,i n from node n x v c x ,xmike/optimisation/Ford-Fulkerson... · 2008-05-15 · The Ford–Fulkerson algorithm Michael Tehranchi This slideshow illustrates the Ford–Fulkerson