文件名称:PostDistance
-
所属分类:
- 标签属性:
- 上传时间:2013-06-21
-
文件大小:6.97kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本作业为邮局选址问题。在该问题中,求邮局的最佳位置即求坐标的中位数。分解来看,即分别寻找X和Y坐标的中位数。
类设计如下:设计一个PostCal的类。计算X,Y坐标的中位数方法selectMedian(),其中partition()用于将大问题分解为子问题使用。最后有一个计算邮局到各居民点的路径总和int calSum()。
类中包含构造函数PostCal(),主要功能是实现文件读写,结果计算及输入输出。
类中包含取居民点个数的变量 num。-This job is a post office location problem. In this issue, find the best location for the post office that is seeking the median coordinates. Decomposition point of view, the X and Y coordinates, respectively, find the median.
Class is designed as follows: Design a PostCal category. Calculate X, Y coordinates of the median method selectMedian (), which partition () is used to a large problem into sub-problems to use. Finally there is a post office to calculate the sum of each path of settlements int calSum ().
Class contains a constructor PostCal (), the main function is to implement file read and write, calculate and input and output results.
Class contains the number of variables to take settlements num.
类设计如下:设计一个PostCal的类。计算X,Y坐标的中位数方法selectMedian(),其中partition()用于将大问题分解为子问题使用。最后有一个计算邮局到各居民点的路径总和int calSum()。
类中包含构造函数PostCal(),主要功能是实现文件读写,结果计算及输入输出。
类中包含取居民点个数的变量 num。-This job is a post office location problem. In this issue, find the best location for the post office that is seeking the median coordinates. Decomposition point of view, the X and Y coordinates, respectively, find the median.
Class is designed as follows: Design a PostCal category. Calculate X, Y coordinates of the median method selectMedian (), which partition () is used to a large problem into sub-problems to use. Finally there is a post office to calculate the sum of each path of settlements int calSum ().
Class contains a constructor PostCal (), the main function is to implement file read and write, calculate and input and output results.
Class contains the number of variables to take settlements num.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PostDistance/.classpath
PostDistance/.project
PostDistance/bin/input_assign01_01.txt
PostDistance/bin/output_assign_01.txt
PostDistance/bin/PostCal.class
PostDistance/bin/PostDistance.class
PostDistance/readme.txt
PostDistance/src/input_assign01_01.txt
PostDistance/src/output_assign_01.txt
PostDistance/src/PostCal.java
PostDistance/src/PostDistance.java
PostDistance/bin
PostDistance/src
PostDistance
PostDistance/.project
PostDistance/bin/input_assign01_01.txt
PostDistance/bin/output_assign_01.txt
PostDistance/bin/PostCal.class
PostDistance/bin/PostDistance.class
PostDistance/readme.txt
PostDistance/src/input_assign01_01.txt
PostDistance/src/output_assign_01.txt
PostDistance/src/PostCal.java
PostDistance/src/PostDistance.java
PostDistance/bin
PostDistance/src
PostDistance
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.