文件名称:Pipeline
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.91kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
程序解决了给定油井位置,求出一条东西向输油管道的位置,使之到各个油井的距离之和达到最小
//程序一次性读入11组测试文件,将油井纵坐标存储在动态开辟的pipey数组里,通过运用在数组中查找第K小个元素的算法找到了管道的最优位置
//最后求得最短距离后,将最终结果一次性存储到11个输出文件中。-Program to solve a given oil well location, find a location east-west pipeline, so that the distance to each well and achieve the minimum// process into 11 groups of one-time reading test file, will store well in a dynamic open up the vertical axis of pipey array, through the use of the array to find the first K elements of the algorithm for small to find the optimal location of pipeline// Lastly, after the shortest distance obtained, once the final results will be stored in the output file 11.
//程序一次性读入11组测试文件,将油井纵坐标存储在动态开辟的pipey数组里,通过运用在数组中查找第K小个元素的算法找到了管道的最优位置
//最后求得最短距离后,将最终结果一次性存储到11个输出文件中。-Program to solve a given oil well location, find a location east-west pipeline, so that the distance to each well and achieve the minimum// process into 11 groups of one-time reading test file, will store well in a dynamic open up the vertical axis of pipey array, through the use of the array to find the first K elements of the algorithm for small to find the optimal location of pipeline// Lastly, after the shortest distance obtained, once the final results will be stored in the output file 11.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Pipeline.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.