网络流算法之一
摘要:
1. Edmonds-karp 算法用广度优先搜索来实现对增广路径p的计算,即如果增广入径是残留网络中从(s到t的最短路径,就能改进FORD-FULKERSON的界,称Ford-Fulkerson方法的这种实现为Edmonds-karp算法,时间复杂度为O(VE^2);HDU 3549View Code #include <stdio.h>#include <string.h>#include <stdlib.h>#include <deque>using namespace std;int cap[100][100];int a[100];in 阅读全文
posted @ 2012-03-08 23:24 more think, more gains 阅读(558) 评论(0) 推荐(0) 编辑