
网络流
文章平均质量分 78
Falling~
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
最大流-EK
#include #include #include #include using namespace std; const int maxn = 205; const int INF = 1 20; struct edge{ int u,v,cap,flow; edge(int u,int v,int cap,i原创 2017-05-04 03:08:46 · 251 阅读 · 0 评论 -
最大流-Dinic
pos 1274 Dinic写的二分图 #include #include #include #include #include using namespace std; const int maxn = 500; const int INF = 1 20; struct edge{ int u,v,cap,原创 2017-05-04 20:34:19 · 248 阅读 · 0 评论 -
最小费用最大流--uva1658 Admiral
给定有向图,起点和终点。起点有2艘船,分别沿不同的路,走到终点,不仅路径不能重合,除起点终点,不能经过相同的点。(即结点容量为1) 求2条路径的最小费用。 1.结点容量问题可以用拆点法。 将点i边成i和i’,i和i‘之间连接一条容量为1,费用为0的路径即可。 2.只求2条路径。 所以不能直接while(bellmanford()) ;这样会找到所有增广路径,求出最大流下的最小费用。 但原创 2017-09-09 10:22:48 · 1281 阅读 · 0 评论