
图论
文章平均质量分 63
lele_pipi
生命不息,奋斗不止!
展开
-
最小生成树-hdu1233-还是畅通工程
还是畅通工程Problem Description某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。 Input测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N (原创 2015-01-15 21:03:37 · 348 阅读 · 0 评论 -
二分图的最大独立集-poj-2771
Guardian of DecencyDescriptionFrank N. Stein is a very conservative high-school teacher. He wants to take some of his students on an excursion, but he is afraid that some of them might become原创 2015-01-19 17:08:44 · 418 阅读 · 0 评论 -
二分图最大匹配-增广路-hdu2063-过山车
过山车DescriptionRPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和linle或LL做partner,PrincessSnow原创 2015-01-17 19:47:45 · 964 阅读 · 0 评论 -
hdu-1350-最小路径覆盖(二分图)
Taxi Cab SchemeProblem DescriptionRunning a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the customers callin原创 2015-01-18 19:56:52 · 469 阅读 · 0 评论 -
关于图论的一些名词解释
关于图论的一些名词解释二分图:二分图又称二部图,是图论中的一种特殊模型。设G=(V,E)是一个无向图,如果顶点V可以分割为两个互不相交的子集(A,B),并且图中的每条边(i,j)所关联的两个顶点i和j分别属于这两个不同的顶点集(iin A, j in B), 则称图G是二分图。匹配:(两两没有公共点的边集)给定一个二分图,在G的一个子图G’中,如果G’的边集中的任意两条边都原创 2015-01-18 20:23:24 · 2100 阅读 · 0 评论 -
hdu1269-图论-Tarjan-迷宫城堡
迷宫城堡Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N Input输入包含多组数据,输入的第一行有两个数:N和M,接下来的M行每行有两个数a和b,表示了一条通道可以从A房间来到B房间。文件最后以两个0结束。 Output对于输入的每组数据,如果任意两个房间都是相互连接的,输出"Yes"原创 2015-01-16 18:00:53 · 440 阅读 · 0 评论 -
POJ-3352-无向图的割顶和桥-求边-双连通分量
Road ConstructionDescriptionIt's almost summer time, and that means that it's almost summer construction time! This year, the good people who are in charge of the roads on the tropical islan原创 2015-01-23 11:19:12 · 487 阅读 · 0 评论 -
hdu-3394-无向图的双连通分量
RailwayProblem DescriptionThere are some locations in a park, and some of them are connected by roads. The park manger needs to build some railways along the roads, and he would like to arrange原创 2015-01-24 09:50:29 · 676 阅读 · 0 评论