Abstract
The weighted $k$-center problem on trees has remained a significant open challenge in computational geometry for over three decades. While the unweighted version was solved in linear time, the weighted variant was long stuck at $O(n \log^2 n)$ complexity. This paper presents a breakthrough $O(n \log n)$-time algorithm, achieving the theoretical optimal bound. By replacing the complex Cole’s parametric search with a novel framework involving stem-partitioning and geometric data structures, the authors provide a more efficient and practically viable solution.
Introduction
The $k$-center problem is a foundational challenge in facility location. Given a network—modeled as a tree $T$ with $n$ vertices—where each vertex $v$ has a weight $w(v)$, the goal is to place $k$ centers on the edges or vertices of $T$ to minimize the maximum weighted distance from any vertex to its nearest center. Formally, we seek to minimize $\max_{v \in V} w(v) \cdot d(v, C)$, where $C$ is the set of $k$ centers and $d(v, C)$ is the distance to the nearest center in $C$.
For the unweighted case ($w(v)=1$), linear-time algorithms have existed since the early 1990s. However, the weighted version proved significantly more difficult. In 1983, Megiddo and Tamir established an $O(n \log^2 n)$ upper bound using Cole’s parametric search. Despite numerous attempts, this complexity remained the state-of-the-art for 35 years. This work finally bridges the gap, providing an $O(n \log n)$ algorithm that is likely optimal.
The Algorithmic Framework: Stem-Partitioning
The core of the new approach is a two-phase framework that avoids the heavy overhead of traditional parametric search. Central to this is the concept of stem-partitioning.
The algorithm first addresses the "decision" version of the problem: given a distance $\lambda$, can we cover all vertices using $k$ centers? A greedy, bottom-up feasibility test ($FTEST0$) can answer this in $O(n)$ time. To optimize the search for the ideal $\lambda^*$, the tree is decomposed into manageable components.
As shown in Figure 1, the tree is partitioned into "stems"—paths that form the backbone of the structure—with attached "thorns" (short paths) and "twigs" (paths that may require their own dedicated centers). This decomposition allows the algorithm to process the tree hierarchically, identifying which vertices are "dominant" in determining the feasibility of a given $\lambda$.
Geometric Speedups and LP Queries
To achieve $O(n \log n)$ complexity, the algorithm must find the optimal $\lambda^*$ without performing $O(n)$ feasibility tests for every candidate value. The authors achieve this by transforming the problem into a geometric search.
Vertices and their associated weighted distances are represented as lines in a 2D plane. The problem of checking feasibility then becomes a series of 2D sublist Linear Programming (LP) queries. By using advanced geometric data structures, the authors can perform "fast" feasibility tests in sub-linear time.
Figure 2 illustrates this geometric mapping. The lines $l^-(v_i)$ and $l^+(v_i)$ represent the constraints imposed by vertex $v_i$ at a given distance. This geometric interpretation allows the algorithm to use matrix searching techniques ($MSEARCH$) to home in on $\lambda^*$ efficiently. Phase 1 of the algorithm builds these geometric structures, while Phase 2 executes the search, leveraging the pre-computed data to bypass the $O(n \log^2 n)$ bottleneck.
Key Insights and Results
The breakthrough relies on several key insights:
- Bypassing Parametric Search: By avoiding Cole's parametric search and the associated AKS sorting networks, the algorithm significantly reduces the hidden constant factors, making it more practical for implementation.
- Dominance Property: The authors proved that in many subtrees, a single vertex (the one with the "largest rank") determines the coverage requirements for the entire subtree. This allows the algorithm to skip redundant checks during the feasibility test.
- Unified Solutions: The techniques developed for the continuous $k$-center problem (where centers can be anywhere on edges) also apply to the discrete case (where centers must be at vertices), improving its complexity to $O(n \log n)$ as well.
The primary result is the $O(n \log n)$ time complexity, settling a long-standing open problem. This bound is believed to be optimal, as $O(n \log n)$ is the lower bound for many related sorting and searching problems in computational geometry.
Conclusion
This work provides a definitive answer to a 35-year-old mystery in algorithmic graph theory. By combining tree partitioning with modern geometric query structures, the authors have developed an algorithm that is both theoretically optimal and practically superior to previous methods. Future work may focus on proving the $\Omega(n \log n)$ lower bound and exploring the application of these stem-partitioning techniques to other facility location problems on graphs.
Summary updated