文件名称:work83
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.46kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Flatopia是个很平的地方,政府想要修高速公路,以解决交通问题。高速公路系统能使得驾驶能够不出离此系统就能够在任意两城之间通行。城镇编号1~N,每条高速路连接两个城镇,所有高速路都是直线的,双向使用的。但是一个驾驶员只能在公路的尽头的城镇改变线路。当地政府想要尽量减少所需修建最长公路的长度,然而,必须保证每一个城镇都是可以达到的。
输入:
处理情况。
由一个矩阵代表了每两个镇之间的距离,每个情况末尾是空行。
二、 算法分析:
题目抽象后可得,给定一个图,要求找到一个可以让所有结点连接的方式,使得其中权值最大者最小。
-Flatopia is a very flat place, the government wants to repair the highway in order to solve the traffic problem.Highway system allows the driver to leave the system is not able to travel between any two cities.Town No. 1 ~ N, each highway connecting the two towns, all highways are straight, bi-directional use.But a driver can only be the end of the road to change the town line.The local government wants to minimize the build up to the required length of roads, however, to ensure every town is achievable.
输入:
处理情况。
由一个矩阵代表了每两个镇之间的距离,每个情况末尾是空行。
二、 算法分析:
题目抽象后可得,给定一个图,要求找到一个可以让所有结点连接的方式,使得其中权值最大者最小。
-Flatopia is a very flat place, the government wants to repair the highway in order to solve the traffic problem.Highway system allows the driver to leave the system is not able to travel between any two cities.Town No. 1 ~ N, each highway connecting the two towns, all highways are straight, bi-directional use.But a driver can only be the end of the road to change the town line.The local government wants to minimize the build up to the required length of roads, however, to ensure every town is achievable.
相关搜索: 修建
(系统自动生成,下载前可以参看下载内容)
下载文件列表
work83.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.