Abstract
This paper investigates the universal optimality of the classic greedy algorithm for constructing $k$-spanners—subgraphs that preserve distances within a factor of $k$. We identify a threshold behavior: while the greedy algorithm fails to find the smallest possible spanner when $k$ is small ($k < n/3$), it becomes provably optimal or near-optimal as $k$ scales linearly with the number of vertices $n$. We map out the performance across different regimes, providing the first comprehensive analysis for superconstant $k$.
Introduction
In graph theory, a $k$-spanner is a sparse backbone of a graph that ensures the distance between any two points is at most $k$ times longer than in the original graph. For decades, researchers have used a simple "greedy" approach—similar to Kruskal’s MST algorithm—to build these structures. While the greedy algorithm is known to be "existentially optimal" (performing well on specific graph classes), its "universal optimality"—the ability to produce the absolute smallest $k$-spanner for any input graph—has remained elusive, particularly for "superconstant" $k$ where $k$ grows as a function of $n$.
Methods
The research employs a dual approach of combinatorial construction and algorithmic transformation. To establish lower bounds, the author constructs counter-example graphs $G_k$ where minimum $k$-spanners must contain small cycles (girth $\le k$), a structure the greedy algorithm (which enforces girth $\ge k+2$) cannot produce.
To prove positive results, the paper introduces deterministic, polynomial-time cycle-breaking algorithms. These algorithms transform an arbitrary $k$-spanner into one with high girth by strategically swapping edges. This process is analyzed using a novel "vertex-partition" framework, dividing the graph into structural components to ensure distance preservation during edge swaps.
Key Insights: The Girth-Optimality Link
The greedy algorithm's defining characteristic is its production of subgraphs with girth at least $k+2$. This study demonstrates that the algorithm's optimality is intrinsically linked to whether the minimum possible spanner for a given graph also possesses high girth. As $k$ grows larger relative to $n$, the constraints of the $k$-spanner property become so restrictive that high-girth solutions become the only viable way to satisfy distance requirements.
Results and Threshold Behavior
The paper identifies a clear transition in the algorithm's performance based on the value of $k$ relative to $n$:
- Sub-optimality: For $k < \frac{1}{3}n - O(1)$, the greedy algorithm is not universally optimal.
- Approximation Bounds: In the intermediate regime, the algorithm provides guaranteed approximation factors:
- $k > \frac{1}{2}n$: 32-approximation.
- $k > \frac{12}{23}n$: 18-approximation.
- $k > \frac{4}{7}n$: 2-approximation.
- Universal Optimality: For $k > \frac{2}{3}n + O(1)$, the algorithm is universally optimal.
- Extreme Optimality: For $k > \frac{3}{4}n + O(1)$, every minimum spanner is forced to have high girth, matching the greedy output.
Limitations and Future Work
Despite these advances, a "dark zone" remains for the range $\frac{1}{3}n < k < \frac{1}{2}n$, where the algorithm's performance is still unknown. Additionally, the current results are limited to unweighted graphs. Generalizing these structural insights to weighted edges and finding the optimal edge ordering for the greedy algorithm in polynomial time remain significant open challenges in the field.
Summary updated