Suppose you run a delivery company with customers scattered across a city, and the budget for exactly p warehouses. Every customer will be served by the nearest warehouse. Where do you build them so that the total distance everyone travels is as small as possible?
That is the p-median problem, one of the founding questions of facility location. Its twin, the p-center problem, instead minimizes the worst-case distance — no client should ever be too far from a facility. Hospitals, fire stations, cell towers, cloud servers and retail stores all live on this same map.
The question is easy to state and easy to check: given a set of locations, anyone can add up the distances. But finding the best p spots out of all the possibilities is one of the genuinely hard problems of computer science — and that gap is what this article is about.
Comments
Loading comments...