最小生成树
Astralis的Xyp9x本 人
这个作者很懒,什么都没留下…
展开
-
畅通工程再续 最小生成树
题目:相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。当然,为了节省资金,只要求实现...原创 2020-02-10 11:48:42 · 161 阅读 · 0 评论 -
The Unique MST POJ1679
题目:Given a connected undirected graph, tell if its minimum spanning tree is unique.Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of G is a subgrap...原创 2020-02-09 16:49:08 · 90 阅读 · 0 评论 -
还是畅通工程 HDU1233 最小生成树
题目:某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。Input测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( < 100 );随后的N(N-1)/2行对应村庄间的距离,每行...原创 2020-02-08 21:05:33 · 160 阅读 · 0 评论 -
Agri-Net POJ-1258
题目:Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high...原创 2020-02-08 19:22:15 · 153 阅读 · 0 评论 -
Highways POJ-1751
题目:The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already constructed a...原创 2020-02-08 19:17:02 · 98 阅读 · 0 评论 -
Highways
题目:The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already constructed a...原创 2020-02-08 16:28:18 · 203 阅读 · 0 评论 -
Truck History(最小生成树)
题目:Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each type of...原创 2020-02-08 15:30:03 · 245 阅读 · 0 评论 -
Constructing Roads(最小生成树)
题目:There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only...原创 2020-02-08 15:07:27 · 112 阅读 · 0 评论 -
Building a Space Station(最小生成树)
题目:You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write a computer program to complete the task.The ...原创 2020-02-08 14:53:22 · 204 阅读 · 0 评论 -
Networking 最小生成树
题目:You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible routes for the cables that may connect pairs...原创 2020-02-08 11:29:15 · 163 阅读 · 0 评论 -
Jungle Roads
题目:The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentle...原创 2020-02-08 11:12:02 · 124 阅读 · 0 评论