No other path! 5/5 5 6/6 4 5/7 1/2 6 44 5/5 2 3 4/5 Find all the path and increase its flow value to the max!
No other path! 6 4 5 2 3 1 1/2 5/5 4/5 4/4 5/7 5/5 6/6 Find all the path and increase its flow value to the max!
FORD-FULKERSON-METHOD(G.S.1) 1 initialize flow f to 0 2 while there exists an augmenting path p in the residual network Gf 3 augment flow f along p 4 return f 找到所有的augmenting path是方法的关键所在!
找到所有的augmenting path是方法的关键所在!
再看这个流网络中的流f: 5/5 4 5 5/6 5/7 2 当前流f下的 4/4④ 4/5 2 3 残存运力C 4/5 4 5 2 0 当前流f下的残存网络G:
再看这个流网络中的流f: 6 4 5 2 3 1 2 4/5 4/5 4/4 5/7 5/5 5/6 6 4 5 2 3 1 2 1 1 0 2 0 1 当前流f下的 残存运力Cf 6 4 5 2 3 1 2 1 1 1 2 当前流f下的残存网络Gf