AMC 12 Mock Exam 10 Problem 17
Problem 17 of 25
Ten houses stand along a straight road at mile markers , and the house at mile marker has exactly children. The town will place two school-bus stops at points on the road, and each child walks along the road to whichever stop is nearer to his or her house. The stops are placed so that the total walking distance of all children is as small as possible. What is that total distance, in miles?
Answer choices
Show solution
Solution
Reduction. With stops at , the houses nearer form an initial block and the rest form . Conversely, for any split, putting one stop at the best point for each block makes every child walk at most the distance to the stop of their block. So the answer is , where is the least value of over real .
One stop. is piecewise linear in ; moving to the right increases it at rate (weight to the left of ) (weight to the right), so it is minimized at a weighted median: the first house where the running total of weights reaches half the block's total.
The splits. For example, for the left block has weight and median , with cost ; the right block has weight and median , with cost . The total is . Doing the same for every : For the block costs (stop at ) and costs (stop at ). The minimum is . (A single stop at the weighted median gives ; splitting the houses five and five gives ; the splits and give and .)
Tagged: minimizing a weighted sum of distances (two weighted medians)