最大流(relable-front)算法
摘要:预流推进算法2(relable-front)算法,时间复杂度O(v^3) 1 // The relable-front algorithm code due to CLRS chapter 26 2 #include<iostream> 3 #include<list> 4 using namespace std; 5 const int N = 100; 6 int n; // vertex number 7 int e[N]; // residual flow of the vertex 8 int h[N]; // height of the vertex 9 i
阅读全文
posted @ 2011-05-07 16:11
浙公网安备 33010602011771号