Introduction - If you have any usage issues, please Google them yourself
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.