
基础图论
文章平均质量分 83
_rabbit
这个作者很懒,什么都没留下…
展开
-
POJ 3237树链剖分
TreeTime Limit: 5000MS Memory Limit: 131072KTotal Submissions: 3189 Accepted: 897DescriptionYou are given a tree with N nodes. The tree’s nodes are numbered 1 thr原创 2014-01-24 15:19:33 · 985 阅读 · 0 评论 -
uva 10735 混合图欧拉路径的判定,方案输出。
Euler CircuitTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu[Submit] [Go Back] [Status] DescriptionProblem DEulerCircuitInput: stan原创 2014-03-26 19:44:15 · 1183 阅读 · 0 评论 -
UVA 216 二维平面的最小哈密尔顿回路
Getting in LineTime Limit:3000MS Memory Limit:Unknown 64bit IO Format:%lld & %llu[Submit] [Go Back] [Status] Description Getting in Line Co原创 2014-03-26 09:59:23 · 1207 阅读 · 0 评论 -
hdu 3018 并查集+顶点度数判定
Ant TripTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1329 Accepted Submission(s): 514Problem DescriptionAnt Country consist of原创 2014-03-26 21:23:01 · 810 阅读 · 0 评论 -
POJ 1386 欧拉路径判断
Play on WordsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8839 Accepted: 3088DescriptionSome of the secret doors contain a very interesting word puzzle原创 2014-03-26 12:14:12 · 865 阅读 · 0 评论 -
POJ 1637 混合图欧拉回路判定
Sightseeing tourTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7070 Accepted: 2941DescriptionThe city executive board in Lund wants to construct a sights原创 2014-03-26 11:22:07 · 827 阅读 · 0 评论 -
SPOJ Count on a tree 树上第k大。
DescriptionYou are given a tree with N nodes.The tree nodes are numbered from1 to N.Each node has an integer weight.We will ask you to perform the following operation:u v k : ask for the k原创 2014-04-11 19:20:59 · 1022 阅读 · 0 评论 -
POJ 1639 K度生成树
由于这东西见得不多,先挖一个坑,以待日后补充。铁一份原创 2014-07-15 21:20:36 · 682 阅读 · 0 评论 -
HDU 4085 斯坦纳树
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4085因为这题专门花一晚上学习斯坦纳树,找到比较好的学习资料,链接在这里:http://endlesscount.blog.163.com/blog/static/821197872012525113427573/花了很长时间照着别人写了一份自己风格的代码,慢慢理解:/* *******原创 2014-07-16 22:31:55 · 1125 阅读 · 0 评论 -
HDU 4085 斯坦纳树模板题
Dig The WellsTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 971 Accepted Submission(s): 416Problem DescriptionYou may all know t原创 2014-07-17 01:35:11 · 2026 阅读 · 0 评论 -
差分约束系统
这篇文章讲解不错,挖一个坑:http://972169909-qq-com.iteye.com/blog/1185527原创 2014-07-21 17:47:21 · 665 阅读 · 0 评论 -
HDU 4063 线段与圆相交+最短路
AircraftTime Limit: 10000/3000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 980 Accepted Submission(s): 228Problem DescriptionYou are playing a flyi原创 2014-07-05 12:24:47 · 1424 阅读 · 0 评论 -
HDU 4912 lca贪心
Paths on the treeTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 297 Accepted Submission(s): 93Problem Descriptionbobo has a tr原创 2014-08-06 11:45:00 · 1252 阅读 · 0 评论 -
HDU 4892 状压dp
[BestCoder Round #5]冠军的奖励是小米3手机一部恭喜福州大学杨楠获得[BestCoder Round #4]冠军(iPad Mini一部)《BestCoder用户手册》下载Defence of the TreesTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/65536 K (Ja原创 2014-08-15 12:59:44 · 1196 阅读 · 0 评论 -
HDU 3472 混合图欧拉回路的判定
HS BDCTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 792 Accepted Submission(s): 307Problem DescriptionIELTS is around the corne原创 2014-03-26 11:10:44 · 1208 阅读 · 1 评论 -
SGU 101 输出欧拉路径
DominoTime Limit:250MS Memory Limit:4096KB 64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status] DescriptionDominoes – game played with small, rectangular b原创 2014-03-26 17:21:34 · 1203 阅读 · 0 评论 -
POJ 1041 无向图的欧拉回路
John's tripTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6569 Accepted: 2182 Special JudgeDescriptionLittle Johnny has got a new car. He decided to原创 2014-03-24 21:49:19 · 866 阅读 · 0 评论 -
双连通缩点 POJ 1515
B - 双连通Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionAccording to the Automobile Collision Monitor (ACM), most fatal traffic accident原创 2014-01-18 20:38:31 · 1442 阅读 · 0 评论 -
无向图最小割算法。
一个无向连通网络,去掉一个边集可以使其变成两个连通分量则这个边集就是割集;最小割集当然就权和最小的割集。可以用最小切割最大流定理:1.min=MAXINT,确定一个源点2.枚举汇点3.计算最大流,并确定当前源汇的最小割集,若比min小更新min4.转到2直到枚举完毕5.min即为所求输出min不难看出复杂度很高:枚举汇点要O(n),最短增广路最大流算法求最大流是O((n原创 2014-01-19 10:35:44 · 1820 阅读 · 0 评论 -
HDU 4756 次小生成树裸题
Install Air ConditioningTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 768 Accepted Submission(s): 154Problem Description原创 2013-10-16 19:15:12 · 1251 阅读 · 0 评论 -
POJ 2942 圆桌骑士问题。
Knights of the Round TableTime Limit: 7000MS Memory Limit: 65536KTotal Submissions: 8785 Accepted: 2813DescriptionBeing a knight is a very attractive career: search原创 2014-01-18 18:57:13 · 1510 阅读 · 0 评论 -
POJ 3241
Object ClusteringTime Limit: 2000MS Memory Limit: 131072KTotal Submissions: 1403 Accepted: 290DescriptionWe have N (N ≤ 10000) objects, and wish to classify them原创 2014-03-12 14:27:52 · 1000 阅读 · 0 评论 -
UVALA 3662 曼哈顿最小生成树
D - Another Minimum Spanning TreeTime Limit:9000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmitStatusAppoint description:DescriptionFor a given point set P = {(xi,yi)原创 2014-03-12 14:54:05 · 753 阅读 · 0 评论 -
swjtu-oj 1569 离线并查集
连通 OR 不连通Time Limit:1000MS Memory Limit:65536KTotal Submit:51 Accepted:9Description给定一个无向图,一共n个点,请编写一个程序实现三种操作:E x 从原图中删除连接x节点的所有边。D x y 从原图中删除连接x,y节点的边。Q x y 询问x,y节点是否连通。Input输入只有一原创 2014-03-07 20:02:50 · 1320 阅读 · 0 评论 -
点连通分量
Gymman vs FilaTime Limit:2000MS Memory Limit:Unknown 64bit IO Format:%lld & %llu[Submit] [Go Back] [Status] Description Gymman vs Fila The原创 2014-04-15 21:00:36 · 1038 阅读 · 0 评论 -
HDU 3896 dfs树倍增
Greatest TCTime Limit: 12000/4000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 509 Accepted Submission(s): 148Problem DescriptionTC (Tian Chao) is m原创 2014-05-02 22:34:25 · 998 阅读 · 0 评论 -
POJ 2337 有向图的欧拉路径
CatenymsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8857 Accepted: 2336DescriptionA catenym is a pair of words separated by a period such that the las原创 2014-03-25 19:36:56 · 2326 阅读 · 0 评论 -
POJ 1776 竞赛图的哈密尔顿回路
Task SequencesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2062 Accepted: 583 Special JudgeDescriptionTom has received a lot of tasks from his boss原创 2014-03-25 20:22:52 · 1669 阅读 · 0 评论 -
POJ 1419 最大团问题
Graph ColoringTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3830 Accepted: 1711 Special JudgeDescriptionYou are to write a program that tries to fin原创 2014-03-25 20:50:57 · 786 阅读 · 0 评论 -
HDU 5102 树分治
HDU 5102 树分治原创 2014-11-09 13:43:05 · 1619 阅读 · 0 评论