
ACM之图论问题
对于ACM中的图论问题进行归纳讲解。发布相关ACM题目的题解与思考。
GDRetop
数据研发专家,ETL工程师
展开
-
hdu 5352 MZL's City 2015多校联合训练赛#5 费用流
MZL's CityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 649 Accepted Submission(s): 225Problem DescriptionMZL is an active原创 2015-08-06 09:53:13 · 1889 阅读 · 0 评论 -
hdu 5294 Tricks Device 2015 Multi-University Training Contest 1
题目:给一个图,起点1,终点n必须走最短路才能从起点到终点。问至少删除几条边使得无法从起点到终点。且删除最多几条边,还可以从起点到终点。分析:做最短路,所有满足dist[u] = dist[v] + w(v,u)的边都是最短路的边,对这样的边,重新建图。新图加入e(u,v),边权为1t到s作最短路d,就是最少需要的边数能够到达边数,总边数-d就是最多能删除的边对原创 2015-07-21 18:26:02 · 1289 阅读 · 0 评论 -
无向图全局最小边割集
转自 http://www.cppblog.com/imky/articles/123427.html 一个无向连通网络,去掉一个边集可以使其变成两个连通分量则这个边集就是割集;最小割集当然就权和最小的割集。可以用最小切割最大流定理:1.min=MAXINT,确定一个源点2.枚举汇点3.计算最大流,并确定当前源汇的最小割集,若比min小更新min4.转到2直转载 2015-07-17 08:42:43 · 4127 阅读 · 0 评论 -
hdu 3639 Hawk-and-Chicken 强连通分量 targin
Hawk-and-ChickenTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2326 Accepted Submission(s): 684Problem DescriptionKids in ki原创 2015-08-09 09:34:26 · 1430 阅读 · 0 评论 -
hdu 5361 2015多校联合训练赛#6 最短路
In TouchTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 67 Accepted Submission(s): 11Problem DescriptionThere are n soda li原创 2015-08-06 18:36:34 · 1999 阅读 · 10 评论 -
hdu 4888 Redraw Beautiful Drawings 网络流+搜索
Redraw Beautiful DrawingsTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3760 Accepted Submission(s): 1118Problem Description原创 2014-12-01 22:59:47 · 1118 阅读 · 0 评论 -
toj 3345. Chinese Chess 关键匹配
3345. Chinese ChessTime Limit: 20.0 Seconds Memory Limit: 65536KTotal Runs: 426 Accepted Runs: 47Winnie is very interested in chinese chess. Now, let's consider a game which is s原创 2013-07-28 15:31:18 · 1056 阅读 · 0 评论 -
TOJ 3294. Building Block 并查集
3294. Building BlockTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 840 Accepted Runs:235John are playing with blocks. There are N blocks (1 ≤ N ≤ 30000) numbered 0..N-原创 2013-03-30 16:22:28 · 1015 阅读 · 0 评论