不要哀求,学会争取,若是如此,终有所获
Example:
Initialized:
Augmenting path:s→a→b→t,excess capacity:min(4, 3, 5) = 3f(G) = 3:
Augmenting path:s→a→t,excess capacity:min(1, 5) = 1f(G) = 4:
Augmenting path:s→c→d→t,excess capacity:min(6, 4, 4) = 4f(G) = 8:
Final result:
No comments:
Post a Comment