Ice6 PDF
Ice6 PDF
2 2,
2, 2
1 1, 0 4
3, 2
2 2,
1
Successive Shortest Path Algorithm
Initialize:
x ← 0: Initialize all flows to 0 or any feasible value
while there exists node pairs r ∈ N and s ∈ N such that br > 0 and bs < 0 do
Create residual network R(x)
Find the shortest path P from r to s in R(x)
uP ← min{br , |bs |, uij ∀(i, j) ∈ P }
for each forward arc (i, j) ∈ P do
xij = xij + uP
end for
for each reverse arc (j, i) ∈ P do
xij = xij − uP
end for
br ← br − uP
bs ← bs + uP
end while
3
) (2
0 ,3
, 3, ,0
(5 )
4 -4
1 (1, 2, 0) 4
(1
,1 , 0)
,0 ,1
) ( 4