题目链接:https://cn.vjudge.net/problem/POJ-1251
Description
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 relentlessly, so the large road network is too expensive to maintain. The Council of Elders must choose to stop maintaining some roads. The map above on the left shows all the roads in use now and the cost in aacms per month to maintain them. Of course there needs to be some way to get between all the villages on maintained roads, even if the route is not as short as before. The Chief Elder would like to tell the Council of Elders what would be the smallest amount they could spend in aacms per month to maintain roads that would connect all the villages. The villages are labeled A through I in the maps above. The map on
POJ-1251 Jungle Roads【Kruskal算法模板题】
最新推荐文章于 2023-02-11 21:16:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)