arXiv:2610.17172cs.DSOct 2026Cited by 1 paper on PaperVantage
Manuscript Offprint
arXiv:2610.17172
A Better-than-2 Approximation for k-Median Part II: Stable Instances
Rares-Darius Buhai, Vincent Cohen-Addad, Henry Fleischmann, Anupam Gupta, Antoni Jubés Monforte, Madhusudhan Reddy Pittu, Miltiadis Stouras, Ola Svensson, Lukas Vogl
Abstract
We consider the k-median problem on general metric spaces, subject to the condition that the instances are β-stable (i.e., the optimal solution using k−1 centers has a cost at least (1+β) times that of the optimal solution with k centers). We give a (1.89+ε)-approximation algorithm for such instances running in time exp(1/(β×poly(ε)))⋅polyε(n). In particular, for β=poly(ε)/logn and ε a tiny constant, this is a polynomial-time algorithm. This improves on previous work showing a (2+ε)-approximation algorithm with similar running time [CGL+25]. Combined with the pseudo-approximation algorithm in our companion work [BCAF+26], this results in a better-than-2 approximation algorithm for general k-median instances.
Our main technical contribution is a novel nuanced analysis of local search that allows us to isolate a subset of clients on which we lose essentially nothing compared to the optimal solution, while losing an approximation factor of 3 on the rest of the clients. We complement this with an algorithm based on sampling and partial enumeration, achieving a better-than-2 approximation on the rest of the clients. Trading off these two algorithms yields our final approximation.
*EPFL, Lausanne and supported by the Swiss State Secretariat for Education, Research and Innovation (SERI) under contract number MB22.00054.
†Google Research, New York NY.
‡Computer Science Department, Carnegie Mellon University, Pittsburgh PA. Work supported by a National Science Foundation Graduate Research Fellowship Program under Grant No(s). DGE2140739 and DGE2631988.
§Computer Science Department, Courant Institute of Mathematical Sciences, New York University, New York, and Google Research. Work supported in part by NSF awards CCF-2422926 and CCF-2608359.
¶EPFL, Lausanne
1Computer Science Department, Courant Institute of Mathematical Sciences, New York University, New York, and H. Milton Stewart School of Industrial and Systems Engineering, Georgia Tech, Atlanta GA.
Contents
1 Introduction 2
1.1 Technical Overview 3
1.1.1 The Nuanced Local Search Guarantee 5
1.2 Related Work 6
2 Preliminaries 7
3 Deducing our Main Result 9
3.1 Structural Theorem 9
3.2 The Dangerous Set Dκ 11
3.3 Color-Coding and Submodular Maximization 12
3.4 The Cost of Local Search 14
3.5 Win-win Argument and Final Approximation Guarantee 16
4 Structural Theorem: Proofs of Theorem 3.1 and Theorem 3.2 16
4.1 Synchronized and Close Clusters 17
4.2 Adding Auxiliary Centers using Client Sampling 17
4.3 Satellites of Remaining Clusters are Spread Out 18
4.4 Adding Auxiliary Centers using Cluster Sampling 20
4.5 Concluding the Proofs of Theorem 3.1 and Theorem 3.2 20
4.6 D-Sampling and Dummy Addition: Proof of Theorem 4.6 22
4.7 Expensive Cluster Sampling: Proof of Theorem 4.9 26
5 Reduction to Submodular Maximization: Proof of Theorem 3.4 31
5.1 The Submodular Function: Definition and Optimization 31
5.2 A k-Median Solution from Submodularity 32
6 Local Search Revisited: Proof of Theorem 3.6 34
6.1 A Graph Theoretic Abstraction 35
6.2 Proving the Local Search Guarantee 36
6.3 Constructing the Distribution over Swap Collections 39
6.4 Proving the Swap Properties 40
A Proofs for the Local-Search Guarantee 45
A.1 Defining Maps μA,μB 45
A.2 Bounding Costs 47
B Supermodularity of Distance Functions 49
C Proof of the win-win lemma 51
1 Introduction
In the metric k-median problem, we are given a metric space (D∪F,d) on a point set consisting of a set F of potential facility locations and a set of clients/demands D. The goal is to find a subset S⊆F of k facilities such that the k-median cost ∑p∈Dd(p,S) is minimized. The problem is APX-hard, and obtaining a near-optimal approximation guarantee has long been a central problem in the field of approximation algorithms. A remarkable recent breakthrough showed a polynomial-time (2+ε)-approximation algorithm [CGL +25]; moreover, we cannot do better than a (1+2/e)-approximation unless P = NP [GK98, JMM +03].
Given the APX-hardness result, it is natural to ask: can we get better approximations to the optimal solution in beyond-worst-case settings? One such class of k-median instances are stable instances, formalized by Ostrovsky, Rabani, Schulman, and Swamy [ORSS12]: these are instances for which reducing the number k of available centers from k to k - 1 increases the optimal cost substantially. Formally, given a metric space (D∪F,d), define optℓ to be the optimal cost of ℓ-median on this instance. Naturally, fewer centers result in a larger cost, and hence optk≤optk−c for any c≥0. An instance is called β-stable if optk−1≥(1+β)optk. Can we beat the worst-case hardness results for β-stable instances? Indeed, Awasthi, Blum, and Sheffet [ABS10] answered this question in the affirmative, giving a (1+ε)-approximation in time (nk)poly(1/εβ); Cohen-Addad and Schwiegelshohn [CS17] gave an algorithm with runtime nβ−1ε−O(1).
Since the runtime depends on n1/β, the algorithms are not polynomial-time for sub-constant β. This leads to the next question: can we get a fixed-parameter PTAS: a(1+ε)-approximation in time (say) exp{(βε)−O(1)}polyε(n)? Sadly, this seems unlikely: [CGL+25] observe that getting a better-than- (1+2/e) approximation for all β-stable instances cannot be done (assuming the GAP-ETH conjecture) in any time f(β,ε)poly(n), based on the hardness results from [CGK+19]. This leads us to refine the question: what approximation factor can be achieved in FPT-PTAS time?
Complementing their hardness, [CGL+25] also gave a (2+ε)-approximation algorithm with runtime exp(β−1ε−O(1))polyε(n). We build on and simplify their ideas, and add several new ones, to achieve our main result for stable instances.
Theorem 1.1 (Main Theorem). Let (D∪F,d) be a β-stable instance of k-median and ε∈(0,1/200). There exists an algorithm running in exp{O(β−1poly(1/ε))}npoly(1/ε) time which with probability 1−ε outputs S⊆F with ∣S∣=k such that
cost(S)≤(1.89+O(ε))optk.
Moreover, in a companion paper [BCAF +26], we show how Theorem 1.1 can be combined with a pseudo-approximation algorithm opening k+O(ε−O(1)logn) centers with cost (1.95+ε)optk to get the first polynomial-time better-than-2-approximation algorithm for arbitrary k-median instances:
Theorem 1.2. There is a randomized polynomial-time 1.95-approximation algorithm for k-median.
1.1 Technical Overview
Our algorithm starts with the following observation: the k-median function cost(S) is a supermodular decreasing function of the set S—so given any base solution S0, the improvement function cost( S0)—cost( S0∪S) is increasing and submodular. Now we can use submodular function maximization (with side constraints) on this improvement function to find a set A with ∣A∣=k such that
cost(A∪S0)≤(1−1/e)cost(O∪S0)+(1/e)cost(S0).(1)
Note that A∪S0 has too many centers. So if we could choose S0 to ensure: (a) cost(S0)≤3opt, and (b) the solution A∪S0 could be converted into a solution only using A with little increase in cost—e.g., if the clusters corresponding to centers in S0 in the clustering for (A∪S0) were empty—we would get the optimal result cost(A)≤(1+2/e)opt. How can we find a good base solution S0? This approach was previously used by [CGK+19] who guess a client in each optimal cluster, along with its distance to the optimal center, create a “dummy” center at that distance, and use the set of k dummies as the base solution. However, this approach runs in f(k) poly(n) time for exponentially growing f, whereas we want polynomial-time solutions.
Step 1: Sync, Substitute, and Sample. We start off with the approach used in [CGL +25]: we use β-stability to infer that the local search solution is already very “close to” an optimal solution. Indeed, consider the local-search solution L using O(1/ε)-sized swaps, which is known to be a (3+ε)-approximation [AGK +04]. But that is not all: [CS17] show that all but s0=O(ε−2β−1) of the centers in L can be matched (“synced”) to the optimal centers, such that substituting these centers for the corresponding optimal centers incurs very small cost (Lemma 4.2). If we knew the identity of these “unsynced” s0-many centers in L, we could fix the remainder and try to find replacements for just the few bad ones. In fact, we do not need to replace all the unsynced centers: if an optimal center c∗ has a center c in L at distance somewhat less than the average cost of a client in c∗’s cluster, we can just use c to substitute for c∗ with little increase in cost. There are other substitutions possible as well. Our approach, like in [CGL +25], is to first sample clients and then centers in L (both with probability proportional to their costs in the local-search solution), performing some more substitutions along the way to get our main structural result (Theorem 3.1) which shows the existence of a partition of the optimal centers O into four parts OS∪OΛ∪OP∪OR:
Substituted centers ( OS): the clients in these centers’ clusters can be reassigned to a nearby center already in L while increasing their cost by only a factor of roughly 1+η≈1.89. Almost all clusters fall into this case.
• Centers with dummies ( OΛ) or backups ( OP): for these centers, we can explicitly find “dummy” centers to add to the instance, or we are promised substitute centers in L which can serve as good “backups.” Dummies and backups act as part of the “low-cost base solution” S0 in the sketch at the start of this section.
“Remaining” centers ( OR): the remaining clusters have several somewhat nearby centers in L (their satellites), but the local-search clusters for these satellites are too inexpensive to detect via sampling, and too spread out to permit cost-efficient substitution.
As we mentioned, the dummy centers are explicitly constructed by two sampling routines: the first samples clients (Theorem 4.6) and the second samples centers (Theorem 4.9). Crucially, this sampling is effective because O and L nearly agree on most centers. Combining this with the submodular maximization ideas from [CGL +25], we can get that for some carefully chosen parameter η<1 and some Dκ⊆D, we have
I.e., for a “difficult” set of clients Dκ, we lose a factor of 2 on the cost they incur in O, despite getting a better-than-2 factor on the rest of the clients. The clients Dκ are precisely the clients in clusters centered in OR which are close to the center (i.e., within its “core”). If we were able to sample these clients, they would give good dummy centers, so they must be invisible to sampling. Since we can sample according to client costs in L, these clients must have had exceptionally low cost in L.
This part of the algorithm follows the general approach of the (2+ε)-approximation [CGL +25], but extends it in two ways: (a) we have to exercise care to get better-than-2-approximations on most of the clients, and (b) we use a color-coding idea to substantially simplify a center-deletion step and the submodular optimization portion. Nonetheless, we are left with the worry that most of the clients may lie in Dκ and incur a factor-2 loss.
Step 2: Local Search to the Rescue. Our final novel ingredient is to show that the local search solution L actually performs better-than-advertised on these clients in Dκ. We extend the standard analysis giving a (3+ε)-approximation to give the following nuanced bound:
cost(L)≤3costO(D∖Dκ)+costO(Dκ)+O(ε)opt.(3)
I.e., we lose nothing on the “difficult clients” Dκ, while losing the usual factor of three on the rest. The ideas behind this analysis are the main technical innovation of the paper, and we elaborate on these in the next section. Actually, to optimize the approximation factor all the way down to 1.89, we use a more fine-grained form of this bound. Before jumping into that discussion, let us remark that even this weaker local search cost bound yields a better-than-two approximation: we can balance the two bounds from (2) and (3) to get a (3−η5−η+O(ε))-approximation, which is strictly less than two for η<1.
1.1.1 The Nuanced Local Search Guarantee
Let us give a sense of our nuanced local search guarantee for ℓ-swap local search, and how we use its properties in our work. The algorithm starts from an arbitrary solution S of k centers and checks if there exist subsets S⊆S,T⊆F with T∩S=∅ and ∣S∣=∣T∣≤ℓ so that the (S,T)-swap gives a cost reduction cost (S∖S)∪T)<cost(S). If so, it updates S←(S∖S)∪T, and continues. Arya et al. [AGK +04] show that any locally optimal solution for this process is a (3+2/ℓ)-approximation. Using a standard idea of starting from some reasonable solution and taking a local swap only if it improves the cost by a (1+ε/k) factor ensures a (3+2/ℓ+ε)-approximation in polynomial time.
A nuanced analysis. In our work we will require a more careful bound on the local-search guarantee. We start by defining a condition for two clusterings—which we should think of as the local search and optimal clusterings—to be “mutually compatible”: this is when no clusters “cross”.
Definition 1.3 (Cross-Free Maps/Clusterings). A pair of clusterings A,B of the client set D is called cross-free if for any clusters A∈A,B∈B, either A∩B=∅, or else A⊆B or B⊆A. By extension,
Figure 1: Cross-free clusterings: each pair of blue and red clusters are either disjoint, or one is contained within the other.
a pair of k-median solutions and assignments (A, μA), (B, μB) is called cross-free if the corresponding clustering pair induced by them is cross-free.
Now suppose that the optimal solution O and the local-search solution L were miraculously cross-free (under the closest-facility assignments πO and πL). We show that, surprisingly, this structure is enough to show that the local search solution has cost(L)≤(1+O(ε)) opt. Crucially for our application, this cost bound can be generalized to (1+O(ε)) opt plus a term capturing the “distance” between the clustering induced by πL and another assignment μA:D→L ensuring cross-freeness. We state the formal guarantees below.
Theorem 1.4. Let (D∪F,d) be an instance of k-median and ε>0. Let L⊆F with ∣L∣=k be a solution for local search with O(1/ε)-sized swaps, and let B be another benchmark solution with ∣B∣=k. Given arbitrary assignments μA:D→L and μB:D→B such that (L,μA),(B,μB) is cross-free, the clustering induced by the local-search solution (L,πL) has cost
Note that Theorem 1.4 bounds the cost of the local search solution L using the nearest-neighbor map πL in terms of the cost of a clustering around L given by another map μA, and an arbitrary benchmark solution (B,μB), as long as the solution pair (L,μA),(B,μB) is cross-free. We defer its proof to §6.
It is illustrative to see how Theorem 1.4 implies a (3+ε)-approximation in general.
Corollary 1.5 ((Weaker) Version of [AGK +04, Theorem 4.3]). Let (D∪F,d) be an instance of k-median and ε∈(0,1/200). Let L⊆F be a local search solution with ∣L∣=k with O(1/ε) sized swaps. Then, cost(L)≤(3+O(ε)) opt.
Proof. Set B=O and μB as the closest facility map πO. Set μA:D→L where μA(p)=c if p∈C∗∈O and c=argminc′∈Ld(c∗,c′). That is, we assign the clients in cluster C∗ to the center c∈L which is closest to c∗; this ensures cross-freeness. Moreover, for any center c∗∈O, its distance to the closest center in L is d(c∗,L)≤avgO(C∗)+avgL(C∗), by averaging and the triangle inequality. Summing over all clients, we get cost(μA)≤cost(L)+2opt. Finally, applying Theorem 1.4 gives us that
cost(L)≤3opt+O(ε)(cost(L)+2opt).
Rearranging gives cost(L)≤(3+O(ε))opt.
This proof set μB to be the optimal map and μA to be a natural map ensuring cross-freeness. In our proof, we will carefully hand-craft more elaborate maps μA,μB which give a 1-approximation on the subset Dκ of clients, to get the guarantee in (3).
We will construct μB to be a near-optimal assignment to O. Then, certain clusters in the clustering B induced by μB will be (roughly speaking) partitioned into local search clusters induced by the nearest-neighbor map πL. The set of clients in these partitioning local search clusters is Dκ. Moreover, the centers of these partitioning local search clusters have the special property that they are not the closest center in L to non-partitioned B∈B. We can then construct μA by setting μA(p)=πL(p), for all p∈Dκ, and assigning remaining non-partitioned B∈B consistently to good substitute local search clusters, à la Corollary 1.5. This naturally results in cross-free maps with cost(μA)≤2costO(D∖Dκ)+costL(D). Combining this bound with the near-optimality of μB and Theorem 1.4 then gives (3). The discussion above is a slight simplification: the actual proof uses an extension of Theorem 1.4 applied to a subset D0 of clients.
1.2 Related Work
The first constant-factor approximation algorithm for k-median was due to Charikar, Guha, Tardos, and Shmoys [CGTS99]. Shortly thereafter, Jain and Vazirani introduced a primal-dual framework based on Lagrangian relaxation for metric facility location and k-median [JV01]; subsequent dual-fitting analyses of facility location produced improved Lagrangian-multiplier-preserving (LMP) algorithms, which became a standard route to k-median approximations [JMS02, JMM+03]. In parallel, Arya et al. analyzed local search, showing that local optima under p-swaps achieve a 3+2/p approximation, and hence a (3+ε)-approximation for p=O(1/ε) [AGK+04]. Charikar and Li gave a dependent LP-rounding scheme [CL12] to get a constant-factor approximation.
LP-rounding and pseudo-approximations subsequently advanced the state of the art: Li and Svensson introduced the pseudo-approximation paradigm [LS13] to break past the factor-of-3 barrier, and Byrka et al. refined the bi-point rounding framework [BPR +17]. More recent work has revisited both major paradigms: Cohen-Addad et al. improved the local-search analysis [CGH +22]; Cohen-Addad,
Grandoni, Lee, and Schwiegelshohn breached the 2-LMP barrier for facility location [CGLS23]; and Gowda et al. further improved bi-point rounding [GPST23]. As mentioned above, the best approximation factor currently known for general metric k-median is due to another breakthrough, getting a factor of (2+ε) [CGL +25]. Thereafter, another 2+ε-approximation was obtained by Byrka et al. [BGH +26] using an iterative rounding framework. There has been comparatively less progress on the hardness-of-approximation, where the classical hardness threshold is 1+2/e≈1.736 [GK98, JMS02], leaving a tantalizing gap between the best known upper and lower bounds.
AI Acknowledgment and Concurrent Work
The first result for stable instances obtained by the authors was a (1.95+ε)-approximation without AI assistance; it improved over the 2-approximation result from [CGL+25] by using a nuanced local search combined with a more careful sampling approach; the second part of the algorithm using submodular maximization closely followed the steps in [CGL+25]. Giving this draft to Gemini 3.1 Pro led it to suggest the color-coding approach to simplify the second part of the argument. Thereafter, GPT-6 Astra suggested the use of OΛearly and OΛlate, and cluster-dependent κ(C∗) values to improve the approximation factor to its current value of 1.89+ε. These models, as well as Claude Opus 4.6 and Gemini Argon, were used for proof-checking and to obtain feedback on the presentation.
In concurrent work announced on October 6, 2026, OpenAI presented two different better-than-two approximations for general k-median instances [Ope26b, Ope26a]. The first extends the iterative rounding-based 2-approximation of [BGH +26] to achieve an optimal (1+2/e+ε)-approximation. The other instead builds on the stable instance/pseudo-approximation framework of [CGL +25], thus sharing many similarities with this work and its companion paper. Although this latter algorithm only gives a (2−σ)-approximation for general instances of k-median, for some absolute constant σ>0, it does achieve a (1+2/e+ε)-approximation algorithm for stable instances. Finally, through personal communication, we learned that Jaroslaw Byrka, Yuhao Guo, Yang Hu, Shi Li, Yongho Shin, Phanu Vajanopath, Chengzhang Wan and Zaixuan Wang have independently achieved a 2−σ-approximation algorithm for a small but constant σ>0. Their approach further develops the iterative randomized rounding framework of [BGH +26], providing an alternative route to a better-than-2 approximation.
2 Preliminaries
k-median. Given an instance (D∪F,d) for k-median, we want to find a subset of k facilities/centers S∈(kF) minimizing ∑p∈Dd(p,S). Let O be an optimal choice for S, having cost opt.
(0, opt)
Assignments and clusterings. For any subset S⊆F of open facilities, an assignment μ:D→S is a map from clients to these facilities. This assignment μ induces a clustering Sμ={μ−1(c)}c∈S, which is the partition of D induced by μ−1. We will interchangeably think of Sμ as a partition {Sc}c∈S of the point set D and as a collection {(Sc,c)} of (set, center) pairs. In general, we will use blackboard-bold letters such as A, B to denote sets of centers; μA,μB to denote corresponding assignments; and calligraphic symbols A,B to denote the associated clusterings. When the clustering is clear from context, we will usually write lowercase c (or c′ or c∗) to denote a facility and uppercase C (or C′ or C∗) to denote the cluster in the clustering centered at that facility. When there is potential for confusion, e.g., when A and B are both clusterings that share a center c, we instead write Ac (resp., Bc) to denote the cluster in A (resp., B) centered at c. Given a set of centers S, one canonical assignment is the projection or nearest-center assignment, which is denoted by πS;
i.e., πS(p):=argminc∈Sd(p,c). (W.l.o.g., we can assume that distances are distinct and hence the minimizer is unique.)
Stability. An instance (D∪F,d) of k-median is called β-stable if optk−1≥(1+β)optk. In β-stable instances, the clustering produced by local search (even with unit-sized swaps) approximates most clusters in the optimum solution extremely well. We explore the direct consequences of stability in more detail in the proof of our main structural theorem ( §4); e.g., a trivial consequence of stability is that each optimal cluster is non-empty.
Dummies. We augment the metric space with auxiliary facilities Λ during the algorithm: i.e., the new set of facilities is F′=F∪Λ. For each such new center λ∈Λ, there is a “leader” ℓλ∈D∪F and a distance rλ; we explicitly set the distance d(ℓλ,λ)=rλ, and the remaining distances to the new center λ are induced by the triangle inequality: d(q,λ):=d(q,ℓλ)+rλ and d(λ,λ′):=rλ+d(ℓλ,ℓλ′)+rλ′.
Assignment cost. For any assignment μ:D→F∪Λ and a subset of clients D′⊆D, define
(cost)
costμ(D′):=p∈D′∑d(p,μ(p)).
The average cost of D′⊆D is avgμ(D′):=∣D′∣costμ(D′), whenever D′=∅. We usually consider avgμ(D′) where D′=C is a cluster in some clustering. When the assignment is via the projection map (closest-facility map) πS of S, we write costS(D′) (and similarly avgS(D′)). We denote costμ(D) as cost(μ); for μ being the projection assignment πS, we denote costμ(D) as cost(S).
(avg)
Percentile Costs. Let C∗ be a non-empty optimal cluster centered at c∗∈O, and let ε∈[0,1). We define per(C∗) as the ε-percentile distance in C∗: at least ε∣C∗∣ clients in C∗ have d(p,c∗)≤per(C∗) and at least (1−ε)∣C∗∣ clients have d(p,c∗)≥per(C∗). Notice that (1−ε)∣C∗∣per(C∗)≤∣C∗∣avgO(C∗) and so per(C∗)≤1−ε1avgO(C∗). When ε≤1/2, this implies
(per)
per(C∗)≤(1+2ε)avgO(C∗).(5)
Cluster Cores. Given the optimal clustering O, a cluster C∗ centered at c∗, and a function κ:O→[0,1], define the core of a cluster C∗ to be
(core)
coreκ(C∗):={p∈C∗∣d(p,c∗)≤(1+κ(C∗))per(C∗)},
i.e., the points that are at most (1+κ(C∗)) times the ε-percentile distance of C∗. We may also specify a constant function (e.g., a scalar value like 0) for κ.
Parameters and constants. We use the following parameters throughout the argument.
ε∈(0,1/200): the accuracy/error parameter.
• β : the stability parameter of the instance.
s0:=ε−2β−1: the bound on the number of non-synchronized optimal clusters (Lemma 4.2). This also bounds the sizes of various “special” sets of centers.
(s0)
η:=89/100: the separation/closeness threshold used as both a sufficient condition for substitution and establishing the far-from-L condition of Theorem 3.1. Note that 1/η−1≥6ε.
(η)
8
πS(⋅)
Figure 2: The dotted circle shows the ball of radius (1+κ(C∗)+2ε)per(C∗) around c∗; the dots are clients in C∗, and the orange circles have radius εper(C∗). The green centers are the satellites Γ(c∗); c5 is too far to be a satellite, and c4 does not have any witness clients from C∗.
3 Deducing our Main Result
Our main result is the following better-than-2 approximation for β-stable instances of k-median.
Theorem 1.1 (Main Theorem). Let (D∪F,d) be a β-stable instance of k-median and ε∈(0,1/200). There exists an algorithm running in exp{O(β−1poly(1/ε))}npoly(1/ε) time which with probability 1−ε outputs S⊆F with ∣S∣=k such that
cost(S)≤(1.89+O(ε))optk.
Fix ε>0. The starting point for our algorithm is a local search solution L⊆F with ∣L∣=k arising from O(1/ε)-sized swaps; let L denote the clustering induced by the nearest-center map πL. Let O⊆F be an optimum solution with ∣O∣=k, and let the nearest-center map πO induce the corresponding clustering O. We define some notation to simplify terms in the following discussion: for a client p, let C∗ be the optimal cluster containing it, and let
δp:=avgO(C∗)+avgL(C∗).(6)
Since the local search solution L is a constant-factor approximation, we get that ∑pδp=O(opt), and hence errors of the form εδp only contribute O(ε) terms to the approximation.
3.1 Structural Theorem
We begin with a structural theorem giving low-cost substitutions of centers in O by centers in L, as well as dummy and backup centers supporting other centers in O. We state the result in two parts. For the first part, define a non-negative “core-radius” κ(C∗)∈[1/η−1,1) for each optimal cluster C∗. We choose κ(C∗) so that, whenever per(C∗)≥ηavgO(C∗)/(1+ε), i.e., per(C∗) is quite large relative to avgO(C∗), we have
(2+κ(C∗))per(C∗)≥(2+6ε)avgO(C∗).(7)
This bound will be useful in simplifying some of our structural conditions. (The quantity κ(C∗) depends on the unknown optimal clustering, and we use it only for the analysis.) Also define the set of satellites for any center c∗∈O with corresponding cluster C∗∈O to be
Informally, these are local search centers c∈L which are “close” to c∗, and moreover, which have some “witness” client from the corresponding optimal cluster C∗ close to them. (See Figure 2.)
Theorem 3.1. Let (D∪F,d) be a β-stable instance of k-median and ε∈(0,1/200). There exists an algorithm running in poly(n) time which, with probability exp{−O(s0log(ε−1))}, outputs a subset of the local search solution L′⊆L and a collection of dummy centers Λ, such that there exists a partition O=OΛ⊔OP⊔OR⊔OS with the following properties.
(a) (All special sets are small) We have ∣OΛ∣+∣OP∣+∣OR∣≤s0.
(b) (Centers with corresponding dummy centers) There exists a partition OΛ=OΛearly⊔OΛlate and a dummy center map φ:OΛ→Λ such that φ is a bijection, and for each center c∗∈OΛ and client p∈C∗∈O:
(iii) For all c∗∈OR, we have Γ(c∗)⊆L′, and σ(c∗)=σ(c∗∗) for any c∗∗∈(OR∪OS)∖{c∗}.
Running the algorithm of Theorem 3.1 a total of exp{O(s0logε−1)} times ensures that at least one output has all desired guarantees with probability (1−ε). It will be convenient to have notation for the partition of D induced by the partition of O from Theorem 3.1. Henceforth, define client sets DΛ, DP, DR, and DS containing the clients assigned to OΛ, OP, OR, and OS respectively in the optimal assignment. Moreover, call a client p late if πO(p)∈OΛlate, and define the natural partition DΛ=DΛearly∪DΛlate.
Figure 3 illustrates the partition of O together with the substitution map σ, the backup map ψ, and the dummy center map φ produced by Theorem 3.1. The proof of Theorem 3.1 is deferred to Section 4, and goes as follows.
Step I: Using β-stability and Lemma 4.2, most clusters in O can be “synced” with clusters in the local search solution L, allowing for very efficient substitution. Some other cluster centers c∗ in O can be substituted by nearby centers c in L (at distance less than their average cluster distance).
Step II: Next, we find dummy centers for many of the remaining O◯ clusters by sampling clients according to their costs in L. (This sampling procedure yields many additional structural guarantees,
(DΛ,DP)
(DR,DS)
Figure 3: Maps from Theorem 3.1: Substitution map σ has image Lσ:=σ(OS⊔OR) with LP⊆Lσ, backup map ψ maps OP to LP, dummy center map φ is a bijection between OΛ and dummy centers Λ. Note: we have the inclusions LP⊆Lσ⊆L′⊆L, and the set L∖L′ is discarded immediately.
which allow us to do some more “clean-up” substitutions.) We analyze this client sampling in two phases. The first phase seeks only the best possible dummy centers. The second round finds additional dummies with worse but still acceptable guarantees. This is precisely where the distinction between OΛearly and OΛlate arises from: OΛearly are the centers for which we find dummies when optimistically sampling clients.
Step III: We then do a second sampling step, this time sampling cluster centers according to the cluster costs in L, and then according to their costs in a solution with some redundant centers from L removed and some dummy centers added. (The new solution resulting from redundant center removal is the set L′⊆L guaranteed by Theorem 3.1.) During this step, we find some additional dummy centers and show the existence of backup centers for other optimum clusters. These will help us control costs during the submodular maximization subroutine used later in the algorithm of Theorem 3.4. A final round of “clean-up” substitutions completes the proof. The only algorithmic steps here are the two sampling procedures.
Let us also record some more structural properties of the output from the above theorem.
Theorem 3.2. Successful runs of the algorithm from Theorem 3.1 also ensure the following properties:
(a) (Redundant centers are hidden in the mixed solution) Define M′:=L′∪Λ and M′ as the clustering corresponding to πM′. Then,
c∈Γ(OR)∪(L′\Lσ)∑costM′(Mc)<ε3opt,
where Mc is the cluster in M′ centered at c.
(b) (Far from L) For all c∗∈/OS and p∈C∗∈O, d(c∗,L)>ηavgO(C∗)+2εavgL(C∗).
(d) (Remaining centers) The set of remaining centers OR satisfies the following.
(i) (OR Hidden cores)∑c∗∈ORcostL(coreκ(C∗))<ε5opt,and, for all c∗∈OR,we have costL(coreκ(C∗))<ε3costO(C∗).
(ii) (Satellites are hidden in L) ∑c∈Γ(OR)costL(C)<ε3opt.
(iii) (per(C∗)≈avgO(C∗)) For all c∗∈OR, 1+2ε1per(C∗)≤avgO(C∗)≤η(1+ε)per(C∗).
3.2 The Dangerous Set Dκ
After applying Theorem 3.1, each center in O has either a corresponding dummy center in Λ, a backup center in LP, or a substitute center in Lσ. Most of these will incur a cost less than a factor of 2; the one exception will be the clients in the set
(D_{\kappa})
Dκ:=c∗∈OR⋃coreκ(C∗)⊆DR.(9)
This “dangerous set” will be an important character in the rest of the discussion. The following claim gives a sense of why Dκ arises naturally:
Claim 3.3. The cost of sending clients in DR to their substitutes is:
since all but ε∣C∗∣ of the clients from the core are at distances at least per(C∗) from c∗. Finally, the ε∣C∗∣per(C∗) terms summed over all centers in OR contribute another O(ε) opt, so
with the last inequality following from κ(C∗)≥1/η−1. Summing (13) over p∈DR∖Dκ, and substituting into (11) along with (12) completes the proof.
In the rest of the paper, we pursue a win-win analysis: (i) If the cost contribution of clients in Dκ is a small fraction of opt, we can compensate for this factor-of-2 loss by the smaller loss on the remaining clients. (ii) On the other hand, if their cost contribution is large, we show that local search already gives an excellent overall approximation.
3.3 Color-Coding and Submodular Maximization
Theorem 3.1 and Claim 3.3 show the existence of a substitution map σ, a backup map ψ, and an auxiliary center map φ that loses a factor of 2 on Dκ, but less on the rest. However, we are not yet done, because: (a) M′:=L′∪Λ may have more than k centers, and (b) the dummy centers Λ are imaginary and need to be replaced by real centers in F, plus we need to add some more optimal centers corresponding to the backups. We do this via color-coding and submodular maximization.
To begin, we define z:=(∣L′∣+∣OΛ∪OP∣−k)+ as the “excess” number of centers we would have
(M')
(z)
Figure 4: The set Z∗.
if we were to add in OΛ∪OP to replace the dummies and account for the backups. We choose an arbitrary “deletion” set Z∗⊆L′∖Lσ of size ∣Z∗∣=z. (To see that such a set exists, note that ∣Lσ∣=∣σ(OR∪OS)∣≤∣OR∪OS∣=k−∣OΛ∪OP∣, and hence L′∖Lσ has size at least z.)
Define the “target” solution to be M∗:=(L′∖Z∗)∪OP∪OΛ and MΛ∗ its counterpart with OP∪OΛ replaced by Λ. However, we do not know the ideal deletion set Z∗, nor the set OP∪OΛ we would like to add, so we try to find (an approximation to these) via two tools: (a) color-coding, and (b) submodular maximization.
Color-Coding. First, we color the centers in L′ red or blue uniformly at random. Define the good event G to be the following:
centers in the deletion set Z∗ are all colored red, and
centers in πL′∖Z∗(Z∗) are all colored blue.
Since each of the sets in the definition of G is of size at most s0, we have that Pr[G]≥2−2s0. We can just repeat the above coloring step exp(O(s0)) times and take the best solution among all the runs. So we assume henceforth that event G happens; let Lred′ and Lblue′ be the red and blue centers in L′. The advantage of this coloring is that we can now restrict the search for the deletion set Z∗ to within the red centers, and we will be sure of maintaining good reassignments for the clients in clusters centered in Z∗ (which we have forced to be colored blue).
Submodular Maximization. Next, we define a monotone non-increasing supermodular function g:=g1+g2, where
(i) g1(Y):=cost(M′∪Y), and
(ii) g2(Y)=minZ⊆Lred′:∣Z∣=z∑c∈Z[cosM′(Mc)+∣Mc∣d(c,Lblue′∪Y∪Λ)].
Observe: the set Z∗ is a candidate in the above minimization. These functions g1 and g2 are designed to capture the costs of clients assigned in M′ to the non-deleted centers from L′∖Z∗, and to the deleted centers from Z∗, respectively. (Some points are counted in both terms, and we need to control this excess.)
We now define the submodular “improvement” function f(Y):=g(∅)−g(Y), and apply the (1−1/e)-approximation algorithm for submodular maximization subject to matroid constraints [CCPV11]. Specifically, we cast constraints of finding a set Y of size ∣OP∣+∣OΛ∣, subject to opening at least one center in the ball B(ℓλ,rλ) for each λ∈Λ, as that of finding a base subject to a partition matroid constraint. We then take the returned solution Y, and the set Z that achieves the minimizer for g2(Y), and return the k-median solution:
T:=(L′∖Z)∪Y.
Note that, although we do not know ∣OΛ∣+∣OP∣ a priori, we can easily enumerate all possibilities of O(s0). To complete this part of the argument, we relate the cost of solution T to g(Y) to show:
(Z*)
(M*)
Theorem 3.4. Conditioned on the event G (which happens with probability exp{−O(ε−2β−1)}), the solution T⊆F with ∣T∣=k satisfies
To show part (ii) of the win-win approach, that local-search is a good approximation for the client set Dκ, we use an extension of our nuanced local-search analysis from Theorem 1.4 based on cross-free pairings. In particular, the cross-free pairing used for the simple 3-approximation proof in Corollary 1.5 was quite simple, forcing each cluster in B to be contained in a cluster in A. While we can show a good cost bound for just Dκ with only Theorem 1.4 and more careful definitions for both μA and μB, to simultaneously preserve our substitution cost bounds we need a slight extension of cross-freeness. We now define the notion of cross-freeness with respect to some D0⊆D, and present the extension of Theorem 1.4 to this setting of generalized cross-freeness.
Figure 5: A clustering A of D in red; a possible set D0, and the set D0, with the clusters A′ being the clusters now colored blue. Another clustering B in blue, such that A, B are not cross-free in general. However, they are cross-free w.r.t. D0, since each cluster in the clustering B′ obtained by restricting B to D0 (given in goldenrod on the right) either contains, or is contained in, a cluster of A′.
Definition 3.5 (Generalized Cross-Freeness). Given a pair of clusterings A,B of D, and a subset D0⊆D, define A′:={A∈A∣A⊆D0} to be the clusters completely contained within D0, and D0:=∪A∈A′A to be the points in these clusters. Now let B′:={B∩D0∣B∈B} be the restrictions of these clusters of B to the clients in D0. The clusterings A and B are cross-free with respect to D0 if A′ and B′ are cross-free.
Theorem 3.6 (Refined Local Search Bound). Let (D∪F,d) be an instance of k-median and ε>0. Let L⊆F with ∣L∣=k be a solution for local search with O(1/ε)-sized swaps, and let B⊆F be another benchmark solution. Given arbitrary assignments μA:D→L, μB:D→B and a subset D0⊆D such that (i)∣B∣+∣μA(D∖D0)∣≤k and (ii) the pair (L,μA),(B,μB) is cross-free with respect to D0, the clustering induced by the local-search solution (L,πL) has cost
We prove Theorem 3.6 in §6. Observe that setting D0=D in Definition 3.5 and Theorem 3.6 gives us back Definition 1.3 and Theorem 1.4 respectively. Despite generalizing Theorem 1.4, after defining the right abstraction, the proof is nearly identical (see §6.1). The intuition for Theorem 3.6 is that B is a near-optimal solution on D0 of size k−∣μA(D∖D0)∣, but possibly a very bad solution outside of D0. Next, we present our claim about the existence of good (generalized) cross-free pairs, which are cognizant of the set Dκ.
Lemma 3.7 (A “Nice” Cross-Free Pair). Let B:=OΛearly∪OR and D0:=DΛearly∪DR. Then there exist mappings μA:D→L, μB:D→B such that the associated clusterings (A,B) form a cross-free pair with respect to D0 and ∣B∣+∣μA(D∖D0)∣≤k. Moreover,
(We prove Lemma 3.7 in §A.) We set D0:=DΛearly∪DR here because this is precisely the set of clients in clusters without efficient substitutes in L. For all other clusters, we simply assign them to their substitutes under μA without having to worry about ensuring cross-freeness. This explains the OΛlate∪OP and DS terms in the bound on cost(μA).
Then, within D0, we set μB to be the assignment under πO except that the D0-clients in local search clusters centered at satellites Γ(OR) are “absorbed” into OR clusters. The assignment is constructed such that, for each c∗∈OR, the cluster centered at c∗ absorbs the local search cluster centered at σ(c∗)∈Γ(OR). This change ensures that (1) each OR cluster can be sent to its substitute under μA while preserving cross-freeness and (2) each client in a satellite cluster can be assigned to its satellite center under μA. The combination of these two properties ensures that the low local search cost of the cores of OR clusters is preserved under μA and non-core clients incur the substitution cost guaranteed by σ. This gives the OR-related contributions in the bound on cost(μA). Finally, the DΛearly bound follows from straightforwardly bounding the cost of reassigning to the nearest local search center.
Given the existence of this “nice” cross-free pair, we can infer a bound on the cost of the local search which has low cost for the clients in Dκ, as desired.
Theorem 3.8 (Nuanced Local Search Guarantee). We have
Proof. Applying Theorem 3.6 and Lemma 3.7, the costL(D0) terms cancel. The desired result then follows from the fact that D0=DΛearly∪DR.
3.5 Win-win Argument and Final Approximation Guarantee
To conclude Theorem 1.1, we combine this local-search bound with the submodular maximization bound from Theorem 3.4. To optimize our final approximation factor, it will be convenient to have cluster-wise bounds; to that end, for each cluster C∗∈O, define
The parameter yκ(C∗) captures the savings from the core in the local-search bound, relative to costO(C∗). With this notation, the two aggregate cost bounds from Theorem 3.4 and Theorem 3.8 have the following coefficients of costO(C∗), where we combine OP with OΛlate for simplicity:
L
T
OS
1+η
1+η
OΛearly
3
1+2x(C∗)/e
OΛlate∪OP
1+x(C∗)
1+2(1+κ(C∗))x(C∗)/e
OR
2+x(C∗)−yκ(C∗)
1+x(C∗)
Table 1: Comparison of local search and submodular maximization cluster costs
The table hides error terms totaling O(ε) opt in both columns. Balancing the costs from the two columns, we give weight a:=3/25 to the former and 1−a to the latter. The following lemma shows that, with this choice of a, we can define κ(C∗) as required for Theorem 3.1 and achieve an overall 1+η+O(ε) approximation guarantee.
Lemma 3.9. Let a=3/25, η=89/100, and ε∈(0,1/200). For each optimal cluster C∗, there exists κ(C∗)∈[1/η−1,1/2] such that (7) holds whenever per(C∗)≥ηavgO(C∗)/(1+ε), and the (a,1−a) convex combination of the two entries in the row of Table 1 containing c∗ is at most 1+η+O(ε).
The proof of Lemma 3.9 appears in Section C. Applying the lemma and summing over the clusters C∗∈O gives
We return the cheapest solution among L and the candidates produced by the algorithm. Amplifying the randomized routines, rescaling ε, and using η=0.89 gives a (1.89+ε)-approximation with probability at least 1−ε, in time exp{O(β−1poly(1/ε))}polyε(n).
In the following sections, we give the details missing from above. We prove the main structural results Theorem 3.1 and Theorem 3.2, showing the existence of many substitutions, backups, and dummies in Section 4. Then we present the submodularity-based algorithm and prove Theorem 3.4 in Section 5 and conclude with the nuanced local search guarantee of Theorem 3.6 in Section 6.
4 Structural Theorem: Proofs of Theorem 3.1 and Theorem 3.2
In this section, we prove our main structural result Theorem 3.1. The proof proceeds by a series of substitution and sampling steps. Over the course of the algorithm and analysis, we will accumulate a collection of low cost substitutions of centers in O by centers in L.
Notation. In this section it will often be convenient to combine maps f1:X1→Y,f2:X2→Y,…,fr:Xr→Y where Xi∩Xj=∅ for i=j. We write [f1,f2,…,fr]:X1⊔X2⊔⋯⊔Xr→Y to denote the (coproduct) map applying fi on inputs in Xi.
4.1 Synchronized and Close Clusters
The first two substitutions arise directly from local search on β-stable instances, and from optimal centers that have a local-search center close to them.
Definition 4.1 (Synchronized Clusters). An optimum cluster C∗∈O is synchronized (or synced) with respect to L if there exists a cluster C′∈L such that ∣C′△C∗∣≤εmin(∣C∗∣,∣C′∣). In this case, we also say that cluster C′ is synced and that C′ and C∗ are in-sync.
(In prior work [CGL +25], synchronized clusters were called pure clusters.) Since ε<1/2, the in-sync pairs form a matching. By prior results, most optimum clusters are synced with respect to L in β-stable instances, and synced clusters can cheaply substitute one another:
Lemma 4.2 (Restated from [CS17, Lemma IV.4]). Let (D∪F,d) be β-stable, and ε∈(0,1/200). Then, at most s0=ε−2β−1 clusters C∗∈O are not synced with respect to L.
Proposition 4.3 (Adapted from [CGL +25, Lemma 4.4]). There exists Osync⊆O with ∣O∖Osync∣≤s0=ε−2β−1, and a substitution map σsync:Osync→L—where σsync(c∗)=c′ for (c∗,c′) being an in-sync pair—such that ∣L∖σsync(Osync)∣≤s0, and
The second substitution map is a trivial one: if an optimal center has an especially close center in L, it can be substituted. For η∈[0,1], a cluster C∗∈O is called η-close if the closest center c′∈L satisfies d(c∗,c′)≤ηavgO(C∗)+2εavgL(C∗). The following result just uses the triangle inequality.
Proposition 4.4 (Close Substitution). Let Ocl⊆O∖Osync be the centers of η-close unsynced clusters, and define σcl:Ocl→L, with σcl(c∗)=argminc′∈Ld(c∗,c′). For each c∗∈Ocl and the corresponding cluster C∗:
Define OS0:=Osync∪Ocl as the set of centers with substitutions so far, and σ0=[σsync,σcl] the combined substitution map. Also define O1:=O∖OS0 as the set of remaining centers in O; note that we have ∣O1∣≤s0=ε−2β−1 from Lemma 4.2.
4.2 Adding Auxiliary Centers using Client Sampling
The next step of the algorithm is to augment the metric space by a set Λ1 of auxiliary/dummy centers. These centers will serve as backup centers for a certain subset of O in the final submodular optimization step of our algorithm.
Intuition. We sample clients with probability proportional to their current cost (a “D-sampling” step), so an expensive optimal cluster is likely to have a sampled client land in its core. Using that client as a leader and guessing the right radius, we place a dummy center close to the optimal center c∗, all without knowing c∗ itself. To optimize the quality of the sampled leaders, we consider the sampling in two rounds, with the second round extending the core further from the center.
(OS0,σ0)
(O1)
Theorem 4.6. There exists a polynomial time algorithm outputting a set of auxiliary centers Λ1, so that with probability exp{−O(s0log(ε−1))} there exists a partition O1=OΛ1⊔OS1⊔O2 with all of the following guarantees:
(a) (Auxiliary Centers) There exists a partition OΛ1=OΛ1early⊔OΛ1late, and a dummy center map φ1:OΛ1→Λ1 such that φ1 is a bijection, and for each c∗∈OΛ1 with C∗∈O, we have
(iv) (C∗ has some candidate leader) There exists c′∈L with d(c∗,c′)≤(1+ε)per(C∗) and d(c′,C∗)≤εper(C∗).
After a successful application of Theorem 4.6, the subset O2=O1∖(OΛ1∪OS1) is precisely the set of optimal centers still without a substitution or auxiliary map.
(02)
4.3 Satellites of Remaining Clusters are Spread Out
Next, we show that O2 has a useful additional structural property. Recall (8), where we defined the set of satellites for an optimal center c∗∈O (with corresponding cluster C∗∈O) as:
(See Figure 2.) The clients in C∗ close to satellites in Γ(c∗) are called witnesses. We now show that, for c∗∈O2, Γ(c∗) has a non-trivial diameter. We will use this fact in our next sampling step when estimating radii for new dummy centers.
Lemma 4.5. For each c∗∈O2, the diameter of Γ(c∗) is at least εper(C∗).
Proof. Suppose otherwise. Choose c′∈Γ(c∗) with d(c∗,c′)≤(1+ε)per(C∗), as guaranteed by Theorem 4.6(c)(iv). We seek a contradiction with our technical condition Equation (7). As a reminder, this says that, since per(C∗)≥ηavgO(C∗)/(1+ε), our choice of κ(C∗) ensures
(2+κ(C∗))per(C∗)≥(2+6ε)avgO(C∗).
We will show that at least (1−3ε)∣C∗∣/2 clients lie outside coreκ(C∗). This suffices: at most ε∣C∗∣ clients have distance strictly less than per(C∗), and each client outside the core has distance greater than (1+κ(C∗))per(C∗). Hence
contradicting (7). This uses that 6εavgO(C∗)>5εper(C∗), since avgO(C∗)≥1+2ε1per(C∗).
So it suffices to show that at least (1−3ε)∣C∗∣/2 clients belong to C∗∖coreκ(C∗). Roughly speaking, the argument goes as follows. By optimality of O, we know that the solution replacing c∗ with c′ cannot decrease the cost. On the other hand, the assumption that Γ(c∗) has small diameter, combined with the fact that the core of C∗ is cheap in L by Theorem 4.6(c)(ii) means that clients in coreκ(C∗) reassign to c′ almost for free. Then most of the cost of C∗ must come from clients outside the core. But, these clients pay at most (1+ε)per(C∗) extra each, by the triangle inequality. So, intuitively, we must have many such clients.
Let us begin by bounding the cost of reassigning C∗ to c′. For p∈coreκ(C∗), we have
d(p,c′)≤εper(C∗)+ε4d(p,L).(18)
Indeed, if d(p,L)≤εper(C∗), then πL(p)∈Γ(c∗) and the diameter bound applies. Otherwise, d(p,c′)≤(2+κ(C∗)+ε)per(C∗)<4per(C∗), giving (18). Summing and using proportionate core cost gives
By Theorem 4.6(c)(iii), we have costO(C∗)≤(1+ε)∣C∗∣per(C∗)/η. Substituting in (23) and dividing by 2per(C∗) gives
∣coreκ(C∗)∣≤21+ε+(ε+6ε2)(1+ε)/η∣C∗∣≤21+3ε∣C∗∣,
where (1+6ε)(1+ε)/η<2 for η=89/100 and ε<1/200. This implies ∣C∗∖coreκ(C∗)∣≥2(1−3ε)∣C∗∣, as required.
4.4 Adding Auxiliary Centers using Cluster Sampling
We now sample a few centers (and not clients) from the local search solution L and use them as leaders to add more auxiliary centers; this further reduces the number of optimal centers which do not have substitutions or auxiliary center maps (and imposes more structure on these remaining centers). Along the way, we also identify several substitute centers in L as backups and some others as redundant and removable. For brevity, define LX:=σ0(OS0)∪σ1(OS1) to be the image of the substitution maps defined so far. The following theorem outputs L′⊆L along with another set of dummies Λ2.
Theorem 4.9 (Cluster Sampling). There exists a polynomial time algorithm outputting L′⊆L and a set of dummy centers Λ2 so that with probability exp{−O(s0log(ε−1))} there exists partition O2=OΛ2⊔OX⊔OB and LX⊆L′, with the following guarantees:
(a) (More Auxiliary Centers) There exists a bijection φ2:OΛ2→Λ2 such that, for each c∗∈OΛ2:
This is the last ingredient we need in our structural theorem.
4.5 Concluding the Proofs of Theorem 3.1 and Theorem 3.2
Concluding Theorem 3.1 and Theorem 3.2 is now mostly a matter of collecting properties and parameters.
Theorem 3.1. Let (D∪F,d) be a β-stable instance of k-median and ε∈(0,1/200). There exists an algorithm running in poly(n) time which, with probability exp{−O(s0log(ε−1))}, outputs a subset of the local search solution L′⊆L and a collection of dummy centers Λ, such that there exists a partition O=OΛ⊔OP⊔OR⊔OS with the following properties.
(LX)
(L′)
(a) (All special sets are small) We have ∣OΛ∣+∣OP∣+∣OR∣≤s0.
(b) (Centers with corresponding dummy centers) There exists a partition OΛ=OΛearly⊔OΛlate and a dummy center map φ:OΛ→Λ such that φ is a bijection, and for each center c∗∈OΛ and client p∈C∗∈O:
(iii) For all c∗∈OR, we have Γ(c∗)⊆L′, and σ(c∗)=σ(c∗∗) for any c∗∗∈(OR∪OS)∖{c∗}.
Proof of Theorem 3.1. We already defined L′ in Theorem 4.9. We define Λ:=Λ1∪Λ2, OΛ:=OΛ1⊔OΛ2, OΛearly:=OΛ1early, OΛlate=OΛ∖OΛearly, OS:=OS0⊔OS1, φ=[φ1,φ2]:OΛ→Λ, and σS=[σ0,σ1]:OS→L′.
To finish the definition of the partition of O and define the full substitution and backup maps σ and ψ, we next define OP and OR such that OP⊔OR=OX⊔OB, OX⊆OP, and OR⊆OB. Consider the following greedy algorithm.
Initialize OP←OX, OR←∅, and ψ:OP→L′ as ψX:OX→LX⊆σS(OS) as in Theorem 4.9(b).
We also maintain an assignment σR:OR→L′ such that, for each c∗∈OR and σ:=[σS,σR]:OS∪OR→L′, σ(c∗) has a unique preimage, as needed for Theorem 3.1(d)(iii).
Iterate over c∗∈OB in an arbitrary order:
If there exists c′∈σ(OS∪OR) with d(c∗,c′)≤(1+ε)per(C∗), then set OP←OP∪{c∗} and extend ψ by ψ(c∗)=c′∈σ(OS∪OR).
Otherwise, since c∗∈OB⊆O2, by Theorem 4.6(c)(iv) and Theorem 4.9(c), there exists some c′∈Γ(c∗)⊆L′ with d(c∗,c′)≤(1+ε)per(C∗). In this case we set OR←OR∪{c∗} and extend σ by σ(c∗)=c′.
This defines our partition O:=OΛ⊔OP⊔OR⊔OS, the backup map ψ:OP→LP⊆L′ (where LP:=ψ(OP)), and the substitution map σ:OS⊔OR→L′. The algorithm is to run the algorithms of Theorem 4.6 and Theorem 4.9 one after another, immediately yielding the running-time and probabilistic guarantees. It remains to check the required properties.
(a) Note that OΛ,OP,OR are disjoint by definition and all subsets of O∖Osync. Hence, by Lemma 4.2, we have ∣OΛ∣+∣OP∣+∣OR∣≤s0.
(b) This is immediate by the combination of Theorem 4.6(a) and Theorem 4.9(a), using δp to absorb all of the error terms. This uses per(C∗)≤(1+2ε)avgO(C∗).
(c) This is immediate on OX by Theorem 4.9(b) and follows from our construction of ψ for OP∖OX. (In fact, these latter centers have the even stronger (1+ε) per(C∗) distance upper bound, but we will not need this.)
(d) By construction of σ and Theorem 4.9(c) we have that LP⊆Lσ⊆L′.
(i) The cost bound follows from the definition of σ and the bounds from Proposition 4.3, Proposition 4.4, and Theorem 4.6(b). This uses cost(L)≤5opt.
(ii) This is immediate by construction of σR and the triangle inequality.
(iii) By Theorem 4.9(c) we have Γ(OR)⊆L′, and each σ(c∗) for c∗∈OR has a unique preimage by construction of σR.
Theorem 3.2. Successful runs of the algorithm from Theorem 3.1 also ensure the following properties:
(a) (Redundant centers are hidden in the mixed solution) Define M′:=L′∪Λ and M′ as the clustering corresponding to πM′. Then,
c∈Γ(OR)∪(L′\Lσ)∑costM′(Mc)<ε3opt,
where Mc is the cluster in M′ centered at c.
(b) (Far from L) For all c∗∈/OS and p∈C∗∈O, d(c∗,L)>ηavgO(C∗)+2εavgL(C∗).
(d) (Remaining centers) The set of remaining centers OR satisfies the following.
(i) (OR Hidden cores)∑c∗∈ORcostL(coreκ(C∗))<ε5opt,and, for all c∗∈OR,we have costL(coreκ(C∗))<ε3costO(C∗).
(ii) (Satellites are hidden in L) ∑c∈Γ(OR)costL(C)<ε3opt.
(iii) (per(C∗)≈avgO(C∗)) For all c∗∈OR, 1+2ε1per(C∗)≤avgO(C∗)≤η(1+ε)per(C∗).
Proof of Theorem 3.2. We can again check the required properties one-by-one.
(a) This is immediate from the second guarantee of Theorem 4.9(c), since we defined OR as a subset of OB and LX⊆Lσ.
(b) This is by the definition of close clusters: in fact, for all c∗∈O∖OS0 we have d(c∗,L)>ηavgO(C∗)+2εavgL(C∗). Notably, OS0⊆OS.
(c) Since OP∪OΛlate⊆O1∖OΛ1early, this follows from Theorem 4.6(c)(i).
(d) The last set of properties all concern OR. Note that by definition OR⊆O2.
(i) This follows by Theorem 4.6(c)(i) and Theorem 4.6(c)(ii). (Here we use that OR⊆O2⊆O1∖OΛ1.)
(ii) This follows by the first bound of Theorem 4.9(c).
(iii) This follows from Theorem 4.6(c)(iii).
4.6 D-Sampling and Dummy Addition: Proof of Theorem 4.6
Next, we give the proofs for the various supporting theorems from §4. Let us recall Theorem 4.6, our result for client sampling.
Theorem 4.6. There exists a polynomial time algorithm outputting a set of auxiliary centers Λ1, so that with probability exp{−O(s0log(ε−1))} there exists a partition O1=OΛ1⊔OS1⊔O2 with all of the following guarantees:
(a) (Auxiliary Centers) There exists a partition OΛ1=OΛ1early⊔OΛ1late, and a dummy center map φ1:OΛ1→Λ1 such that φ1 is a bijection, and for each c∗∈OΛ1 with C∗∈O, we have
(iv) (C∗ has some candidate leader) There exists c′∈L with d(c∗,c′)≤(1+ε)per(C∗) and d(c′,C∗)≤εper(C∗).
To prove this result, we show that Algorithm 1 satisfies the properties with the appropriate probability.
Algorithm 1: Client sampling and dummy guessing
1.1 Λ1←∅
1.2 for i=1,…,2s0 do
1.3 Sample a random client ℓ∈D with probability d(ℓ,πL(ℓ))/cost(L)
1.4 w.p. 1/2, continue
1.5 r0←d(ℓ,L)
1.6 r←random(1+ε)xr0 with ε3r0≤r≤r0/ε7, x∈Z
1.7 Λ1←Λ1∪{λ}, where λ is added with d(ℓ,λ)=r//ℓ=ℓλ, r=rλ
Let H⊆D be the random subset of clients sampled (hit) in Algorithm 1 for which the algorithm added a corresponding λ∈Λ1 (i.e., did not skip the iteration in Line 1.4). We will set OΛ1=OΛ1early∪OΛ1late, where
Then, G occurs with probability at least exp{−O(s0log(ε−1))}.
Proof. Let H denote the set H at some iteration of Algorithm 1. Define OH analogously to OΛ1 but with respect to H. For c∗∈O1 define its punched core as
core6ε(C∗):={p∈core6ε(C∗)∣d(p,L)≥ε6per(C∗)}.
Similarly define coreκ(C∗). Assume that (A) holds for the dummy centers added so far. It is maintained by the following event.
Let ℓ∈C∗ be the sampled client. If c∗∈/O1, the iteration is skipped on line 1.4. Otherwise, the iteration is skipped if c∗∈OH or ℓ∈/coreκ(C∗). If i≤s0 and ℓ∈/core6ε(C∗), the iteration is also skipped. In all other cases, the iteration is not skipped.
This happens with probability 1/2 on each iteration. Next, suppose that (B) holds up to the current iteration, with respect to H. We bound the probability it is maintained in this iteration, given the iteration is not skipped from the event above. Since the above event holds, r0≥ε6per(C∗). If i≤s0, we also have ℓ∈core6ε(C∗); otherwise we just have ℓ∈coreκ(C∗). Call ℓ early if ℓ∈core6ε(C∗), and late otherwise. Since each optimal cluster has at most one accepted leader, this agrees with the classification of c∗ in OΛ1early or OΛ1late. We have
In particular, since ∣coreκ(C∗)∣≥ε∣C∗∣, we get costL(C∗)>2εr0∣C∗∣. As such, εavgL(C∗)>2ε2r0. In either case, there exists some r=(1+ε)xr0 such that d(ℓ,c∗)≤r≤(1+κ(C∗)1(ℓ late)+8ε)per(C∗)+εavgL(C∗) with x∈Z and ε3r0≤r≤ε−7r0. A random guess of (1+ε)xr0 in this interval around r0 then meets the required guarantees with probability at least 20log(ε−1)ε≥ε2/5. The arguments for (C) and (D) are similar. We ensure (C) and (D) by bounding the probability that the following event holds.
If i≤s0 and ∑c∗∈O1∖OHcostL(core6ε(C∗))≥ε5opt, then ℓ is sampled so that ℓ∈core6ε(C∗) with c∗∈O1∖OH.
If i>s0 and ∑c∗∈O1∖OHcostL(coreκ(C∗))≥ε5opt, then ℓ is sampled so that ℓ∈coreκ(C∗) with c∗∈O1∖OH.
Assuming the first event ensuring (A) holds, each “if” condition can only hold in at most ∣O1∣≤s0 iterations. Thus (C) holds after the first s0 iterations and remains valid because OΛ1early only grows.
Similarly, (D) holds after the second s0 iterations. Now, if i≤s0 and ∑c∗∈O1∖OH~costL(core6ε(C∗))≥ε5 opt, then
The probability of sampling a good ℓ if the condition holds is then at least
cost(L)ε6opt≥5optε6opt=5ε6.
An identical argument gives the same lower bound on the probability in the case when i>s0. Combining these bounds shows that Pr[G]≥(ε8/(50))2s0=exp{−O(s0log(ε−1))}.
and set σ1(c∗):=πL(c∗) for c∗∈OS1. For each c∗∈OΛ1, define φ1(c∗) to be the unique dummy center whose leader belongs to C∗. By (A) and the definition of OΛ1, this gives a bijection φ1:OΛ1→Λ1. The auxiliary-center and hiddenness guarantees then follow immediately from Lemma 4.7, and proportionate core cost holds by definition. (These are Theorem 4.6(a), (c)(i), and (c)(ii), respectively.) We verify the remaining guarantees below.
Since core0(C∗) contains at least ε∣C∗∣ clients, each within distance per(C∗) of c∗, averaging the triangle inequality gives
Then, applying Equation (25) to the first term and Lemma 4.7(D) to the second, we get a bound of (2+2ε)ε2+ε4 opt < ε opt, as needed for Theorem 4.6(b).
It remains to show Theorem 4.6(c)(iii) and (c)(iv). For this, let c∗∈O2. Since c∗∈O1 is not close to L (as in Proposition 4.4), (24) and the definition of O2 give
ηavgO(C∗)<d(c∗,L)<per(C∗)+ε2avgO(C∗).
Together with the trivial upper bound on per(C∗) from (5), this yields
1+2εper(C∗)≤avgO(C∗)<η−ε2per(C∗)≤η1+εper(C∗),
giving (c)(iii). Finally, choose q∈core0(C∗) minimizing d(q,L) and set c′:=πL(q). Then
Thus d(c∗,c′)≤d(c∗,q)+d(q,c′)≤(1+ε)per(C∗), proving (c)(iv). The inequalities above use η≥1/2 and ε<1/200. This completes the proof of Theorem 4.6.
4.7 Expensive Cluster Sampling: Proof of Theorem 4.9
We start this section by bounding the cost of the solution we will be sampling from in Theorem 4.9. The constant in the proposition is very loose, but this looseness is not relevant and only changes the final success probability.
Proof of Proposition 4.8. Note that O∖O2=OS0∪OS1∪OΛ1. For c∗∈OΛ1, by Theorem 4.6(a), there exists λ∈Λ1 (namely λ=φ1(c∗)) such that d(c∗,λ)≤(2+2κ(C∗)+16ε)per(C∗)+2εavgL(C∗). So, using that per(C∗)≤(1+2ε)avgO(C∗) and κ(C∗)≤1,
We can now prove Theorem 4.9, which shows how to add further auxiliary centers by sampling “expensive” cluster centers from the local search solution, and using them as leaders.
Theorem 4.9 (Cluster Sampling). There exists a polynomial time algorithm outputting L′⊆L and a set of dummy centers Λ2 so that with probability exp{−O(s0log(ε−1))} there exists partition O2=OΛ2⊔OX⊔OB and LX⊆L′, with the following guarantees:
(a) (More Auxiliary Centers) There exists a bijection φ2:OΛ2→Λ2 such that, for each c∗∈OΛ2:
Proof. Define OX⊆O2 as the subset of centers c∗∈O2 such that there exists c′∈LX with d(c∗,c′)≤(1+κ(C∗)+4ε)per(C∗). Then define ψX:OX→LX by setting ψX(c∗) equal to some c′ as above for each c∗∈OX. By construction this satisfies (b).
Next we show that, given this definition of OX and ψX, Algorithm 2 satisfies the guarantees of Theorem 4.9. The algorithm is intuitively simple. Repeat many rounds of sampling centers in L according to their cost in some appropriately chosen solution (lines 2.5 and 2.7). The goal of sampling is (1) to detect redundant centers from L which we can remove from our final solution, and (2) to detect centers which are “good leaders” insofar as they can be used to give dummy centers for remaining centers in O2∖OX. If the centers in cases (1) or (2) make up a substantial portion of the cost in the solution we are sampling from then we have a good probability of sampling one such cluster. We can guess which case it falls under, and we do so in line 2.8. In case (1), we just go ahead and delete the center, adding it to L−. Otherwise, in case (2), we use the distance of the sampled center (candidate leader) ℓ to its nearest center c′ as a radius estimate (for constructing dummy centers). The distance d(ℓ,c′) may not be a good estimate; we guess whether this is the case, with the bit b being False if it is a poor estimate. If indeed the nearest center is much too close to ℓ, we can safely delete c′ (line 2.19). Since ℓ and c′ are so close they are roughly equivalent in their capacity to serve outstanding centers in O2∖OX.
We repeat this process of guessing whether d(ℓ,c′) is a good radius estimate until eventually it becomes one. At that point, we repeatedly guess the correct radii and add dummies for every remaining center in O2∖OX for which ℓ is a good leader (lines 2.14 and 2.16). Afterwards we remove ℓ since it is then no longer needed (line 2.18).
We now proceed with the formal analysis, first showing that Algorithm 2 runs in polynomial time. The two nested for loops have 2s0 iterations total (Line 2.3). For the dummy center guessing loop
Algorithm 2: Iterative cluster sampling and dummy creation
2.1 Λ2,L−←∅
2.2 for i∈{0,1} do
2.3 for j∈[s0] do
2.4 w.p. 1/2, continue
2.5 if i=0 then sample ℓ∈L∖L− w.p. ∝costL(Cℓ)/cost(L), where Cℓ∈L
2.6 else
2.7 Sample ℓ∈L∖L− w.p. ∝∑p∈Mℓd(p,ℓ)/cost((L∖L−)∪Λ1∪Λ2), Mℓ in clustering of (L∖L−)∪Λ1∪Λ2
2.8 if ∣L−∣≤s0 then w.p. 1/2, L−←L−∪{ℓ}, and continue
// ℓ is a candidate leader
2.9 while ∣Λ2∣+∣L−∣≤2s0 do
2.10 c′←argminc′′∈L∖(L−∪{ℓ})d(ℓ,c′′)
2.11 b←True w.p. 1/2, False o.w.
2.12 if b then
2.13 r0←d(ℓ,c′) // d(ℓ,L∖(L−∪{ℓ})) is a good estimate of radius
2.14 while ∣Λ2∣+∣L−∣≤2s0 do
2.15 r←random (1+ε)xr0 with ε3r0≤r≤r0/ε3, x∈Z
2.16 Λ2←Λ2∪{λ}, where λ is added with d(ℓ,λ)=r // ℓ=ℓλ, r=rλ
2.17 w.p. 1/2 break
2.18 L−←L−∪{ℓ}, and break
2.19 else L−←L−∪{c′}
2.20 return Λ2 and L′:=L∖L−.
(Line 2.9), in each iteration of the loop, if b is set to True, ∣Λ2∣ and ∣L−∣ each increase by at least 1. Otherwise, if b is set to False, ∣L−∣ increases by 1. Either way, ∣Λ2∣+∣L−∣ increases by at least 1, so this loop occurs at most O(s0) times over the course of the whole algorithm. The last loop is the radius guessing loop (Line 2.14) in which multiple dummy centers might be added from the same ℓ. In each iteration of this loop ∣Λ2∣ increases by 1, so this loop occurs at most O(s0) times over the entire course of the algorithm. Each individual line of the algorithm can be implemented in polynomial time, yielding the desired runtime.
We now show that the output of Algorithm 2 has all of the desired properties with probability exp{−O(s0log(ε−1))}. Over the course of the algorithm, only for the purposes of analysis, we maintain a current candidate partition O2∖OX=OΛ2⊔OB and a bijection φ2:OΛ2→Λ2 as follows. We will explicitly set OΛ2 and set OB as the complement (in O2∖OX). Initially OΛ2=∅. The final values of OΛ2 and OB are OΛ2 and OB. For valid instantiations of the algorithm, we maintain two invariants:
(I) Whenever λ is added to Λ2 such that d(ℓ,λ)=r, we move some center c0∗ from OB to OΛ2 and update φ2 accordingly with φ2(c0∗)=λ with ℓλ=ℓ and rλ=r. Each time this occurs, we have d(c0∗,ℓ)≤d(ℓ,λ)≤(1+κ(C0∗)+6ε)per(C0∗).
(II) At the beginning and end of each iteration of the for loop on line 2.3, LX∪Γ(OB)⊆L∖L−.
By Proposition 4.3 and the definition of LX, we have ∣L∖LX∣≤s0. Thus, we maintain that ∣Λ2∣≤∣O2∖OX∣≤s0 and ∣L−∣≤s0. In the good-event analysis below we also show that centers from LX are never deleted, so none of the size checks prevents a good iteration from being completed. Note that invariant (I) implies (a) and invariant (II) immediately gives Γ(OB)⊆L′ at termination.
We next prove the cost and probability bounds. For this, we begin with two helper claims. First we show that if the satellites of two clusters overlap, they have comparable values of per( ⋅).
Claim 4.10. Suppose that c∗,c1∗∈O2 satisfy Γε(c∗)∩Γε(c1∗)=∅. Then, per(C∗)/3≤per(C1∗)≤3per(C∗).
Proof. Let c∈Γε(c∗)∩Γε(c1∗). By definition of Γε(⋅), there exist witness clients p,p1∈D such that p∈C∗∈O, p1∈C1∗∈O, d(p,c)≤2εper(C∗), and d(p1,c)≤2εper(C1∗). We also know that d(c∗,c)≤(1+κ(C∗)+3ε)per(C∗) and d(c1∗,c)≤(1+κ(C1∗)+3ε)per(C1∗). Since O is induced by the nearest-center assignment πO on O, we must have that d(p,c∗)≤d(p,c1∗) and d(p1,c1∗)≤d(p1,c∗). Now, assume for the sake of contradiction that per(C1∗)<per(C∗)/3. Then, d(c1∗,p)≤d(c1∗,c)+d(c,p)≤(1+κ(C1∗)+3ε)per(C1∗)+2εper(C∗)<(2/3+3ε)per(C∗). On the other hand, we know that d(c∗,p)≥d(c∗,c)−d(p,c)≥(η/(1+2ε)−2ε)per(C∗) since c∗∈/OS0 and per(C∗)≤(1+2ε)avgO(C∗). This is a contradiction since η≥0.7 and ε<1/200. Exchanging C∗ and C1∗ proves the other inequality.
We now use invariant (II) to conclude (d). We actually prove a stronger statement, which we will require in our probability analysis.
Claim 4.11. Assuming the invariants, before and after every iteration of the for loop on line 2.3, we have cost((L∖L−)∪Λ1∪Λ2)≤(5+50ε)opt<6opt.
Proof. The invariant (II) ensures that LX⊆L∖L−, so the cost bound from Proposition 4.8 still applies. By definition, ψX(OX)⊆LX. Then, combining this with the triangle inequality, the distance bound from invariant (I), and invariant (II) we get the following: for each p∈C∗∈O with c∗∈O2, there exists some c∈(L∖L−)∪Λ1∪Λ2 with d(p,c)≤d(p,c∗)+(2+2κ(C∗)+12ε)per(C∗). Summing the costs of these clients and using per(C∗)≤(1+2ε)avgO(C∗) for each C∗∈O and combining with Proposition 4.8, we get cost((L∖L−)∪Λ1∪Λ2)≤(5+50ε)opt<6opt, as needed.
It remains to show that, with probability exp{−O(s0log(ε−1))}, an instantiation of the algorithm is valid (i.e., satisfies the invariants) and OB satisfies the cost bound requirements of (c) at termination.
The following events are called good. Assume the invariants hold inductively at the beginning of the current outer iteration.
If either:
(a) i=0 and ∑c∈Γ(OB)∑p∈Cd(p,L)<ε3opt,or
(b) i=1 and ∑c∈Γ(OB)∪(L∖(LX∪L−))∑p∈Mcd(p,(L∖L−)∪Λ1∪Λ2)<ε3opt,
then we skip the entire iteration via Line 2.4. Otherwise we do not skip the iteration. (This occurs with probability 1/2.)
If i=0 and the iteration is not skipped, we sample ℓ∈Γ(OB). This occurs with probability at least ε3/5 since cost(L)≤5opt.
If i=1 and the iteration is not skipped, we sample ℓ∈Γ(OB)∪(L∖(LX∪L−)) with probability at least ε3/6 since cost((L∖L−)∪Λ1∪Λ2)<6opt by Claim 4.11.
After either sampling step, we add ℓ to L− on line 2.8 if and only if ℓ∈/Γ(OB). In this case, ℓ∈/LX by the sampling event, so both invariants are maintained. If ℓ∈Γ(OB), we instead continue to the dummy guessing loop. In either case, the desired outcome occurs with probability 1/2.
Otherwise, the sampled ℓ belongs to Γ(OB). Note that, by definition of OX, Γε(OB)∩LX=∅, so deleting ℓ (as we will eventually do) will not delete a center in LX. Fix c0∗∈OB with ℓ∈Γ(c0∗). In each iteration of the dummy guessing loop, write r0=d(ℓ,c′). The bit b is set to True if and only if there exists c∗∈OB with ℓ∈Γε(c∗) and r0≥ε2 per(C∗). Each required outcome has probability 1/2. We verify the two cases.
(a) If b is False, then r0<ε2per(C0∗). By the triangle inequality, c′∈Γε(c0∗), so c′∈/LX. Moreover, if c′∈Γ(c∗) for any c∗∈OB, Claim 4.10, applied at c′, gives per(C0∗)≤3per(C∗). Consequently, d(ℓ,c′)<3ε2per(C∗)≤εper(C∗). The witness for c′∈Γ(c∗) and the triangle inequality then show that ℓ∈Γε(c∗). Thus every remaining cluster whose satellite is deleted can use ℓ as a leader.
To see that b is eventually True, note that Γ(c0∗) has diameter at least εper(C0∗) by Lemma 4.5. There is therefore some s∈Γ(c0∗) with
εper(C0∗)/2≤d(ℓ,s)<5per(C0∗).
Invariant (II) ensures that s is present at the beginning of this outer iteration. It is never deleted while b is False, since each such deletion has distance less than ε2per(C0∗) from ℓ. Hence the loop eventually reaches a True outcome, and at that point r0≤d(ℓ,s)<5per(C0∗). All preceding deletions avoid LX, so the size checks do not prevent this.
(b) When b is True, the definition of the good outcome and Claim 4.10, applied at ℓ, give, for every c∗∈OB with ℓ∈Γε(c∗),
3ε2per(C∗)≤r0≤15per(C∗).
Also,
1+2εηper(C∗)<d(c∗,ℓ)≤(1+κ(C∗)+3ε)per(C∗),
since c∗∈/OS0. For ε<1/200, these bounds ensure that rounding d(c∗,ℓ) up to a power (1+ε)xr0 gives a radius in [ε3r0,ε−3r0].
Let c∗ be any center in OB with ℓ∈Γε(c∗). We implicitly set φ2(c∗)=λ in this iteration. The random guess of r is such that d(c∗,ℓ)≤r≤(1+ε)d(c∗,ℓ). This happens with probability at least 20log(1/ε)ε. Also note that, since ℓ∈Γε(c∗), we have r≤(1+ε)(1+κ(C∗)+3ε)per(C∗)≤(1+κ(C∗)+6ε)per(C∗). Thus it is valid to add c∗ to OΛ2.
The radius guessing loop continues if and only if there is still some c∗∈OB with ℓ∈Γε(c∗); each required outcome has probability 1/2. Each dummy is matched to a distinct center, preserving invariant (I). Once all these centers have been moved to OΛ2, we break the radius guessing loop and delete ℓ on line 2.18.
Every cluster that lost a satellite during this outer iteration has now been moved to OΛ2. No center in LX was deleted. This proves invariant (II) at the end of the iteration. Throughout its processing, ∣L−∣≤∣L∖LX∣≤s0 and ∣Λ2∣≤∣O2∣≤s0, so all the required iterations satisfy the size checks.
We now prove (c). In each phase, a good iteration is skipped precisely when the corresponding cost bound holds. Otherwise, it deletes at least one previously undeleted center of L∖LX. Since there are at most s0 such centers, either the bound holds before the phase ends, or all these centers have been deleted by its end. In the latter case, both sums are zero, since then invariant (II) and the definition of OX give
Γ(OB)⊆L∖(LX∪L−)=∅.
Thus each phase establishes its required bound. The first bound continues to hold during the second phase because OB only shrinks.
Each random choice has a success probability of at least ε4, and the total number of random choices is at most O(s0). The bound on the number of random choices comes from the range of j and the fact that random choices in the dummy guessing while loop (Line 2.9) are accompanied by increases to ∣Λ2∣+∣L−∣ which is bounded by 2s0. Hence, the probability of a good event happening every time it is possible is at least exp{−O(s0log(ε−1))}. This completes the proof of Theorem 4.9.
5 Reduction to Submodular Maximization: Proof of Theorem 3.4
Recall that we have L′⊆L, whose centers have been colored red/blue. Our desired solution is to add OΛ∪OP to L′ and drop a set Z∗⊆L′∖Lσ (which is also contained in Lred′, by the color-coding) of size z:=(∣L′∣+∣OΛ∪OP∣−k)+ from it, to get the target solution
M∗:=(L′∖Z∗)∪OΛ∪OP.
(z)
This is computationally intractable; however, we now use submodular maximization to find a set Y to add, and Z⊆Lred′ with ∣Z∣=z to drop, such that the solution T:=(L′∖Z)∪Y satisfies
cost(T)≤(1−1/e)cost(M∗)+1/ecost(MΛ∗)+εopt,
for an “intermediate” solution MΛ∗:=(L′∖Z∗)∪Λ. We finally bound the expression on the right, thereby finishing the proof of Theorem 3.4.
5.1 The Submodular Function: Definition and Optimization
To define the “improvement” function f, we begin with some helper functions:
The first function g1 is simply the cost
(g_{1})
g1(Y):=cost(M′∪Y).(28)
Recall that M′:=L′∪Λ. The function g1 is monotone non-increasing and supermodular due to Corollary B.2.
This function has the minimum-of-minimum form given in Claim B.5, and hence is monotone supermodular. Also, given any Y, the function is efficiently computable, since it involves picking the smallest z entries.
Finally, define g(Y)=g1(Y)+g2(Y) and f(Y)=g(∅)−g(Y). It follows that f is monotone non-decreasing, non-negative, submodular; moreover, it is efficiently computable on any Y. We now show that the function f can be approximately maximized with constraints that render the dummy centers in Λ redundant.
Lemma 5.1. There exists a polynomial time algorithm that, given values z and ∣OP∣, outputs a set Y⊆F such that
(a)f(Y)≥(1−1/e)f(OΛ∪OP),
(b) ∣Y∣≤∣Λ∣+∣OP∣, and
(c) ∣Y∩(F∩B(ℓλ,rλ))∣≥1 for all λ∈Λ.
Proof. We want to find a (1−1/e)-approximation of the submodular function f according to constraints enforcing opening one center per “dummy ball,” while also allowing OΛ∪OP as a feasible solution. To do this formally, we work in a lifted space. Let U⊆F×(Λ∪{⊥}) be defined as follows:
• for each λ∈Λ, (c,λ)∈U if and only if c∈F∩B(ℓλ,rλ), and
• (c,⊥)∈U for all c∈F.
Define the projection map proj : U→F, given by proj( c,x) = c for any (c,x)∈U; this naturally extends to proj( Y) := {proj(c,x)∣(c,x)∈Y}. We define the lifted function f↑:2U→R≥0 where, for Y⊆U, f↑(Y)=f(proj(Y)). By Claim B.6, f↑ is monotone non-decreasing, non-negative, submodular; moreover, since both f and the projection operator are efficiently computable, we get the same for f↑.
We now define our partition matroid H(U,H). A set Y⊆U belongs to H (i.e., is an independent set of the matroid), if (1) for each λ∈Λ, there is at most one (c,λ)∈Y, and (2) there are at most ∣OP∣-many (c,⊥)∈Y. Since H is a (partition) matroid, we can approximately maximize f↑ over H.
Crucially, note that we defined Λ so that, for each λ∈Λ, we have d(φ−1(λ),ℓλ)≤rλ; i.e., φ−1(λ)∈B(ℓλ,rλ). Define the set O:={(φ−1(λ),λ)∣λ∈Λ}∪{(c∗,⊥)∣c∗∈OP}; observe that O∈H (and is, in fact, a matroid base), and moreover, f↑(O)=f(proj(O))=f(OΛ∪OP). Hence, applying the algorithm of [CCPV11], we can efficiently compute a base Y∈H such that
We output Y:=proj(Y), so Equation (30) immediately implies property (a). Moreover, the fact that Y is a base of H means that there is exactly one (c,λ)∈Y for each λ∈Λ. Then, each such c belongs to proj(Y)=Y, so property (c) is satisfied as well. Finally, since there are at most ∣OP∣-many (c,⊥)∈Y, we also have property (b).
5.2 A k-Median Solution from Submodularity
To get a k-median solution, the overall algorithm is simple:
Guess ∣OP∣ (this determines z since ∣OΛ∣=∣Λ∣ is known). Since ∣OP∣≤s0, we can enumerate the O(s0) guesses and keep the best feasible set produced by the steps below.
Use the algorithm of Lemma 5.1 to obtain a set Y⊆F with the given properties. Expanding the definition of f(⋅)=g(∅)−g(⋅) and rearranging, we get
g(Y)≤(1/e)g(∅)+(1−1/e)g(OΛ∪OP).(31)
32
(f,g)
Let Z be the minimizing set in the definition of g2(Y). Return
(T)
T:=(L′∖Z)∪Y(32)
as the k-median solution. Since ∣Z∣=z=(∣L′∣+∣OΛ∪OP∣−k)+, and ∣Y∣≤∣OP∪OΛ∣, we are guaranteed that ∣T∣≤k.
Lemma 5.2. The cost of the new solution T satisfies:
cost(T)≤g(Y)≤(1/e)⋅g(∅)+(1−1/e)⋅g(OΛ∪OP).
Proof. To bound the k-median cost of the solution T: Lemma 5.1(c) ensures that for any point q in the metric space and any dummy center λ∈Λ, there is a center cλ∈Y satisfying d(q,cλ)≤d(q,λ). Since Y⊆T, we have d(q,T)=d(q,T∪Λ). Now we relate the cost to the constituent portions of g:
For client p∈Mc∈M′ such that the center c belongs to M′∖Z, center c still belongs to T∪Λ. This means d(p,T)=d(p,T∪Λ)≤d(p,M′∪Y); this can be charged to g1(Y).
where we use that Lblue′∪Y⊆T, and the triangle inequality. The sum of the final expression over the clients in ∪c∈ZMc is exactly g2(Y).
Summing, we get cost(T)≤g(Y); the second inequality of Lemma 5.2 follows from (31).
Lemma 5.3. We have g(∅)≤cost(MΛ∗)+O(ε) opt, and g(OΛ∪OP)≤cost(M∗)+O(ε) opt.
Proof. Recall from §3.3 that Z∗⊆L′∖Lσ is a feasible set for the minimization in g2's definition; indeed, we defined Z∗⊆Lred′ and ∣Z∗∣=z. Consequently, choosing it in g2 gives an upper bound:
Moreover, we guaranteed in our color-coding step from §3.3 that πL′∖Z∗(c)∈Lblue′ for all c∈Z∗; therefore d(c,Lblue′)=d(c,L′∖Z∗). Using this fact (and the triangle inequality to infer d(c,S)≤d(c,p)+d(p,S)) in the second sum from (33), and splitting its first sum based on whether the centers belong to Z∗ or not, we get:
Now using Y=∅ and Y=OΛ∪OP, the corresponding first terms are exactly cost(MΛ∗), and at most cost(M∗) respectively. Finally, since Z∗⊆L′∖Lσ, Theorem 3.2(a) implies that the last term is at most 3ε3 opt ≤ε opt, completing the proof.
Proof. For client p, define Φp:=(1−1/e)d(p,M∗)+(1/e)d(p,MΛ∗). First, consider clients in DΛ. Let πO(p)=c∗, and the corresponding cluster be C∗. Since OΛ⊆M∗, we get d(p,M∗)≤d(p,c∗) for any p∈DΛ; moreover, the triangle inequality gives d(p,MΛ∗)≤d(p,c∗)+d(c∗,φ(c∗)). In either case, we can use Theorem 3.1(b) to bound
For each client p in DR∪DS, the substitution map sends its optimal center c∗ to some point σ(c∗) in Lσ, which is disjoint from Z∗. Since Lσ⊆M∗∩MΛ∗, we can bound Φp≤d(p,σ(c∗)) for each of these clients. Using Theorem 3.1(d)(i) gives
p∈DS∑Φp≤(1+η)costO(DS)+O(ε)opt,(37)
whereas Theorem 3.1(d)(ii) and the triangle inequality give
Summing (35)-(38) completes the proof of the lemma.
Combining Lemma 5.2 and Lemma 5.3 gives the first inequality in Theorem 3.4. The second inequality follows from Lemma 5.4, which wraps up this section.
6 Local Search Revisited: Proof of Theorem 3.6
Next, we prove the nuanced local-search guarantee in Theorem 3.6, which shows that if we have a cross-free pair (L,μA), (B,μB) with respect to D0, where L is a solution to local-search with O(1/ε)-swaps, and B is a benchmark solution, then the cost of the local-search solution (using the nearest-center map πL) can be related to the cost of the clustering μB, plus the gap between the costs of μA and πL (plus lower order terms).
Theorem 3.6 (Refined Local Search Bound). Let (D∪F,d) be an instance of k-median and ε>0. Let L⊆F with ∣L∣=k be a solution for local search with O(1/ε)-sized swaps, and let B⊆F be another benchmark solution. Given arbitrary assignments μA:D→L, μB:D→B and a subset D0⊆D such that (i)∣B∣+∣μA(D∖D0)∣≤k and (ii) the pair (L,μA),(B,μB) is cross-free with respect to D0, the clustering induced by the local-search solution (L,πL) has cost
It will be useful to recall the definition of generalized cross-freeness (see Figure 5):
Definition 3.5 (Generalized Cross-Freeness). Given a pair of clusterings A,B of D, and a subset D0⊆D, define A′:={A∈A∣A⊆D0} to be the clusters completely contained within D0, and D0:=∪A∈A′A to be the points in these clusters. Now let B′:={B∩D0∣B∈B} be the restrictions of these clusters of B to the clients in D0. The clusterings A and B are cross-free with respect to D0 if A′ and B′ are cross-free.
Consider the clusterings A,B of D induced by (L,μA),(B,μB); since they are cross-free with respect to D0, Definition 3.5 tells us that induced clusterings A′,B′ of the subset D0:=∪A∈A′A are cross-free. (Both A′,B′ are partitions of D0, though both of them may contain one or more empty sets.) Define A′:=L∖μA(D∖D0) to be the centers of clusters in A′. Assumption (i) from Theorem 3.6 along with ∣A′∣+∣μA(D∖D0)∣=k means ∣B∣≤∣A′∣.
Call a cluster K⊆D0 belonging to either of the clusterings A′, B′ dominating if it is non-empty and a disjoint union of clusters of the other clustering; let the refinement map Π(K) denote the clusters in the other clustering that partition K. A non-empty cluster is dominated if it is contained within a cluster of the other clustering. Cross-freeness implies that a cluster from A′ or B′ is empty, dominating, or dominated. A cluster that is both dominating and dominated is called paired; such a cluster is non-empty and exists in both clusterings. A non-paired dominating cluster is called strictly dominating. Let Bpair′=Apair′ be the paired clusters; let Astdom′ and Bstdom′ be the strictly dominating clusters in A′ and B′ respectively. Observe that the clusters in Apair′⊔Astdom′⊔Bstdom′ form a partition of D0=⋃A∈A′A.
Overloading notation, for any collection of dominating clusters A′′⊆Astdom′, we define Π(A′′):=⋃Ac∈A′′Π(Ac), and define Π(B′′) similarly for B′′⊆Bstdom′. We partition Astdom′=Abig′⊔Asmall′ into big and small clusters, where Abig′ contains clusters that dominate at least 2/ε clusters in B′. Finally, let the nearest-center map πL for the local search solution L induce the clustering L={Cc}c∈L.
6.1 A Graph Theoretic Abstraction
In this section we define a graph theoretic abstraction of the problem of constructing a suitable collection of swaps for our local search analysis. We then prove that the existence of “spanning collections” of graph swaps implies the existence of collections of k-median swaps that certify the nuanced local-search guarantees from Theorem 3.6. We finally show how to construct such a spanning collection of graph swaps in Lemma 6.2.
Suppose we have a bipartite graph G=(L,R,E), where n=∣L∣=∣R∣, and G is a disjoint union of stars, and has no isolated vertices. Call a vertex v∈L∪R a leaf if it is the leaf of some star and a hub otherwise. For stars made up of a single edge, we consider both vertices to be leaves. Call a star component in G a left-star if its hub belongs to L and a right-star otherwise. Let HL⊆L and HR⊆R denote the sets of hubs of left and right stars, which are called left-hubs and right-hubs, respectively. For a vertex v, let N(v) denote its neighbors in G; for a set S of vertices which belongs to the same side of the bipartition, let N(S)=∪v∈SN(v). For a hub v, let S(v)=N(v) denote the leaves of its star. The star centered at v is big if ∣S(v)∣≥2/ε, and small otherwise. For L′⊆L and R′⊆R with ∣L′∣=∣R′∣, call the pair (L′,R′) a swap.
Definition 6.1 (Spanning Collections of Swaps). A collection S={(L1,R1),(L2,R2),⋯} of swaps is spanning if the following properties hold:
(a) For each swap (Li,Ri)∈S: ∣Li∣=∣Ri∣≤12/ε.
(b) If vertex v∈Li, then N(v)⊆Ri.
(c) Except for hubs of large left stars, each other vertex appears in some swap in S.
(d) For each hub on the left or leaf on the right—i.e., for each vertex v∈HL∪(R∖HR)—there exists at most one swap (Li,Ri)∈S with v∈Li∪Ri.
Intuitively, L and R will correspond to some of the centers in A′⊆L and B respectively; a swap (Li,Ri) will correspond to closing down centers at Li and opening those at Ri, which is why we want ∣Li∣=∣Ri∣ and this size to be bounded. We want clients near centers in Li to have a new center close-by, which is why we ask for N(Li)⊆Ri. All leaves should appear in some swap, since that allows us to bound the quality of local-search solutions. Finally, we require left-hubs to appear in at most one swap; this allows us to compare the costs of nearest-facility and custom assignments.
The following lemma shows the existence of a distribution over spanning collections of swaps such that each leaf appears in slightly more than one swap in expectation.
Lemma 6.2. There exists a distribution D over spanning collections of swaps such that each leaf v∈L∖HL appears in at most (1+8ε) swaps in expectation. Formally, we have
ES∈D(Li,Ri)∈S∑1{v∈Li}≤(1+8ε).(39)
Before we prove Lemma 6.2, let us use it to prove Theorem 3.6.
6.2 Proving the Local Search Guarantee
Proof of Theorem 3.6. Given a cross-free pair (L,μA), (B,μB) with respect to D0 and corresponding clusterings A′ and B′, we can define the associated intersection graph on (A′,B), with an edge (c,c∗)∈A′×B if Ac∩Bc∗=∅. The two sides use distinct copies of any common center.
We have two issues to address before being able to apply Lemma 6.2. Some clusters might be empty— Bc∗∈B′ are restrictions of clusters to the points in D0, and Ac∈A′ can be empty to begin with—so the graph might have isolated vertices. Moreover, we might have ∣A′∣>∣B∣. To address these issues, we add some auxiliary vertices: add ∣A′∣−∣B∣ right vertices, then add left super-vertices ℓ1,ℓ2 and right super-vertices r1,r2. Connect every pre-existing isolated right-vertex to ℓ1 and every pre-existing isolated left-vertex to r1. Also add the edges (ℓ1,r2) and (r1,ℓ2). The resulting graph G=(L,R,E) has equal sides and is a disjoint union of stars without isolated vertices, so Lemma 6.2 applies.
Consider any swap in the graph (Li,Ri)∈S. Discard all auxiliary vertices contained in Li and Ri to obtain a pair (Ai′,Bi) with Ai′⊆A′ and Bi⊆B; define the candidate solution to be Ltest:=(L∖Ai′)∪Bi. By Definition 6.1(b), if ℓ1 or ℓ2∈Li then r2 or r1∈Ri, respectively. Hence, at least as many auxiliary right-vertices are discarded as left-vertices, and the number of centers ∣Bi∣ being added is at most the number ∣Ai′∣ being deleted, ensuring that the new candidate solution has size ∣(L∖Ai′)∪Bi∣≤k. (If we insist on Ltest having size exactly k, we can add back centers from Ai′,
Figure 6: Local Swaps: the colored boxes show one swap (Ai′,Bi) with 4 centers; the client set Di is precisely ((Ac1∪Ac2∪Ac3∪Ac4)∪Bc4∗)∩D0. Note that clients in Ac5⊆Bc3∗, or in Ac6∖Bc4∗ are not included in Di.
which can only decrease the cost.) Since ∣Ai′∣,∣Bi∣≤∣Li∣=∣Ri∣≤12/ε by Definition 6.1(a), the stopping condition of the local search algorithm ensures
cost(Ltest)≥(1−ε/k)cost(L).(40)
We now give an upper bound on the expression on the left-hand side by defining a “test” assignment of clients to centers in Ltest; in turn, this gives an upper bound for cost(L). To motivate our assignment, we make a few simple observations. (i) For all p∈D, d(p,πL(p))≤d(p,μA(p)), because both are assignments of clients to L, and πL is the nearest-center one. (ii) We can imagine that μB is a poor assignment for clients outside of D0, given the harsh restrictions on ∣B∣. Finally, (iii) our bound is non-trivial only if costμB(D0)≤costL(D0), in which case μB is better than πL on D0 in aggregate. We emphasize that, while the observation (i) holds for each client, the observation (iii) is only an aggregate bound. With these observations in mind, we give our “test” assignment, beginning with the clients assigned to Bi.
(a) By Definition 6.1(b), we have that N(Li)⊆Ri: this means clients belonging to clusters Ac with centers c∈Ai′ can now be assigned to their μB-centers, which have been opened in Bi. There may also be some dominated clusters Bc∗′ such that c∗∈Bi, but the center c of its dominating cluster Ac is not in Ai′: clients in D0 belonging to (the unrestricted) Bc∗ can be “upgraded” to their μB assignment. See Figure 6 for an example of Di. (Although we could also assign the rest of the clients in the cluster Bc∗∖D0 to their μB assignment, we do not—indeed, recall our intuition that such an assignment could actually be a downgrade for clients outside of D0.) Set Di⊆D0 to be the set of clients in either of these two cases:
(b) We augment Di to Di+ by assigning some more clients to their μB centers. Start with Di+=Di. Then for clients p∈D0∖D0 such that p∈Bc∗ and whose restriction Bc∗′∈B′ is strictly dominating or empty, choose a unique index i such that c∗∈Bi and add p into Di+; there exists such a swap since each right vertex appears in a swap; Definition 6.1(c). (We only assign these clients to a single index because costμB(D0)≤costL(D0) is an aggregate bound, not a client-wise one.)
(c) Next, consider clients in D∖Di+ that are assigned to centers in Ai′ in the local-search solution L; call this set Di′:={p∈D∖Di+∣p∈C∈L,c∈Ai′}. Although these clients can no longer be sent to their assignments under πL—those centers are closed—they can still be sent to their assignment under μA. Indeed, if their μA-center had closed, the definition of A′ would put them in D0, so the first case defining Di+ would already apply.
(d) Finally, all remaining clients are sent to their πL assignments.
Before we sum Equation (42) over all swaps in S, we observe that D0⊆∪(Li,Ri)∈SDi+. Indeed, all leaves and all right vertices appear among some swap in S, by Definition 6.1(c). Now each client in D0 appears in some dominated cluster among A′ and B′ (which correspond to leaves), so p appears in some Di+. Additionally, each client p∈D0∖D0 appears in some Di+ by the additional round of client assignments, since B is a partition of D and all right vertices (i.e., centers of clusters in B) appear in some swap. In summary, every client in D0 appears in some Di+, so:
Here we use that ∣S∣≤3k. Indeed, discarding empty swaps, every swap in the construction from Lemma 6.2 contains a right leaf appearing in no other swap. Thus ∣S∣≤∣R∣=∣A′∣+2≤k+2≤3k. Taking expectations gives:
We bound the two expectation terms separately. For the first term, we start by observing that every client p∈D0∖D0 appears exactly once. Indeed, if BμB(p)′ is dominated, its right vertex is a leaf appearing in exactly one swap; otherwise, p appears only in its designated swap. Next, consider a client p∈D0, and let Ac∈A′ and Bc∗′∈B′ be its clusters. If Ac is strictly dominating, then c∗ is a right leaf. Whenever c∈Ai′, condition (b) gives c∗∈Bi, so p∈Di exactly when c∗∈Bi; this occurs in exactly one swap. If the two clusters are paired, their centers are leaves and appear together in exactly one swap, by Definition 6.1(b)–(d). Otherwise, Bc∗′ is strictly dominating and c is a left leaf. Then p∈Di exactly when c∈Ai′, which occurs in at most (1+8ε) swaps in expectation by Lemma 6.2. Thus every client in D0 belongs to at most (1+8ε) sets Di+ in expectation, giving
This bounds the first expectation in (43). To bound the second expectation, a client p∈D belongs to Di′ only if it belongs to a local-search cluster C∈L whose center c lies in Ai′. If c is a hub of a left-star (center of a dominating cluster Ac∈A′), then by Definition 6.1(d), p∈Di′ for at most one swap. If instead c is a left-leaf (i.e., the center of a dominated cluster Ac∈A′ or an originally isolated node), then p∈Di′ only if c∈Ai′, and we can again use Lemma 6.2. Overall:
Observe that the inequality (★) relies on each of the terms d(p,μA(p))−d(p,L) being non-negative; this holds since d(p,μA(p)) is the distance to some center in L, whereas d(p,L) is the distance to the closest such center. Combining Equations (43), (44) and (46) gives
Since cost(L)≤cost(μA), the additional term is O(ε)cost(μA). Rearranging gives the desired result.
6.3 Constructing the Distribution over Swap Collections
We show how to construct the swap collections satisfying Lemma 6.2. The intuition is quite natural: to ensure conditions (a) and (b) of Definition 6.1, we force hubs of large left-stars to not appear in any swaps. We compensate for their lack by allowing leaves on the left to appear more than once. Indeed, conditions (c) and (d) mean that leaves on the left are the only left-vertices that may appear in multiple swaps. Since at most ε fraction of the nodes on the left can be left-hubs of large stars, it is intuitive that left leaves appear ≈1+ε times in expectation. However, implementing this idea requires some care, as we now see.
Since we can handle single edges {u,v} using swaps ({u},{v}) of unit size, let us focus on the case where each star has at least 2 leaves. We additionally assume that ∣L∣=∣R∣>12/ε, else the collection {(L,R)} consisting of a single swap has all of the required properties. Hence, we have at least 6/ε leaves on both the left and right, since each star has at least two leaves. Since ∣L∣=∣R∣, we get
We begin by defining a partition ΛR of right-leaves R∖HR into pieces of size between 1/ε and 3/ε. Then we iteratively match these pieces to subsets of left leaves via a randomized matching process.
For each hub v of a big left-star, partition its right-leaves S(v) arbitrarily into sets of size between 1/ε and 2/ε. (This can be done by greedily forming sets of size 1/ε, adding the remainder of size less than 1/ε to the final greedily computed set of size 1/ε.) Add each such set to ΛR.
Next, for remaining hubs of small left-stars v (with 1<∣S(v)∣<2/ε), greedily form sets of size between 1/ε and 3/ε by taking unions of their right-leaves S(v). Add each such set to ΛR. (In the edge case that the total number of remaining leaves is less than 1/ε, merge into the last formed set—this is possibly a set containing the leaves of a big star. If the combined size is at least 3/ε, split it into two sets of size at least 1/ε while keeping right-leaves belonging to the same star in the same set.)
Combined, these two steps yield the partition ΛR of the right leaves. (Note that if there are no big left-stars, our assumption that ∣L∣=∣R∣>12/ε ensures at least 6/ε leaves, so the second step then still outputs a valid partition.) For each Z∈ΛR, define its hub set
H(Z):={v∈HL∣S(v)⊆Z,∣S(v)∣<2/ε}(48)
to be the set of hubs of small left-stars with all leaves in Z. The swap (Li,Ri) involving Z will include Z⊆Ri and H(Z)⊆Li. Define the deficit of Z to be
def(Z):=∣Z∣−∣H(Z)∣.(49)
For a swap (Li,Ri) with Z⊆Ri (and hence H(Z)⊆Li), this deficit def(Z) is the difference between the number of vertices that Z contributes to Ri and Li.
We will randomly match sets Z∈ΛR with sets of leaves on the left. (Note that all small left hubs are already accounted for by the inclusion of H(Z).) For Y⊆L∖HL, we define a complementary notion of excess. Define
H(Y):={w∈HR∣S(w)∩Y=∅}(50)
to be the set of hubs of right-stars with any of their leaves in Y. Any swap (Li,Ri) with Y⊆Li must include H(Y)⊆Ri. Then, the excess of Y is the difference between the number of vertices Y contributes to Li and Ri, i.e.,
ex(Y):=∣Y∣−∣H(Y)∣.(51)
All of our swaps will be of the form (Y∪H(Z),Z∪H(Y)), where Y⊆L∖HL and Z∈ΛR: ensuring that ∣Y∪H(Z)∣=∣Z∪H(Y)∣ is equivalent to def(Z)=ex(Y). Moreover, since Lemma 6.2 requires minimizing occurrences of left leaves in swaps, we want to maximize the excess contributions from Y⊆L∖HL. As such, we want to minimize the number of times hubs of right-stars must appear, and hence to pack their leaves as efficiently as possible. Our algorithm to match all the Z∈ΛR to sets Y⊆L∖HL appears as Algorithm 3.
Algorithm 3: CreateSwaps
3.1 order the leaves within each right-star
3.2 order right-stars and concatenate their left-leaf lists into a sequence y0,…,yb−1, where b=∣L∖HL∣.
3.3 order the Z′s in ΛR arbitrarily.
3.4 choose a uniform random starting offset r0∈{0,…,b−1}.
3.5 initialize index r←r0.
3.6 foreach Z∈ΛR do
3.7 take shortest consecutive block Y={yr,yr+1,…} such that ex(Y)=def(Z)
3.8 set r←r+∣Y∣(modb)
3.9 add swap (Y∪H(Z),Z∪H(Y)) to S.
6.4 Proving the Swap Properties
Claim 6.3. For any index r∈{0,1,…,b−1} and any set Z∈ΛR, there exists a consecutive block Y beginning at r with ex(Y)=def(Z). Moreover, ∣Y∣≤∣Y∪H(Z)∣=∣H(Y)∪Z∣<7/ε≤12/ε.
Proof. Let w0∈HR be the hub of the right-star corresponding to leaf yr∈S(w0), and let S′(w0) be the subsequence of S(w0) starting at index r. Then, w0's star can contribute any value between 0 and ∣S′(w0)∣−1 to the excess of Y by taking a consecutive block of its leaves. If def(Z)≤∣S′(w0)∣−1, we are done. If the next right hubs are ordered w1,w2,…, then each such star can contribute any value v between 0 and ∣S(wi)∣−1≥1 to the excess of Y, while contributing v+1 leaves. In the worst case, ∣S′(w0)∣=1, and each subsequent ∣S(wi)∣=2, which would cause us to need 1+2def(Z) new leaves before reaching ex(Y)=def(Z). By construction, each Z∈ΛR has ∣Z∣<3/ε, so def(Z)≤∣Z∣<3/ε, and hence 1+2def(Z)<6/ε. Since we have at least 6/ε left leaves, this ensures such a Y exists. To prove the second part of the claim, note that ∣Y∪H(Z)∣≤1+2def(Z)+∣H(Z)∣≤2∣Z∣+1<7/ε≤12/ε.
Claim 6.4. The index r wraps back to r0 over the course of the swap creation, and hence every leaf on the left belongs to a swap.
Proof. By definition of H(Z), we know that the sum of the deficits in ΛR is
To see inequality (★), use that each left-star either is small and includes its hub in one H(Z), or else it is big and its hub never appears in any H(Z). On the other hand, ∑w∈HR(∣S(w)∣−1) is the maximum possible total excess of the Y sets created if r iterates all the way back to r0, and covering a smaller region of the cycle would give a smaller total excess. (Indeed, this maximum contribution is also only achievable if each right-hub is opened exactly once; each right hub needs to be opened at least once to ensure Definition 6.1(c).) Since the sum of the excesses must equal the sum of the deficits, this means the counter must wrap around.
We claim that the random set S is a spanning collection of swaps satisfying Lemma 6.2. For any (Li,Ri)∈S, let Li=Yi∪H(Zi), and Ri=H(Yi)∪Zi. To verify the conditions of Definition 6.1:
(a) ∣Li∣−∣Ri∣=exp(Yi)−def(Zi)=0 by construction; Claim 6.3 shows that ∣Li∣≤12/ε.
(b) Our construction ensures that N(H(Zi))⊆Zi, and N(Yi)=H(Yi), which ensures that N(Li)⊆Ri; this is exactly why we did not include hubs of large left-stars in H(Zi).
(c) Each right leaf is contained in some Z∈ΛR; the hub of a small left star appears in H(Z) when Z contains its leaves. Claim 6.4 shows that each leaf on the left is matched to some Z during the algorithm, and hence belongs to some Y; this means its hub on the right appears in H(Y).
(d) Each right leaf appears in a unique Z∈ΛR; if it belongs to a small left-star, then the left-hub belongs to only that H(Z). Large left-hubs do not appear in any swaps.
Finally, we prove that each leaf in L belongs to at most (1+8ε) swaps in expectation. The idea is natural: using a complementary argument to that in Claim 6.4, we show that the counter r does not go much further after completing a full cycle. Let Δ:=∣R∖HR∣−∣HL∣=∣L∖HL∣−∣HR∣. Since for all hubs v∈HL of a small left-star, v∈H(Z) for some Z∈ΛR by construction, we can bound the total deficit Dtotal:=∑Z∈ΛRdef(Z) from above as follows:
The first inequality uses that each big left-star has at least 2/ε leaves, so there are at most (ε/2)∣R∖HR∣ big left-hubs forming the set HL,big; the second inequality uses that ∣R∖HR∣≥2∣HL∣, which implies ∣R∖HR∣≤2Δ.
We now give a lower bound on the total excess—i.e., the sum of exp(Yi)—over the blocks Y1,…,Ym formed during the first cycle of the index r around the b=∣L∖HL∣ left-leaves. For this calculation, if the last block crosses the end of the first cycle, truncate Ym at that point. By construction, each Z∈ΛR has ∣Z∣≥1/ε; since each small left-star has at least two leaves, ∣H(Z)∣≤∣Z∣/2, and hence every deficit satisfies def(Z)≥1/(2ε). Since the sum of all deficits is Dtotal≤(1+ε)Δ, the total number of sets in ΛR (and in particular the number of blocks m in the first cycle) is at most
m≤∣ΛR∣≤1/(2ε)Dtotal≤2ε(1+ε)Δ.(54)
As r completes a single cycle, the blocks Y1,…,Ym cover all ∣L∖HL∣ left-leaves exactly once. Moreover, since each right-star w∈HR appears as a contiguous interval of leaves in the cyclic ordering, a right-hub w appears in multiple H(Yi) sets only when a boundary between consecutive blocks, or the starting offset, falls strictly inside S(w). There are at most m such boundaries in total, and each boundary splits at most one right-star, contributing at most 1 extra hub appearance across all m blocks. Therefore, ∑i=1m∣H(Yi)∣≤∣HR∣+m, and the total excess generated in the first cycle is at least
Let Λrem⊆ΛR denote the remaining unprocessed sets after the first cycle of r, excluding the set corresponding to the possibly unfinished block. Since ex(Yi)=def(Zi) for each completed block, the remaining deficit to be covered, including the unfinished part of the last block, is at most
By Claim 6.3, each remaining block YZ requires at most ∣YZ∣≤1+2def(Z) leaves. The same bound holds for the unfinished block, with its deficit replaced by its remaining deficit: each newly encountered right-star except possibly the last contributes at least two leaves, and a hub already encountered in its prefix contributes no new hub appearance within that block. Since def(Z)≥1/(2ε) for each Z∈Λrem, we have
∣Λrem∣≤2ε(Dtotal−i=1∑mex(Yi)).
Summing over the remaining blocks and including the possibly unfinished block, the total number of left-leaf visits after the first cycle is at most
where the last inequality uses ε≤1/200, Δ=∣L∖HL∣−∣HR∣, and ∣L∖HL∣≥6/ε. In conclusion, all visits after the first cycle lie among the first [8εb] leaves starting at r0. This is of course at most b, so no leaves appear more than twice. Moreover, the probability a leaf is covered twice is at most the probability it appears in the first 8ε fraction of leaves in the ordering. This probability is in turn at most 8ε since r0 is a uniform random starting offset in the cyclic ordering of left-leaves. This implies that each left leaf belongs to at most (1+8ε) swaps in expectation for (Li,Ri)∈S, completing the proof of Lemma 6.2.
References
[ABS10] Pranjal Awasthi, Avrim Blum, and Or Sheffet. Stability yields a PTAS for k-median and k-means clustering. In Proceedings of the 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, FOCS '10, pages 309–318, USA, 2010. IEEE Computer Society.
[AGK +04] Vijay Arya, Naveen Garg, Rohit Khandekar, Adam Meyerson, Kamesh Munagala, and Vinayaka Pandit. Local search heuristics for k-median and facility location problems. SIAM Journal on Computing, 33(3):544–562, 2004.
[BCAF +26] Rares-Darius Buhai, Vincent Cohen-Addad, Henry Fleischmann, Anupam Gupta, Antoni Jubés Monforte, Madhusudhan Reddy Pittu, Miltiadis Stouras, Ola Svensson, and Lukas Vogl. A better-than-2 approximation for k-median part i: The power of general bids. CoRR, 2026.
[BGH +26] Jaroslaw Byrka, Yuhao Guo, Yang Hu, Shi Li, Chengzhang Wan, and Zaixuan Wang. k-clustering via iterative randomized rounding. CoRR, abs/2604.06046, 2026.
[BPR +17] Jarosław Byrka, Thomas Pensyl, Bartosz Rybicki, Aravind Srinivasan, and Khoa Trinh. An improved approximation for k-median and positive correlation in budgeted optimization. ACM Trans. Algorithms, 13(2), March 2017.
[CCPV11] Gruia Calinescu, Chandra Chekuri, Martin Pál, and Jan Vondrák. Maximizing a monotone submodular function subject to a matroid constraint. SIAM Journal on Computing, 40(6):1740–1766, 2011.
[CGH +22] Vincent Cohen-Addad, Anupam Gupta, Lunjia Hu, Hoon Oh, and David Saulpic. An improved local search algorithm for k-median. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1556–1612. SIAM, 2022.
[CGK +19] Vincent Cohen-Addad, Anupam Gupta, Amit Kumar, Euiwoong Lee, and Jason Li. Tight FPT approximations for k-median and k-means. In ICALP, pages 42:1–42:14, July 2019.
[CGL +25] Vincent Cohen-Addad, Fabrizio Grandoni, Euiwoong Lee, Chris Schwiegelshohn, and Ola Svensson. A (2+ε)-approximation algorithm for metric k-median. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC '25, pages 615–624, New York, NY, USA, 2025. Association for Computing Machinery.
[CGLS23] Vincent Cohen-Addad, Fabrizio Grandoni, Euiwoong Lee, and Chris Schwiegelshohn. Breaching the 2 LMP approximation barrier for facility location with applications to k-median. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 940–986. SIAM, 2023.
[CGTS99] Moses Charikar, Sudipto Guha, Éva Tardos, and David B. Shmoys. A constant-factor approximation algorithm for the k-median problem (extended abstract). In Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, STOC '99, pages 1–10, New York, NY, USA, 1999. Association for Computing Machinery.
[CL12] Moses Charikar and Shi Li. A dependent LP-rounding approach for the k-median problem. In International Colloquium on Automata, Languages and Programming, 2012.
[CS17] Vincent Cohen-Addad and Chris Schwiegelshohn. On the local structure of stable clustering instances. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 49–60, 2017.
[GK98] Sudipto Guha and Samir Khuller. Greedy strikes back: Improved facility location algorithms. In Howard J. Karloff, editor, Proceedings of the Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, 25-27 January 1998, San Francisco, California, USA, pages 649–657. ACM/SIAM, 1998.
[GPST23] Kishen N Gowda, Thomas Pensyl, Aravind Srinivasan, and Khoa Trinh. Improved bi-point rounding algorithms and a golden barrier for k-median. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 987–1011. SIAM, 2023.
[JMM +03] Kamal Jain, Mohammad Mahdian, Evangelos Markakis, Amin Saberi, and Vijay V. Vazirani. Greedy facility location algorithms analyzed using dual fitting with factor-revealing LP. J. ACM, 50(6):795–824, November 2003.
[JMS02] Kamal Jain, Mohammad Mahdian, and Amin Saberi. A new greedy approach for facility location problems. In Proceedings of the Thirty-Fourth Annual ACM Symposium on Theory of Computing, STOC '02, pages 731–740, New York, NY, USA, 2002. Association for Computing Machinery.
[JV01] Kamal Jain and Vijay V. Vazirani. Approximation algorithms for metric facility location and k-median problems using the primal-dual schema and Lagrangian relaxation. J. ACM, 48(2):274–296, March 2001.
[LS13] Shi Li and Ola Svensson. Approximating k-median via pseudo-approximation. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing, STOC '13, pages 901–910, New York, NY, USA, 2013. Association for Computing Machinery.
[Ope26a] OpenAI. Single-exponential recovery and bounded-price strictness for metric k-median. OpenAI Math Release preprint OAI:Single-Exponential-Recovery-and-Bounded-Price-Strictness-for-Metric-k-Median-September-24-2026, 2026.
[Ope26b] OpenAI. The approximation threshold for metric k-median. OpenAI Math Release preprint OAI:The-Approximation-Threshold-for-Metric-k-Median-September-24-2026, 2026.
[ORSS12] Rafail Ostrovsky, Yuval Rabani, Leonard J. Schulman, and Chaitanya Swamy. The effectiveness of Lloyd-type methods for the k-means problem. J. ACM, 59(6):28:1–28:22, 2012.
A Proofs for the Local-Search Guarantee
We now prove Lemma 3.7 showing the existence of a nice cross-free pair:
Lemma 3.7 (A “Nice” Cross-Free Pair). Let B:=OΛearly∪OR and D0:=DΛearly∪DR. Then there exist mappings μA:D→L,μB:D→B such that the associated clusterings (A,B) form a cross-free pair with respect to D0 and ∣B∣+∣μA(D∖D0)∣≤k. Moreover,
We start by recalling from Theorem 3.1(d), parts (ii) and (iii), which ensure that any c∗∈OR satisfies σ(c∗)∈Γ(c∗)—i.e., its substitute belongs among its satellites—and also the preimage of σ(c∗) under σ is exactly c∗. Using these properties, we define a “reverse” map h:Γ(OR)→OR:
• If c=σ(c∗) for some c∗∈OR, then h(c)=c∗.
• Else, let h(c) be any c∗ such that c∈Γ(c∗).
Since a local search center can be a satellite for several centers in OR, the map h allows us to associate each satellite to an optimal center in some canonical way. Our assignments will also carefully treat clients in D0 belonging to some satellite cluster; define
DΓ:={p∈D0:πL(p)∈Γ(OR)}⊆D0.
(D_{\Gamma})
We can now define assignment maps μB and μA.
Map μB: We describe μB in two parts: assignments of clients in D0 and assignments of clients outside of D0.
(B1) Reassign the clients p∈DΓ as follows: For each center c∈Γ(OR), and for any client p∈D0 with πL(p)=c, define μB(p):=h(c)∈OR.
(B2) For clients p∈D0∖DΓ, maintain μB(p)=πB(p), the nearest-center mapping for B. (Notice that, for these clients, μB(p)=πO(p).)
(B3) For clients p∈D∖D0, assign the client to B arbitrarily. The assignment will not be relevant.
In words, the centers in OR “absorb” clients in DΓ in their satellites’ clusters; if a local search center is a satellite for multiple optimal centers, it chooses one according to the map h. Let B be the clustering associated with (B,μB).
Map μA: The approach to define μA is similar to that of the standard local search argument from Corollary 1.5, but with some additional care. Since each center c∗∈OR satisfies h(σ(c∗))=c∗, its cluster in the clustering B has absorbed the D0-clients from cluster Cσ(c∗)—and perhaps others—into its cluster in O. It may also have lost clients due to other satellites intersecting C∗ but being absorbed elsewhere. The clusters centered at OΛearly only lose clients in D0.
We now define μA as follows:
Figure 7: Left: the map μB on clients in D0. The top four clusters correspond to OR and absorb D0-clients from the satellites (with the absorbed local search clusters shown in grey), whereas the rest of the clusters only lose clients. Right: the map μA on clients in D0. Each distinct color is a cluster of A; the clusters of B corresponding to OR dominate the clusters in A, whereas clusters of A are dominating for the remainder centered in OΛearly.
(A1) For a center c∗∈OΛearly with corresponding cluster C∗∈O, let center c be the “non-satellite” local search center closest to c∗ in L∖Γ(OR). For all points p in C∗∖DΓ, define μA(p)=c.
(A2) For center c∗∈OR with clusters Bc∗∈B and C∗∈O, do the following: For each client p in Bc∗∩DΓ—i.e., a client in D0 from a satellite cluster absorbed by Bc∗—maintain μA(p)=πL(p). For any other client p in C∗∖DΓ, define μA(p)=σ(c∗).
(A3) For c∗∈OS with C∗∈O, for all p∈C∗ define μA(p)=σ(c∗).
(A4) For the remaining centers c∗∈O∖(OΛearly∪OR∪OS)=OP∪OΛlate with cluster C∗∈O, let c be the closest local search center to c∗. For all p∈C∗, define μA(p)=c.
This defines the clustering A; the cluster around center c∈L is denoted Ac.
Claim A.1. (A, B) is cross-free with respect to D0 and ∣B∣+∣μA(D∖D0)∣≤k.
Proof. First we show that ∣B∣+∣μA(D∖D0)∣≤k. For this, note that
μA(D∖D0)=πL(OP∪OΛlate)∪σ(OS).
So, ∣B∣+∣μA(D∖D0)∣≤∣OR∣+∣OΛearly∣+∣OP∣+∣OΛlate∣+∣OS∣=∣O∣≤k, as needed.
Now, let A′:={A∈A∣A⊆D0}, D0 the set of points in clusters in A′, and B′:={B∩D0∣B∈B}, as in Definition 3.5. We need to show that A′ and B′ are cross-free. Let Ac∈A′ and Bc∗∈B′ be non-empty, with C and C∗ the corresponding clusters centered at c and c∗ in L and O.
First, suppose c∗∈OΛearly. The cluster Bc∗ is a subset of C∗∖DΓ by construction of μB. (C∗∖DΓ is the restriction of Bc∗∈B onto D0.) The clients in C∗∖DΓ are all sent to the same center c′=πL∖Γ(OR)(c∗) under μA. Then if c=c′, Bc∗⊆Ac and otherwise Bc∗∩Ac=∅.
Otherwise, c∗∈OR. In this case, the cluster Bc∗ is a subset of C∗∪DΓ. The clients in Bc∗ are assigned to centers c∈Γ(c∗) with h(c)=c∗ under μA, so Bc∗ and Ac are trivially cross-free unless c∈Γ(c∗) with h(c)=c∗. But, if c∈Γ(c∗) with h(c)=c∗, then
Ac⊆((C∗∖DΓ)∪(C∩D0))∩D0⊆Bc∗′
by construction of μA. Here we are relying on the fact that Ac⊆D0, since Ac∈A′ is non-empty. This ensures cross-freeness, completing the proof.
Figure 8: Bounding the cost for μB. The dotted balls around each center have radius (1+κ(C∗)+2ε)per(C∗), and the green arrows indicate the mapping h:Γ(OR)→OR. For the center c∗, the yellow balls around centers in Γ(c∗) have radius εper(C∗); the ball around center c has a witness qw∈C∗.
A.2 Bounding Costs
Lemma A.2 (Cost for Clustering B). cosμB(D0)≤cosO(D0)+O(ε) opt.
Proof. Since on D0, assignments πO and μB differ only on the clients in DΓ, consider cluster C∈L with center c∈Γ(OR); let c∗=h(c), and let C∗ be its cluster in O. We now bound d(p,c∗)−d(p,O) for clients p∈C∩D0.
First, consider client pm∈D with minimum distance to center c. Since c is a satellite for c∗, there exists a witness client qw∈C∗ such that d(qw,c)≤εper(C∗). Now, using the fact that pm is the closest client to c, and hence d(pm,c)≤d(qw,c)≤εper(C∗), along with the triangle inequality,
Moreover, parts (b) and (d)(iii) of Theorem 3.2 imply that d(c∗,c)≥ηavgO(C∗)≥1+2εηper(C∗); since d(qw,c)≤εper(C∗), the triangle inequality implies that
where we used the triangle inequality and d(pm,c)≤d(p,c) for the first two inequalities, (61) for the next inequality, and the triangle inequality to infer d(pm,O)≤d(pm,c)+d(c,p)+d(p,O)≤2d(p,c)+d(p,O) for the last inequality. Summing this over all points in DΓ, and using ε≤1/200,
Summing over OΛlate∪OP, the last terms total at most ε4 opt by Theorem 3.2(c).
For c∗∈OΛearly and p∈C∗∖DΓ, the center πL(p) belongs to L∖Γ(OR). Since μA(p) is the center in this set closest to c∗,
d(p,μA(p))≤d(p,c∗)+d(c∗,πL(p))≤2d(p,c∗)+d(p,L).
This totals to at most 2cosO(DΛearly)+cosL(D0∖DΓ). The clients in DΓ retain their local-search assignments. Their cost is then cosL(DΓ).
Finally, for c∗∈OR and p∈C∗∖DΓ, Theorem 3.1(d)(ii) gives
d(p,μA(p))=d(p,σ(c∗))≤d(p,c∗)+(1+ε)per(C∗).
This gives a total contribution of
c∗∈OR∑(costO(C∗∖DΓ)+∣C∗∖DΓ∣per(C∗))+O(ε)opt.
We can replace DΓ here by Dκ, as needed for our result, only incurring an extra O(ε) opt. To see this, consider p∈coreκ(C∗)∖DΓ. We have d(p,L)>εper(C∗), since otherwise πL(p) would be a satellite of c∗ and hence p∈DΓ. Also, d(p,c∗)+per(C∗)≤3per(C∗). Thus the total error from these missing core clients is bounded by
by Theorem 3.2(d)(i). Summing these bounds proves the lemma.
Combining the bounds from Lemmas A.2 and A.3 yields Lemma 3.7.
B Supermodularity of Distance Functions
In this section, we show some functions involving distances from a point to a set of points are super/submodular. We start with a helper claim about supermodularity of minima.
Claim B.1 (Supermodularity of Minimums). Suppose ai∈R≥0 for all i∈U∪Γ. For any X⊆U, define h(X):=mini∈X∪Γ{ai}. Then h is monotone non-increasing and supermodular.
Proof. The function h is monotone non-increasing since we take minima over larger sets. To prove supermodularity, consider X⊆Y and e∈/Y. Let mX and mY be the minima over X∪Γ and Y∪Γ respectively; note that mX≥mY by using monotonicity. Suppose ae≥mY, then we have
h(X)−h(X+e)≥0=h(Y)−h(Y+e),
with the inequality using monotonicity of h. Else we have ae<mY≤mX, and hence
h(X)−h(X+e)=mX−ae≥mY−ae=h(Y)−h(Y+e),
completing the proof of supermodularity.
Corollary B.2 (Distance Supermodularity). For any point p and set of points Γ (which may depend on p), the function h(X):=d(p,X∪Γ) is monotone non-increasing and supermodular.
Proof. Note that d(p,X∪Γ)=mini∈X∪Γd(p,i) and use Claim B.1.
Claim B.3 (Submodularity of Threshold Function). Suppose we have aij∈R≥0 for all i∈U∪Γ and j∈L, and define hj(X)=mini∈X∪Γ{aij}. Then, for any t≥0, the function
NX(t):=∣{j∈L∣hj(X)≤t}∣(63)
is monotone non-decreasing and submodular.
Proof. To prove submodularity, first note that, for any X,
NX(t)=j∈L∑1(hj(X)≤t).(64)
Hence, it suffices to show that 1(hj(X)≤t) is submodular and monotone non-decreasing for each j. For simplicity write h to denote hj and 1(X) to denote 1(h(X)≤t). Since h is monotone non-increasing, 1(X) is monotone non-decreasing. Now fix X⊆Y and e∈/Y. We want to show that
1(X+e)−1(X)≥1(Y+e)−1(Y).
The only way for this inequality to be violated is when 1(Y)=0 and 1(Y+e)=1. The former condition implies 1(X)=0 since 1(⋅) is monotone non-decreasing. Moreover, opening up the definition of h, 1(Y)=0 and 1(Y+e)=1 combined imply that aej≤t. Hence, 1(X+e)=1, completing the proof.
Claim B.4 (Minimum of a Submodular Function and a Constant). Let g be a monotone non-decreasing and submodular function, and let r∈R. Then, f=min{g,r} is also monotone non-decreasing and submodular.
Proof. Since g is monotone non-decreasing, evidently f is as well. Now, for submodularity, consider X⊆Y and e∈/Y. Suppose first that g(Y)≥r. Then, since f is monotone non-decreasing,
f(Y+e)−f(Y)=0≤f(X+e)−f(X).
Otherwise, suppose that g(Y)<r. If g(X+e)≥r, then, again since g is monotone non-decreasing
f(Y+e)−f(Y)=r−f(Y)≤r−f(X)=f(X+e)−f(X).
Finally, suppose that g(Y)<r and g(X+e)<r. Then, by submodularity
f(Y+e)−f(Y)≤g(Y+e)−g(Y)≤g(X+e)−g(X)=f(X+e)−f(X).
Claim B.5 (Minimums of Minimums). Suppose we have aij∈R≥0 for all i∈U∪Γ and j∈L, and hj(X)=mini∈X∪Γ{aij}. Let r∈Z+ with r≤∣L∣. Define
g(X)=R⊆L:∣R∣=rmin{j∈R∑hj(X)}.
Then g is monotone non-increasing, and supermodular.
Proof. Define helper function NX(t):=∣{j∈L∣hj(X)≤t}∣. Then, note that we have
g(X)=∫0∞(r−min{r,NX(t)})dt.(65)
Note that NX(t) is monotone non-decreasing and submodular for any fixed t, by Claim B.3. Hence, r−min{r,NX(t)} is monotone non-increasing. The integral of a monotone non-increasing function is monotone non-increasing, so g is monotone non-increasing.
Since NX(t) is monotone submodular, Claim B.4 implies that min{r,NX(t)} is monotone submodular. Hence, r−min{r,NX(t)} is supermodular for each t, and integrating preserves supermodularity. □
Claim B.6. Let U and U be sets and proj : U→U. For f:2U→R, let f↑:2U→R such that, for X⊆U, f↑(X)=f(proj(X)). Then, if f is monotone non-decreasing and submodular, so is f↑.
Proof. Fix X⊆Y⊆U. Note that this implies that proj(X)⊆proj(Y)⊆U. Hence, f↑(X)=f(proj(X))≤f(proj(Y))=f↑(Y), using that f is monotone non-decreasing.
For submodularity, let e∈U. Using submodularity of f, we have
In this section we prove Lemma 3.9. We recall the statement of the lemma.
Lemma 3.9. Let a=3/25, η=89/100, and ε∈(0,1/200). For each optimal cluster C∗, there exists κ(C∗)∈[1/η−1,1/2] such that (7) holds whenever per(C∗)≥ηavgO(C∗)/(1+ε), and the (a,1−a) convex combination of the two entries in the row of Table 1 containing c∗ is at most 1+η+O(ε).
Proof of Lemma 3.9. Fix an optimal cluster C∗, and abbreviate x=x(C∗), yκ=yκ(C∗), and κ=κ(C∗); recall that
In this notation, (7) is the inequality (2+κ)x≥(2+6ε) and Table 1 is as follows:
L
T
OS
1+η
1+η
OΛearly
3
1+2x/e
OΛlate∪OP
1+x
1+2(1+κ)x/e
OR
2+x−yκ
1+x
Let t be x truncated to the interval [η,1]:
t:=max{η,min{1,x}}.
By (5), x≤1+2ε, so x≤t+2ε.
Increasing κ enlarges the core and improves the residual bound, but increases the late-cluster bound. We set κ to balance these bounds. Specifically, using the convenient bound (1−a)2/e<13/20, we choose κ to make the latter bound tight at t:
at+2013(1+κ)t=η,1+κ=65t89−12t.(66)
Since η≤t≤1, this gives
κ∈[6512,6523]⊆[η1−1,21].
The technical condition. Suppose x≥η/(1+ε). The definition of t then gives t≤(1+ε)x, and hence
where the last inequality uses ε<1/200. This proves (7).
The first three rows. The weighted coefficient in the OS row is exactly 1+η. For the early and late rows, respectively, the weighted coefficients minus 1 satisfy
The residual row. Suppose c∗∈OR. By Theorem 3.2(d)(iii), x≥η/(1+ε). Together with the bounds above, this gives
x=t+O(ε).
The residual coefficient is 1+a+x−ayκ. To control it, we need a lower bound on the core saving yκ. The key observation is that too many clients outside the core would make the average cost too large relative to the percentile.
Let r:=∣coreκ(C∗)∣/∣C∗∣. All but at most ε∣C∗∣ clients have distance at least per(C∗) from c∗, and clients outside the core have distance greater than (1+κ)per(C∗). Dividing the resulting cost bounds by costO(C∗) gives
1≥((r−ε)+(1+κ)(1−r))x,yκ≥(r−ε)x+rx=(2r−ε)x.
The first inequality bounds the core contribution:
rx≥κ(1+κ)x−1−εx.
Substituting into the second yields
yκ≥κ2((1+κ)x−1)−εx(1+κ2)=κ2((1+κ)x−1)−O(ε),
using x≤1+2ε and κ≥12/65. Since x=t+O(ε), we conclude that
1+a+x−ayκ≤1+a+t−κ2a((1+κ)t−1)+O(ε).
It therefore remains to show
a+t−κ2a((1+κ)t−1)≤η.
Our choice of κ gives t=89/(77+65κ). Substituting this expression, multiplying by the positive denominator, and collecting terms reduces the desired inequality to
(21+20001)κ+κ2a2≥2a−20001.
This follows from the arithmetic–geometric mean inequality