Iterative Randomized Rounding for Better-Than-2 k-Median Approximation
Jarosław Byrka, Yuhao Guo, Yang Hu, Shi Li, Yongho Shin, Phanu Vajanopath, Chengzhang Wan, Zaixuan Wang
Abstract
We study the classic k-median problem and refine the iterative rounding framework recently introduced by Byrka, Guo, Hu, Li, Wan, and Wang [8], which yields a (2+ε)-approximation.
Our algorithm opens k+O(1) facilities and achieves an expected connection cost of at most 1.9999 times the value of the standard LP relaxation. Although the numerical improvement over 2 is small, it establishes a conceptual result: the integrality gap of the standard relaxation is strictly below 2 when a constant number of extra facilities is allowed. This partially answers an open question of Li and Svensson [27]. Combined with their reduction, our result yields a 1.9999-approximation algorithm for k-median.
Our approach builds on several technical ingredients. First, we develop a preprocessing routine that makes the LP solution poly(ε)-integral, at the cost of a (1+ε) factor in the connection cost and O(1) extra facilities. Unlike the preprocessing in [8], our conversion is unconditional: it requires no special treatment of clients whose fractional facilities are concentrated. Next, we show that the main rounding algorithm can open facilities one at a time, eliminating the batch processing used in [8]. Finally, the improvement over 2 comes from a tighter analysis for clients whose distances from to its facilities are not all equal, and a complementary algorithm for the case in which these distances are nearly uniform.
AI Disclosure Statement: We used ChatGPT to assist us in the development of various detailed arguments across the paper. We also used Claude to assist us in preparing a presentation of the most technical details of the arguments. The authors verified the correctness and originality of all content, including references.
1 Introduction
In the k-median problem, we are given a set C of clients, a set F of facilities, a metric d on C∪F, and a positive integer k. The task is to open a set O⊆F of at most k facilities and connect every client to its nearest open facility. The goal is to minimize the total connection cost
cost(O)=j∈C∑d(j,O),whered(j,O)=i∈Omind(i,j).
k-median is one of the most basic clustering problems. It has also served as a testbed for many techniques in approximation algorithms, including LP rounding, primal-dual algorithms,
*University of Wrocław, {jby, yongho, phanu.vajanopath}@cs.uni.wroc.pl
§Nanjing University, {shili@, zaixuanwang@smail.}nju.edu.cn greedy algorithms, and local search. The problem is NP-hard, and we focus on polynomial-time algorithms that compute α-approximate solutions for a constant α.
We first review previous results in Section 1.1. We then state our result in Section 1.2, briefly survey further related work in Section 1.3, and give an informal description of our approach in Section 1.4.
1.1 Previous results
Many of the algorithms discussed below use Lagrangian relaxation. They replace the hard constraint of opening at most k facilities with a uniform opening cost for each facility, yielding an uncapacitated facility location problem with uniform opening costs. A Lagrangian multiplier preserving (LMP) α-approximation algorithm for this relaxation returns a solution whose connection cost plus α times its total facility opening cost is at most α times the optimal total cost. Such an algorithm can be used to produce a randomized solution that opens k facilities in expectation and has expected connection cost at most α times the optimal k-median cost. Without loss of generality, this distribution can be supported on at most two solutions; the resulting convex combination is called a bi-point solution.
k-median. The first constant-factor approximation algorithm for k-median was obtained by Charikar, Guha, Tardos, and Shmoys [11]. Their LP-rounding algorithm achieved a factor of 632. Jain and Vazirani [24] then gave a 6-approximation by combining a primal-dual LMP 3-approximation algorithm with a factor-2 rounding of bi-point solutions. Charikar and Guha improved this to 4 [10]. Jain, Mahdian, Markakis, Saberi, and Vazirani [22] gave a greedy LMP 2-approximation, and Arya, Garg, Khandekar, Meyerson, Munagala, and Pandit [4] gave a (3+ε)-approximation based on local search.
Further progress came from better bi-point rounding. Li and Svensson [27] gave a bi-point rounding algorithm with factor (1+3+ε)/2≈1.366+ε/2 that opens k+O(1) facilities. They also introduced a reduction that turns such a pseudo-approximation into a true approximation that opens at most k facilities, with only a multiplicative 1+ε loss. Together, these yielded a (1+3+ε≈1+3≈2.732)-approximation. The bi-point rounding factor was improved further in [9, 20]. Independently, Cohen-Addad, Grandoni, Lee, and Schwiegelshohn [15] gave an LMP algorithm for facility location with factor slightly below 2. These lines of work led to approximation factors of 2.675, 2.67059, and 2.613 [20].
Recently, Cohen-Addad, Grandoni, Lee, Schwiegelshohn, and Svensson [16] avoided the loss from bi-point rounding altogether and obtained a (2+ε)-approximation. They adapted the greedy algorithm of [22] so that it opens only slightly more than k facilities while keeping the factor 2+ε. The number of extra facilities in their approach is O(logn/ε2), which is too large for the reduction of [27]. They therefore developed a separate algorithm for instances whose cost is highly sensitive to the number of open facilities. The work of [8] provided an alternative route to the same factor via iterative randomized rounding of the standard LP relaxation. Its rounding procedure is an LMP 2-approximation for k-median and can be converted into an algorithm that opens k+Oε(1) facilities with only a 1+ε loss.
Factor 2 is a natural barrier for LP-based algorithms. The integrality gap of the standard LP relaxation is at least 2 [27]. However, the known instances establishing this lower bound cease to exhibit a gap of 2 when the integral solution may open k+1 facilities. The reduction of [27] allows algorithms to exploit a constant number of extra facilities.
Euclidean k-median. Stronger guarantees are possible when the clients and facilities lie in a Euclidean space. If the dimension is a fixed constant, the problem admits a polynomial-time approximation scheme [3, 25, 14]. If the dimension is part of the input, the problem is APX-hard. It is NP-hard to approximate within a factor of 1.07, or 1.015 when facilities may be opened anywhere in the space [18, 19]. Under the Johnson Coverage Hypothesis, these bounds increase to 1.27 and 1.08, respectively [19]. On the algorithmic side, Ahmadian, Norouzi-Fard, Svensson, and Ward [1] gave a 2.633-approximation by running the primal-dual algorithm of [24] in a way that respects the cardinality constraint, avoiding the loss of bi-point rounding. Cohen-Addad, Esfandiari, Mirrokni, and Narayanan [13] improved this to 2.406. Both guarantees were later superseded by the (2+ε)-approximation of [16] for general metrics. The coverage-based reduction behind the lower bound of 1+2/e for general metrics does not carry over to Euclidean spaces. Before the concurrent work discussed below, it remained open whether Euclidean k-median admits an approximation factor better than 1+2/e [13].
Hardness of approximation. Jain, Mahdian, and Saberi [23] showed that it is NP-hard to approximate k-median within a factor better than 1+2/e≈1.736. The bound holds in the setting above, where the facilities are given separately from the clients.
1.2 Our results
Theorem 1.1. There exists a randomized polynomial-time 1.9999-approximation algorithm for metric k-median: it returns at most k facilities and its expected cost is at most 1.9999 OPT.
The improvement over the (2+ε)-approximations of [16, 8] is small. It nevertheless shows that factor 2 is not the limit of LP-based rounding, and it identifies the structure of fractional solutions for which the factor-2 analysis of [8] is tight. Before the final reduction of [27], our algorithm is a pseudo-approximation with respect to the standard LP relaxation. It opens k+O(1) facilities, and its expected cost is at most 1.9999 times the LP value. Consequently, the integrality gap of the standard relaxation is strictly below 2 when a constant number of extra facilities is allowed. This partially answers the question of Li and Svensson about the integrality gap when k+O(1) facilities may be opened [27]. The final combination and its error budget are given in Section 7.
1.3 Further related work
The literature on clustering is very broad. We briefly discuss some further results most relevant to our work.
Facility location. Closely related to k-median is uncapacitated facility location (UFL). UFL replaces the constraint on the number of open facilities with a location-specific opening cost for each facility. The first constant-factor approximation algorithm for UFL used LP rounding and was due to Shmoys, Tardos, and Aardal [30]. The best known approximation ratio is 1.488, obtained by Li [26] building on Byrka and Aardal [7]. It is close to the lower bound of γUFL shown by Guha and Khuller [21], where γUFL≈1.463 is the unique solution to γ=1+2e−γ. For k-median the LMP factor matters most. The greedy algorithm of [22] is an LMP 2-approximation, and [15] improved this factor slightly.
Approximation in FPT time. Some works allow fixed-parameter tractable (FPT) running time f(k,ε)⋅poly(n). In this setting, the hardness threshold of 1+2/e still holds under the Gap Exponential Time Hypothesis (Gap-ETH), and a (1+2/e+ε)-approximation is achievable for every fixed ε>0 [17]. When the facilities coincide with the clients, the standard NP-hardness bound is 1+1/e. In this case, Anand and Lee [2] gave an FPT-time 1.546-approximation, strictly improving on 1+2/e.
Concurrent work. Several works giving better-than-2 approximations for metric k-median appeared in October 2026. Buhai, Cohen-Addad, Fleischmann, Gupta, Jubés Monforte, Pittu, Stouras, Svensson, and Vogl gave a randomized polynomial-time 1.95-approximation in two papers. The first replaces the linear bids in the greedy algorithm of [22] with general bidding functions, which gives a 1.9499-LMP approximation for facility location. A smooth variant of this algorithm opens k+O(logn/ε2) facilities and costs at most (1.9499+ε) times the optimum [5]. The second gives a (1.89+ε)-approximation for stable instances, whose optimal cost increases sufficiently when one fewer facility is opened [6]. The two algorithms are combined using the framework of [16].
In the same month, OpenAI released a collection of mathematical manuscripts produced by an internal model. Two of them concern metric k-median. The first claims a deterministic (1+2/e+ε)-approximation [28], which would match the hardness of [23]. Such an algorithm would also yield a (γUFL+ε≈1.463+ε)-approximation for uncapacitated facility location, matching the hardness threshold up to an arbitrarily small additive term. 1 The result also builds on the iterative rounding framework of [8], with a modified, distance-tapered rounding graph and a different per-client potential, and it forces facilities with large deletion sets to open during batched iterations. The second claims a randomized (2−σ)-approximation for an absolute constant σ>0 [29] and builds on the approach of [16].
1.4 Overview of the techniques
The algorithm in a nutshell. Our algorithm has three steps.
Solve the standard LP relaxation. Preprocess its solution so that every fractional opening is a multiple of a small constant δ and the total opening is at most k+3.
Round the preprocessed solution in two independent ways. The first is a variant of the iterative rounding of [8]. It repeatedly opens a randomly chosen fractional facility and closes the facilities that relied on it as part of their nearest unit of opening. A slight bias in the random choices keeps the number of open facilities at k+Oε(1). The second is a filtering and bundling rounding in the style of Charikar and Li [12], which opens at most k+3 facilities.
Return the cheaper of the two solutions. This is a pseudo-approximation that opens k+Oε(1) facilities, and the reduction of Li and Svensson [27] turns it into a solution with at most k facilities.
The two roundings in Step 2 have complementary strengths. Fix a client j and consider the distances from j to the facilities that serve it in the fractional solution. The factor-2 analysis of iterative rounding is tight only when these distances are all about the same. When they are spread out, the analysis charges j more than it actually pays, and we show that the gap is proportional to the spread. When the distances are concentrated, iterative rounding may really lose a factor of 2, but then j behaves like an element in maximum coverage. The second rounding opens one of j's fractional facilities with probability at least about 1−1/e. Otherwise it serves j through a nearby representative at about three times the distance, for a factor of about 1+2/e overall. Both kinds of clients may occur in one instance, and we cannot choose a rounding separately for each client. We therefore measure the spread of the whole instance by a single number and show that the cheaper of the two solutions is always within a factor strictly below 2 of the LP value. The rest of this section explains each part in more detail.
1A blackbox reduction only gives a (γUFL+ε)-approximation for the uncapacitated facility location problem with uniform facility costs. However, the rounding algorithm of [28] preserves the marginal probabilities of opening facilities, and thus works for UFL with arbitrary facility costs as well.
Notation. Fix a fractional solution (x,y). After splitting facilities into colocated copies, every client j is assigned to a set Fj of facilities with y(Fj)=1, namely its nearest unit of opening. Write di=d(i,j) and
Thus Vj is the fractional connection cost of j, Dj is the pairwise dispersion of its distances, and Mj is their mean absolute deviation. These quantities satisfy Mj≤Dj≤2Vj, and Dj=0 if and only if all facilities in Fj are at the same distance from j.
Preprocessing. As in [8], we first make the fractional solution δ-integral for a constant δ (Theorem 3.1). Our preprocessing separates the nearest 1−ε units of each representative client's opening, its head, from the next ε units, its tail. It replaces tail mass by small atoms and rounds all atoms by a single pipage rounding. Atoms shared by several tails are slightly scaled up before rounding, and the resulting saving keeps the total opening at most k+3 with high probability. The expected connection cost of every client increases by at most a 1+O(ε) factor.
Algorithm A: iterative rounding and where the factor 2 is lost. We first recall the LMP algorithm of [8]. Every fractional facility i receives incoming edges from its nearest one unit of fractional opening, so that every facility has fractional in-degree 1. In each iteration, a pivot p is chosen with probability proportional to its current opening zp and opened. Each out-neighbor i of p is closed with probability wp,i/zp, where wp,i is the amount of p's opening in the nearest unit of i. This keeps the expected number of open facilities unchanged. For a client j, the analysis tracks the set T⊆Fj of support facilities that are still fractional, together with the distance b from j to its nearest open facility. It shows that the potential
Φ(T,b)=2i∈T∑yidi+(1−y(T))b
does not increase in expectation, which gives E[d(j,O)]≤2Vj.
This argument has slack in two places. When an outside pivot closes a support facility i, the new backup distance is bounded by 2di+ri. Here ri is the smallest distance from j to a surviving support facility that is not entirely contained in the nearest unit of i, and this bound is often loose. When a support facility p itself is chosen, the surviving support facilities with 2di<dp remain useful. We show that the total slack in an iteration is at least a quarter of the current pairwise dispersion (Lemma 4.6). We also show that the dispersion of the surviving support decays slowly enough. Together, these facts give
E[d(j,O)]≤2Vj−12Dj(1)
(Theorem 4.2). In words, the factor 2 can be tight only for clients whose fractional distances are nearly equal.
Bound (1) holds for the LMP algorithm, which opens k facilities only in expectation. We then convert the LMP algorithm into one that opens k+Oε(1) facilities. The conversion of [8] selects many facilities in each iteration and forces facilities with large negative imbalance to open. In contrast, our conversion keeps a single operation per iteration (Section 5). Each fractional copy carries one token and each open facility carries 1/δ tokens. An operation chooses a token, opens its owner, and closes the fractional copies whose nearest 1/δ tokens include it. Operations that would close too much opening mass are split into a few smaller operations. To compensate for the resulting drift, we slightly increase the sampling probability of operations that decrease the total opening. The total opening is then an exponential supermartingale, and the number of open facilities exceeds the initial opening by more than Oε(1) only with small probability.
Splitting and biased sampling perturb the cost analysis. We isolate a sufficient condition, a local-charge certificate, under which a potential argument survives the conversion with only a 1+ε loss (Theorem 5.6). For every token, the potential change of every partial operation must be bounded by an opening charge plus deletion charges for the closed tracked facilities. The opening charge is counted once per fragment and each deletion charge exactly once, and the total of all charges must be nonpositive. The main difficulty is that the dispersion saving does not fit this framework directly. Splitting an operation can count the loss of the same pairwise dispersion credit in several fragments. We therefore use the potential
Pj(T,B)=U⊆Tmin{Φ(U,B)−12D(U)},
which may discard part of the surviving support. When a support facility opens, the potential moves to a subset that excludes it. This retains dispersion and makes the opening charge nonpositive, so repeating it over fragments is harmless. When a support facility i is closed, the lost dispersion is charged to an endpoint credit of i proportional to ∑v∈U∣di−dv∣. A pair with both endpoints closed is then overcharged, never undercharged. The endpoint credits total D(U)/6, and together with the remaining terms they are paid for by the saving of D(U)/4 from Lemma 4.6. Hence the weighted balance holds (Lemma 5.7). Consequently, the converted algorithm opens k+Oε(1) facilities and satisfies E[d(j,O)]≤(1+ε)(2Vj−Dj/12) for every client j.
Algorithm B: rounding when distances are concentrated. For these clients we use a second algorithm. For a radius R, let Tj(R)=∑i∈Fj:di>Ryidi. Each client chooses a threshold radius Rj that minimizes R+5eTj(R) among the radii whose ball contains at least half of its fractional opening. Let Aj be the minimum value. We then follow the filtering and bundling approach of Charikar and Li [12]. Representatives are selected greedily in increasing order of Aj. Each representative receives a bundle of facilities within half the distance to its nearest other representative, and representatives are matched greedily. A dependent rounding [31] then opens exactly k facilities. It opens at least one facility in each matched pair of bundles, preserves marginals, and is negatively correlated. We show that E[d(j,O)]≤(1−1/e)Vj+(3/e)Aj. Moreover, Aj=Vj when Dj=0, and Aj≤Vj+10eVjMj+25eMj in general. This gives
E[d(j,O)]≤(1+e2)Vj+e90VjMj+215Mj(2)
(Theorem 6.1). The factor 1+2/e for concentrated distances matches the hardness of [23]. This is natural: in its coverage-based reduction, every client is at distance at least one from every facility, so on yes-instances an optimal fractional solution has all of its support at distance exactly one.
Combining the two algorithms. The complementarity must be exploited at the level of complete solutions, since one cannot choose a rounding procedure separately for each client. We run both algorithms on the same fractional solution and return the cheaper solution. Let V=∑jVj, D=∑jDj, and s=D/V∈[0,2]. Since ∑jMj≤D, the Cauchy–Schwarz inequality gives ∑jVjMj≤VD. Summing (1) and (2) over clients shows that the expected cost of the cheaper solution is at most
V⋅min{2−12s,1+e2+e90s+215s}.
The first term decreases in s, and the second increases from 1+2/e<2. The two terms cross at s=s⋆≈0.0018867, the positive solution of 1291s+90s/e=1−e2. Hence the expression is at most α⋆V, where α⋆:=2−s⋆/12≈1.9998428.
From k+O(1) facilities to k facilities. The robust algorithm runs on the same preprocessed solution and opens at most k+3 facilities. Returning the cheaper of the two solutions gives a pseudo-approximation that opens k+Oε(1) facilities and has expected cost at most (α⋆+O(ε)) times the LP value. Finally, the reduction of Li and Svensson [27] turns it into an algorithm that opens at most k facilities, which proves Theorem 1.1, since α⋆<1.9999.
2 Preliminaries
LP relaxation. Let C be the set of clients, F the set of facilities, and d a metric on C∪F. Given an integer k≥1 and a constant p≥1, the k-clustering problem asks for at most k open facilities minimizing the sum of the p-th powers of the clients' connection distances. We use the standard linear programming relaxation
Here yi is the opening of facility i, and xi,j is the amount of client j assigned to i. For a fixed feasible opening vector y, we may assume that each client is assigned to its nearest one unit of opening, breaking ties consistently. This minimizes the cost for that vector. We denote the resulting cost of client j by costy(j). For a vector y indexed by a finite set U and L⊆U, write y(L):=∑i∈Lyi.
Pipage rounding with a laminar family. A family L⊆2U is laminar if any two of its sets are disjoint or one contains the other. By applying pipage rounding to a nonnegative vector y indexed by U, with laminar family L and granularity δ>0, we mean the following dependent-rounding procedure [31]. We may add U and all singletons to L without destroying laminarity. Write
δyi=ni+fi,ni:=⌊δyi⌋,0≤fi<1.
Keep the integer parts fixed. Repeatedly choose an inclusion-minimal set of L containing at least two fractional coordinates, and move mass between two of them, preserving their sum, until at least one becomes integral. Choose between the two possible directions randomly so that each coordinate's conditional expectation is unchanged. If a single fractional coordinate remains, round it to 0 or 1 with its current value as the probability of 1. Let Xi∈{0,1} be the final rounded fractional parts, and return yi:=δ(ni+Xi).
This procedure preserves expectations and rounds every laminar-set total to one of its two neighboring multiples of δ:
E[yi]=yi,yi∈{δ⌊δyi⌋,δ⌈δyi⌉}
for every i∈U,
y(L)∈{δ⌊δy(L)⌋,δ⌈δy(L)⌉}
for every L∈L.
In particular, if y(L) is a multiple of δ, then y(L)=y(L) in every outcome. The rounded fractional parts also satisfy, for every S⊆U,
Theorem 2.1 (Bernstein's Inequality). Let X1,…,Xn be independent random variables such that ∣Xi−E[Xi]∣≤M almost surely, for all i∈[n]. For any t≥0 and Y=∑i=1nXi,
Pr[Y≤E[Y]−t]≤exp(−∑i=1nVar(Xi)+Mt/3t2/2).
Note that the standard Bernstein inequality for independent random variables cannot be directly applied to our pipage (dependent) rounding. The following lemma gives a Bernstein-like inequality for our pipage rounding with granularity δ.
Lemma 2.2 (Weighted pipage concentration). Let y^ be the output of the pipage rounding above on input y, let ai≥0 be deterministic, and put
Z=i∑aiyi,v=δi∑ai2yi,M=δimaxai.
Then Var(Z)≤v. For every t>0, each of Pr[Z≤EZ−t] and Pr[Z≥EZ+t] is at most
exp(−2(v+Mt/3)t2).
If v = 0, the variable Z is deterministic and both probabilities vanish.
Proof. Let Xi be independent Bernoulli variables with means fi, and set Z=δ∑iai(ni+Xi). For λ≥0, expand eλδaiXi=1+(eλδai−1)Xi. For λ<0, instead expand eλδaiXi=eλδai+(1−eλδai)(1−Xi). All coefficients in either product expansion are nonnegative, so (4) implies E[eλZ]≤E[eλZ] for every real λ. Pairwise negative correlation also gives
Var(Z)≤δ2i∑ai2fi(1−fi)≤δi∑ai2yi=v.
The same variance bound holds for Z. Each centered independent summand Wi=δai(Xi−fi) satisfies ∣Wi∣≤M. For 0<λ<3/M, expansion of its exponential, using n!≥2⋅3n−2 for n≥2, gives
E[e±λWi]≤exp(2(1−λM/3)λ2E[Wi2]).
Multiply these bounds and use the moment comparison. Markov's inequality with λ=t/(v+Mt/3) proves both tails when v>0.
Lemma 2.3. For any real random variable V with finite variance and any real number κ,
Var(min(V,κ))≤Var(V).
Proof. Let V1:=min(V,κ) and V2:=max(0,V−κ). Then V=V1+V2, and V1V2=κV2. Consequently, we have
Fix a constant p≥1, and let ℓ:=[p]. Throughout, 0<ε<1/p, and all constants hidden in asymptotic notation are absolute and independent of p. Let (x,y) be a solution to the LP (3). As in the preliminaries, assume that each client j∈C is connected to the nearest one unit of open facilities, and let costy(j) denote its connection cost with respect to d(i,j)p. Formally, let Fj be a set of nearest one unit of open facilities, i.e., we have
d(j,i)≤d(j,i′)∀i∈Fj,i′∈F∖Fjandy(Fj)=1.
Then costy(j)=∑i∈Fjyid(j,i)p. Throughout this section, let θ:=ε2ℓ+1 be the scaling parameter used in Step 7 of Algorithm 1.
Theorem 3.1. Let 0<ε<1/p, where ε≤1/8, suppose 1/(2ε)∈N, and put δ=ε14ℓ+2. There is an nO(1)ε−O(p)-time randomized algorithm that, given a feasible solution (x,y) to LP (3), outputs y′∈[0,1]F such that:
• every yi′ is an integer multiple of δ;
• y′(F)≤k+3 with probability at least 1−exp(−Ω(ε−10ℓ));
• for every client j, the nearest unit of y′ exists and E[cosy′(j)]≤(1+O(pε))cosy(j).
The cost bound is unconditional; the constants hidden in O and Ω are absolute and independent of p.
Overview. For each client j, we split its nearest unit of opening into a head, the nearest 1−ε units, and a tail, the next ε units. Filtering selects representatives R whose heads are pairwise disjoint and well separated, so the heads can be rounded independently of one another. Tails, however, may overlap each other and the heads of other representatives. We therefore replace tail mass by tiny atoms. Physical atoms are pieces of facilities outside all representative heads. Virtual atoms replace the part of a tail that lies inside another representative's head; they later serve as bookkeeping and are not part of the output. All atoms are rounded by a single pipage rounding, and afterwards each head is rescaled so that it forms one unit together with its rounded tail. Opening an atom that lies in d≥2 tails serves all d tails. We exploit this by scaling up such atoms, and all virtual atoms, by a factor 1+θ before rounding. Scaling up an atom e increases its own opening by θye but decreases the incident heads by θdye in total. The net saving pays for the rounding errors and keeps the total opening at most k+O(1). Atoms that lie in too many tails are first duplicated, so that each atom has a bounded influence on this saving, as needed for concentration.
Parameters. The parameters θ=ε2ℓ+1 and δ=ε14ℓ+2 are chosen so that the following hold. (i) θ2/δ=ε−10ℓ, which gives the concentration in Lemma 3.8. (ii) δ=ε7ℓ+1≤εθ, so the fluctuation term in Lemma 3.11 is dominated by its bias term O(εθ). (iii) In Lemma 3.13, the additive loss is O(εθ)t0p, where t0p≤(1+O(ε))pε−2pRjp≤(1+O(pε))ε−2p−1cosy(j). Since ℓ≥p, this loss is at most ε(1+O(pε))cosy(j).
3.1 Algorithm
Algorithm 1 summarizes the preprocessing procedure. The heads, tails, atoms, and rounding inputs used in the pseudocode are defined as we walk through the algorithm.
Algorithm 1 Preprocessing the fractional opening vector
Input: A solution (x, y) to LP (3), and sufficiently small constant ε>0 with 1/(2ε)∈N
Output: A δ-integral solution y′∈[0,1]F, with δ:=ε14ℓ+2
1: Split facilities into colocated pieces to construct Hj,Tj and Rj for every j∈C.
2: Run Algorithm 2 to obtain R and the representatives r(j) for all j∈C.
3: For every i∈F∖⋃r∈RHr, split i into physical atoms and update its tail memberships.
4: For every i∈(⋃r∈RHr)∩(⋃r∈RTr), split i into virtual atoms and update its head and tail memberships
5: Replace high-influence atoms by low-influence copies, assigning each incident tail to one copy.
6: Partition the atoms (denoted as E) into E0,E1,Erest, and set E1(r)←E1∩Tr.
7: Set yˉe←(1+θ)ye for e∈Erest, and yˉe←ye for all other atoms.
8: Apply pipage rounding to yˉ∣E with laminar family L:={E0,E1,Erest}∪{E1(r):r∈R}∪{{e}:e∈E} and granularity δ, obtaining y′∣E.
9: for every r∈R do
10: Set Yr←1−min{1/2,y′(Tr)}.
11: Apply pipage rounding to 1−εYry∣Hr with laminar family {Hr}∪{{i}:i∈Hr} and granularity δ, obtaining y′∣Hr.
12: end for
13: return the vector on original facilities obtained by aggregating the opening in heads and physical atoms, capping each total at 1. Virtual atoms do not contribute to this vector.
Step 1: Heads and Tails For j∈C, let Hj be the set of the closest 1−ε fraction of open facilities to j, and Tj be the set of the next closest ε fraction of open facilities to j. Hj and Tj are called the head and tail of j. By fixing tie-breaking and splitting facilities into colocated pieces, we assume that all heads and tails consist of whole pieces; we update F and (Fj)j∈C to denote this refined set. More formally, after splitting for every j∈C, we have Hj∪Tj=Fj, y(Hj)=1−ε and y(Tj)=ε. For every i∈Hj and i′∈Tj, we have d(j,i)≤d(j,i′). For every i∈Tj and i′∈F∖Fj, we have d(j,i)≤d(j,i′). We write yorig for the opening of these facility pieces; it stays fixed, while the steps below further split pieces into atoms. Write Tjorig for the tail at this point and keep F and yorig fixed. The changing atom sets below have their own indices; each atom records its original facility and location. The vector returned in Step 13 is again indexed by the original facilities, as in Theorem 3.1.
Step 2: Filtering Define Rj:=maxi∈Hjd(i,j). We use Algorithm 2 to select a representative set R.
Algorithm 2 Filtering by quantile radii
1: C′←C, R←∅;
2: while C′=∅ do
3: choose r∈C′ with minimum Rr;
4: R←R∪{r};
5: assign to r and remove from C′ every client j satisfying d(j,r)≤ε−1Rj;
6: end while
7: return R and the representative r(j) assigned to each j∈C;
For any client j∈C, let r(j) be the representative that removes it in the algorithm.
Observation 3.2. For any client j∈C and r=r(j), we have
Rjp≤ε−1cosy(j), Rr≤Rj, d(j,r)≤ε−1Rj.
Proof. The last ε units of the nearest one unit of opening to j have distance at least Rj. In other words, costy(j)≥∑i∈Tjd(i,j)pyi≥εRjp. The inequalities Rr≤Rj and d(j,r)≤ε−1Rj follow from the filtering condition.
Observation 3.3 (Disjoint Heads). The heads {Hr:r∈R} are pairwise disjoint.
Proof. Let r and r′ be distinct representatives in R such that r′ is chosen after r by Algorithm 2. Then Rr≤Rr′, and since r′ is not removed when r is selected, d(r,r′)>ε−1Rr′. Assume toward contradiction that there exists i∈Hr∩Hr′. By triangle inequality,
d(r,r′)≤d(r,i)+d(i,r′)≤Rr+Rr′≤2Rr′.
However, from the statement of Theorem 3.1, we have 1/(2ε)≥1. Hence, d(r,r′)≤ε−1Rr′, which is a contradiction. Therefore, Hr∩Hr′=∅.
Steps 3 and 4: Atomization Then we split some facilities into atoms, which are facilities with tiny y values. The purpose of this process is to ensure that yi is sufficiently small for all i∈F for the pipage rounding with granularity δ. We construct them as follows:
Physical Atoms: For any facility i∈F that does not belong to any Hr for r∈R, we split i into m colocated physical atoms {i1,…,im} for some m such that yi1+⋯+yim=yi and yio≤1+θδ for every o∈[m]. Note that the facility i is replaced by these m atoms, and they inherit its tail membership.
Virtual Atoms: For i∈F that belongs to some Tr∩Hr′ for some representatives r=r′, we split each facility i into m colocated virtual atoms such that yi1+⋯+yim=yi and yio≤1+θδ for every o∈[m]. Note that each facility i is replaced by these m atoms, and they inherit its head and tail membership.
The key distinction between physical and virtual atoms is that the opening of a virtual atom can be reassigned to a facility in its associated head, whereas the opening of a physical atom cannot. Specifically, the algorithm performs pipage rounding in two stages: first on the tails and then on the heads. Since virtual atoms belong to both components, even if a virtual atom in Tr∩Hr′ is opened during the first stage on the tails, we can instead use any facility in Hr′ by reallocating to that facility. Note that, when performing pipage rounding on the heads, we may merge the virtual atoms back into their original facilities. Consequently, virtual atoms do not contribute to the final facility openings. Although this reassignment incurs an additional connection cost, the resulting increase can be bounded by a multiplicative factor of 1+O(ε) for any representative r (see Theorem 3.4).
Lemma 3.4. For distinct representatives r,r′∈R and any u,v∈Hr′,
d(r,v)≤(1+ξ)d(r,u)whereξ:=ε−1−12=O(ε).
Proof. Assume that representative r1 is chosen before representative r2 by Algorithm 2. Because r2 is not removed by r1, it implies d(r1,r2)>ε−1Rr2=ε−1max(Rr1,Rr2). If Rr′=0, then all locations in Hr′ coincide, and d(r,v)=d(r,u). Otherwise, by triangle inequality, d(r,u)≥d(r,r′)−d(r′,u)>(ε−1−1)Rr′, and
Step 5: Splitting High-Influence Atoms Let Ephys and Evirt denote the set of all physical and virtual atoms, respectively. Let E denote the set of all atoms, i.e., E=Ephys∪Evirt. We further partition E into
For each atom e, let de denote the number of tails containing e, i.e., de:=∣r∈R:e∈Tr∣. Let F0 denote the updated set F, which contains all atoms and head facilities. Note that F0 contains each virtual atom only once: it is regarded as a virtual atom from the perspective of its associated tails and as a head facility from the perspective of its associated head. Observe that
The second equality follows by accounting for atoms that are omitted or counted multiple times in ∑r∈Ry(Fr). Specifically, this sum omits all physical atoms outside ⋃r∈RFr, namely those with de=0. Moreover, each physical atom e with de≥1 is counted de times, once for each tail containing it, while each virtual atom e is counted de+1 times: de times through the tails and once through its unique head, where uniqueness follows from Theorem 3.3.
We denote the total redundant amount by
A0:=e∈Ephys:de≥2∑(de−1)ye+e∈Evirt∑deye.
Consequently,
k≥y(F0)=∣R∣+y(E0)−A0.(5)
Definition 3.5 (High Influence). A physical atom e has high influence if de−1>A0. A virtual atom e has high influence if de>A0. Otherwise, it has low influence.
For our analysis, particularly the application of Lemma 2.2 in Theorem 3.8, we need to bound de for every atom e. To this end, when A0≥2, we split each high-influence atom e into m copies e1,…,em, each retaining the original opening value yei=ye.
Specifically, let q:=⌊A0⌋ and m:=⌈de/q⌉. If A0≥2, we partition the de tails containing high influence atom e into m nonempty groups, each of size at most q, and assign a distinct copy ei to each group. Consequently, every copy satisfies
dei≤A0.
Each copy inherits the type of the original atom: copies of physical atoms remain physical, while copies of virtual atoms remain virtual.
Let Ephys′ and Evirt′ denote the sets of physical and virtual atoms, respectively, after this step. For each r∈R, let Fr′ be obtained from Fr by replacing each high-influence atom with the copy assigned to the tail of r. Note that y(Fr′)=y(Fr)=1. Let Γ be the total amount of openings by physical atoms and facilities in head. Hence,
For the second equality, ∑r∈Ry(Fr′) counts each atom e for de times. Note that every atom outside E0 belongs to at least one tail. To ensure that each physical atom is counted exactly once and each virtual atom is excluded, we subtract (de−1)ye for each physical atom and deye for each virtual atom.
Define Δ0 as the increase of y value of physical atoms.
Lemma 3.6. Δ0=A0−A.
Proof. Because Δ0=Γ−y(F0), the statement is obtained by subtracting (5) from (6).
Lemma 3.7. We have Δ0<3/2. Moreover, if A0≥2, then Δ0≤A0/2.
Proof. If A0<2, then Δ0=0. Otherwise, suppose a high-influence physical atom e is divided into me colocated atoms. By the grouping rule, we have
me−1=⌊qde−1⌋.
Let H denote the set of all high-influence physical atoms. Therefore,
Δ0=e∈H∑(me−1)ye≤q1e∈H∑(de−1)ye≤qA0.
Since q=⌊A0⌋≥2 and A0<q+1, we have Δ0≤A0/2 and Δ0<1+1/q≤3/2.
Step 7: Scaling the y-Values of Some Atoms Let E1(r)=E1∩Tr for every r∈R. Therefore, (E1(r))r∈R forms a partition of E1 as every atom in E1 appears in exactly one Tr. Recall that Erest is the set of physical atoms with degree at least 2 and virtual atoms.
For e∈Erest, let yˉe←(1+θ)ye. For e∈E0∪E1, let yˉe←ye. Note that yˉe≤δ=ε14ℓ+2 for every e∈E, since every atom was created with ye≤δ/(1+θ) and all copies keep this value.
Step 8: Rounding Atoms (i.e., Tails) Consider the following laminar family
L={E0,E1,Erest}∪{E1(r)∣r∈R}∪{{e}∣e∈E}.
We apply pipage rounding to yˉ∣ε with laminar family L and granularity δ, as defined in the preliminaries, to obtain y′ over E. So, for any L∈L, we have
For the following lemma, observe that without scaling up on Erest, we would have E[A′]=A. Consequently, the desired event A′≥(1+2θ)A would require A′≥E[A′]+2θA, which does not occur with sufficiently high probability. This motivates scaling up y to yˉ, so that we can expect A′ to be slightly larger than A.
Lemma 3.8. If A0≥2, then A0≤2A and
Pr[A′<(1+2θ)A]≤exp(−Ω(ε−10ℓ)).
Proof. By Lemmas 3.6 and 3.7, A=A0−Δ0 and Δ0≤A0/2, we have A0≤2A.
According to the pipage rounding with granularity δ, for any atom e, Pr(ye′=δ)=δyˉe. Since E[ye′]=yˉe=(1+θ)ye for e∈Erest, we have E[A′]=(1+θ)A. Moreover,
Loop 9: Rounding Heads Next, we round the y values of facilities in heads. For r∈R, let Yr:=1−min(1/2,y′(Tr)). We apply pipage rounding to 1−εYry∣Hr with laminar family {Hr}∪{{i}:i∈Hr} and granularity δ, as defined in preliminaries, using independent fresh randomness for each head conditional on the rounded atoms. So, for every i∈Hr, we have
Moreover, y(Hr)=1−ε, so the input vector for this call has total Yr. Since 1/(2ε)∈N and δ=ε14ℓ+2, the values 1, 1/2, and y′(Tr) are multiples of δ, and hence so is Yr. The rounding therefore preserves this total exactly: y′(Hr)=Yr∈[1/2,1].
To account for the threshold 1/2, define the excess for each representative and its total by
We prove the following lemma that upper bounds Δ1:
Lemma 3.9. For ε≤1/8,
Pr[Δ1>2θA]≤exp(−Ω(ε−(14ℓ+2))).
Proof. Fix a representative r∈R. Define Y1=∑e∈E1∩Trye, Yrest=∑e∈Erest∩Trye and define Y1′ and Yrest′ in the same way. Since E1(r)∈L and yˉe=ye on E1, pipage rounding gives Y1′≤Y1+δ. We also have Y1+Yrest=ε. Hence,
Step 13: Returning the Opening of Heads and Physical Atoms Finally, we return the opening vector y′ restricted to ⋃r∈RHr and physical atoms. We map the opening to the original facilities in F, and we cap the opening of each original facility by 1. Notice that virtual atoms are auxiliary variables for the tail rounding and are not included in the final opening vector. Merging sums multiples of δ, and 1 is a multiple of δ, so every returned coordinate is a multiple of δ in [0,1]. Neither merging nor capping increases the total opening. Moreover, for every client j and radius t≥0, the deficit (1−y′(ball(j,t)))+ is unchanged. Merging preserves the opening at every location. Capping changes the opening only at a location whose opening is at least 1, and every ball containing that location has deficit 0 both before and after. Since connection costs are determined by these deficits (see (8)), costs are unchanged as well. The analysis below is therefore carried out on the pieces before this step.
3.2 Bounding the Number of Open Facilities
Let Γ′ be the total opening in heads and of physical atoms after Loop 9. It follows that
For the second equality, recall that y′(Hr)=Yr because Yr is a multiple of δ and pipage rounding preserves this value. Moreover, ∑r∈Ry′(Tr) counts each atom e exactly de times. To ensure that each physical atom is counted exactly once and each virtual atom is excluded, we subtract (de−1)ye for each physical atom and deye for each virtual atom.
Lemma 3.10. With probability at least 1−exp(−Ω(ε−10ℓ)), Γ′≤k+3.
Proof. By combining (5), (6), (7), and since E0 is a laminar rounding set and is not scaled, y′(E0)≤y(E0)+δ, we have
It follows from Theorem 3.8 that A′−A≥2θA with probability at least 1−exp(−Ω(ε−10ℓ)). Then by Theorem 3.9, we have Δ1≤2θA with probability at least 1−exp(−Ω(ε−14ℓ−2)). By theorem 3.7, we have Δ0<3/2. Thus,
Γ′≤k+Δ0+Δ1+δ+A−A′≤k+23+2θA+δ−2θA≤k+2.
By union bound, both events together hold with probability at least 1−exp(−Ω(ε−10ℓ)).
• Case II: A0≤2.
According to Theorem 3.9, Δ1≤θ with probability at least 1−exp(−Ω(ε−10ℓ)). By Theorem 3.6, we have A0=A+Δ0. Thus,
Therefore, Γ′≤k+3 with probability at least 1−exp(−Ω(ε−10ℓ)).
3.3 Connection Cost Analysis
Recall that Ephys′⊆E denotes the physical atoms just before the rounding, and let
U:=Ephys′∪r∈R⋃Hr.
Thus U contains exactly the physical atoms and head facilities; virtual atoms are excluded. Throughout this subsection, y and y′ on subsets of U refer to the openings before and after rounding, prior to the final merging and capping. Throughout the connection-cost analysis, costy(j) continues to denote the original LP connection cost defined by yorig.
For j∈C and t≥0, let ball( j,t) denote the closed metric ball centered at j with radius t. When an opening or assignment is evaluated on a ball, we sum its mass over the points of its own domain in that ball. Recall that yorig is the input LP opening on the facility pieces used to define heads and tails, before any atom construction or duplication, and define
qj(t):=(1−yorig(ball(j,t)))+.
Recall that
ξ=ε−1−12=O(ε).
For every r∈R and every rounded outcome, let μr be the assignment to the nearest one unit of rounded fractional opening y′ from r, using only U=Ephys∪⋃s∈RHs and breaking distance ties in a fixed order. This unit of opening exists: the comparison assignment νr constructed at the beginning of the proof of Lemma 3.12 uses only the opening y′ on U and has total mass 1, and its construction does not use μr. In particular, for t≥0,
We bound the expected cost of each client j by integrating its ball deficits (1−y′(ball(j,t)))+ over t. For radii t below threshold t0=Θ((d(j,r(j))+Rr(j))/ε), Theorem 3.11 shows that rounding increases each deficit by at most an additive O(εθ).
Lemma 3.11. For any S⊆U,
E[(1−y′(S))+]≤(1−y(S))++3εθ.
For larger radii, we compare with the representative r(j): Theorem 3.12 shows that, around r(j), the rounded opening is as good as the original opening up to a factor 1+ξ=1+O(ε) in the radius and a factor 1+θ in the mass.
Lemma 3.12. For every representative r and every t≥Rr,
E[μr(U∖ball(r,(1+ξ)t))]≤(1+θ)qr(t).
Theorem 3.13 combines the two regimes. Note that costy′(j) here only accounts for the contribution from U.
Lemma 3.13. For every client j∈C and ε≤1/8,
E[costy′(j)]≤(1+O(pε))costy(j).
Proof. Let r=r(j). By the layer-cake formula Dp=∫0∞ptp−11{D>t}dt, we have
where the second inequality follows from the fact that y(ball(j,t))≥yorig(ball(j,t)) for any client j∈C and radius t≥0 due to high-influence atoms split in Step 5.
To leverage the backup facilities associated with r, we use the fact that 0≤μr≤y′, which implies (1−y′(S))+≤(1−μr(S))+=μr(U∖S) for any S⊆U. Consequently,
where s be a value such that (1+ξ)s=t−d(j,r). Observe that s≥Rr when t≥t0. For (*) and (**), we know that, for t≥Rr, ball(r,t−d(j,r))⊆ball(j,t) and ball(j,s−d(j,r))⊆ball(r,s), respectively.
Let s0 be a value such that (1+ξ)s0=t0−d(j,r). We know that, for u=s−d(j,r),
Suppose that t0≤(1+χ)u0 where u0:=s0−d(j,r)≥0 and χ is a constant such that ξ≤χ. Note that u0≥0 by this condition. Then t≤(1+χ)u. In this case, we have
To achieve the desired upper bound of (1+O(pε))cosy(j), we additionally impose the constraint χ=O(ε). We now try to minimize t0 subject to all the constraints established above. That is,
Our proof works with a sub-mass of S of total exactly min(y(S),1). Consider a fixed fractional combination of physical atoms and facilities in the heads, specified by deterministic coefficients c∈[0,1]U satisfying
where m:=min(y(S),1). Let m′ denote the total opening after rounding, weighted by the coefficients c, i.e.,
m′:=e∈Ephys∑ceye′+r∈R∑i∈Hr∑ciyi′.
Since supp(c)⊆S and ci∈[0,1] for all i∈U, we have 0≤m′≤y′(S). Furthermore, by the Cauchy–Schwarz inequality (or Jensen's inequality), the mean absolute deviation of m′ is bounded above by its standard deviation: E[∣m′−E[m′]∣]≤Var(m′). Hence,
It remains to bound E[m′] (Theorem 3.14) and Var[m′] (Theorem 3.15). To this end, we define the mass contributed by physical atoms and facilities in the heads to the fractional combination as follows:
Proof. We bound the variance using the law of total variance. Conditioned on (ye′)e∈E, mphys′ and all head targets Yr are fixed, and the head rounding calls are independent. Since Var(ye′)≤E[(ye′)2]=δyˉe, and by the negative-correlation property of the pipage rounding (see (4)) within each head, we get
Proof of Theorem 3.11. By combining (9), Theorems 3.14 and 3.15, we get
E[(1−y′(S))+]≤1−m+1−εεθ+3δ<(1−y(S))++3εθ.
For the last inequality, we can find that 1/(1−ε)+3ε5ℓ−1<3 for 0<ε≤1/2.
3.3.2 Proof of Lemma 3.12
Proof of Theorem 3.12. First we construct a feasible comparison assignment νr for every rounded outcome. Retain selected atoms in Tr with total rounded value min(1/2,y′(Tr)); this is possible because ye′∈{0,δ} for every atom and 1/2 is a multiple of δ. We use all rounded opening in Hr and each retained physical tail atom at its original facility. For every r′∈R∖{r}, collect all retained virtual atoms created from Tr∩Hr′, and allocate their total rounded value to the opened facilities in Hr′. Such an allocation is possible because this demand is at most 1/2 and y′(Hr′)=Yr′≥1/2.
Therefore, the demand can be allocated without exceeding yi′ at any facility i∈Hr′. Consequently, such an assignment satisfies νr(U)=y′(Hr)+min(1/2,y′(Tr))=1 and 0≤νr≤y′.
Next we bound the expectation of the assignment outside the enlarged ball. Fix t≥Rr. The distance from r to each facility in Hr is at most Rr, so, according to Theorem 3.4, νr(Hr∖ball(r,(1+ξ)t))=0.
For any physical tail atom e, its location does not change. If it contributes to the assignment outside radius (1+ξ)t, then d(r,e)>t. Its contribution is at most ye′, and marginal preservation in pipage rounding gives E[ye′]=yˉe≤(1+θ)ye.
Recall from Theorem 3.4 that for every u∈Tr∩Hr′ and v∈Hr′,
d(r,v)≤(1+ξ)d(r,u).
Define Tr(r′) as a set of virtual atoms in Tr whose original facility belongs to Hr′. Thus, the contribution of atoms in Tr∩Hr′ with respect to allocation ν is as follows:
Proof of Theorem 3.1. If there are no clients, the zero vector suffices. Otherwise filtering selects at least one representative, and the construction of νr above ensures at least one unit of rounded opening in every outcome. Merging and capping preserve all ball deficits, as shown in Step 13; thus a nearest unit still exists afterward. They also preserve grid integrality and do not increase total opening. Lemma 3.10 proves the facility bound, and Lemma 3.13 proves the unconditional cost bound.
There are polynomially many original pieces after the head and tail splits. Atomization uses at most a polynomial in n times δ−1 atoms, and influence splitting makes at most ∣R∣ copies per atom. Each pipage step makes at least one fractional coordinate integral; the laminar sets and the filtering can be maintained in polynomial time. Since δ−1=ε−O(p), the claimed running time follows.
4 A Client-Dependent Bound for the Single-Pivot Rounding Algorithm of [8]
Throughout this section, we take p = 1. That is, we focus on the k-median problem. So, the connection cost of a client is its distance to the facility serving it. Most notations in this section are independent of those from Section 3.
The main goal of the section is to show that, for the 2-LMP rounding algorithm of [8], the approximation ratio for a client j is 2 only when its connection distances in the support of the LP solution are the same. In particular, we define the dispersion Dj to measure how far away the distribution of distances is from a deterministic distance and prove an approximation ratio for j that depends on Dj.
4.1 Recap of Rounding Algorithm of [8]
First, we review the single-pivot rounding algorithm of [8]. The input to the rounding algorithm is an opening vector y∈[0,1]F with y(F)≥1. It runs in iterations and maintains an opening vector z(t) at the end of iteration t. Initially, we have z(0)=y. For every t=0,1,2,⋯, the iteration t+1 of the algorithm runs as follows. For every facility i, the nearest unit of opening of i is described by weights wqi(t),q∈F, obtained by collecting the opening of z(t) in nondecreasing order of distance from i, breaking ties consistently and in favor of i itself, until one unit is collected. Thus
0≤wqi(t)≤zq(t),q∈F∑wqi(t)=1,wii(t)=zi(t).
Let Ft be the history through iteration t, including all random choices made so far; F0 is trivial. In iteration t+1, the pivot q is chosen with probability zq(t)/∣z(t)∣1. The pivot is opened (its opening becomes 1), and each other facility i is deleted (its opening becomes 0) with probability wqi(t)/zq(t). Indeed, the analysis uses only these conditional marginals, not the joint distribution of the deletions.
The algorithm terminates when the opening vector becomes integral. It is possible that an iteration does not change the opening vector. So it may happen that, for any finite T (which may depend on the instance), with positive probability, the algorithm does not terminate after T iterations. Using conditional probabilities, one can easily avoid these “useless” iterations. However, for the analysis purpose, it is convenient for us to keep these iterations. Moreover, we define z(t) over all integers t≥0: if algorithm terminates in less than t iterations, then z(t) is the z-vector when the algorithm terminates, which is integral.
The following simple lemma is needed later:
Lemma 4.1 (Almost-sure termination). The number of iterations the algorithm runs is finite almost surely.
Proof. Let nF:=∣F∣. Conditional on Ft, a facility i that is fractional at time t becomes integral in the next iteration either by being chosen as the pivot or by being deleted by another pivot. Since the nearest-unit weights satisfy wii(t)=zi(t) and ∑qwqi(t)=1, this has probability
∣z(t)∣1zi(t)+∑q=iwqi(t)=∣z(t)∣11≥nF1,
where the inequality uses ∣z(t)∣1≤nF. No integral facility becomes fractional again. Thus the probability that a given initially fractional facility remains fractional after t iterations is at most (1−1/nF)t, which tends to 0. Since there are finitely many facilities, the number of iterations is finite almost surely.
The expected number of open facilities given by the algorithm is ∣y∣1, which follows from a simple martingale argument. The main focus of our analysis is on the expected connection cost of a client j.
4.2 Main Theorem and Notations
Till the end of Section 4, we fix a client j, and our goal is to give the expected connection cost of j. After the standard facility-splitting step, we may assume that xij∈{0,yi} for every i∈F; let Fj:={i∈F:xij>0} be the set of supporting facilities of j. Then y(Fj)=1 and yi>0 for every i∈Fj. Write di=d(i,j), and order the facilities in Fj so that i<q implies di≤dq, breaking ties arbitrarily. Define
So, Vj is the fractional cost of j in the LP solution y. We call Dj the dispersion of the client j, which measures how different the distances di's are. Let cj denote the connection cost of j given by the rounding algorithm. The main theorem we shall prove is:
Theorem 4.2 (Main Theorem). E[cj]≤2Vj−12Dj.
If yi=1 for some i∈Fj, then Fj={i} and this facility is already open and remains open. Thus cj≤di=Vj and Dj=0, proving the theorem in this case. Henceforth assume 0<yi<1 for every i∈Fj.
Consequently, the approximation factor for j is at most 2−Dj/(12Vj) (assuming Vj>0). The rest of this section is dedicated to the proof of the theorem. If Fj is a singleton, then Dj=0 and the theorem is immediate. Henceforth assume ∣Fj∣≥2; in particular, 0<yi<1 for every i∈Fj.
Note that V(Fj)=Vj and D(Fj)=Dj. Since ∣di−di′∣≤di+di′, we have
D(U)≤i,i′∈U∑yiyi′(di+di′)=2y(U)V(U).(10)
For every U⊆Fj and b∈R≥0∪{∞}, we define
Φ(U,b):=2V(U)+(1−y(U))b,
with the convention that 0⋅∞=0. This is the same as the definition in [8].
For every t≥0, let T(t)={i∈Fj:zi(t)=yi}. Let b(t) be the distance from j to its nearest integrally open facility at the end of iteration t; set b(t)=∞ if no facility is integrally open, which could happen only when t=0. Let S(t)={i∈T(t):2di<b(t)}, which is the subset S of T(t) that minimizes Φ(S,b(t)).
Assuming the metric is finite, we have that b(t)≤∞ for every t≥1. Let t∗ be the first iteration in which the pivot lies in Fj or all facilities of Fj have been deleted. This is a stopping time for the algorithm’s history. Before t∗, a facility in Fj can leave T(t) only by deletion. Thus any positive-mass pivot outside T(t) lies outside Fj. Moreover, 1≤t∗<∞ almost surely, by Lemma 4.1. For 0≤t<t∗ define
Ψ(t):=U⊆T(t)min{Φ(U,b(t))−12D(U)},(11)
and U(t) to be the set U⊆T(t) achieving the value of Ψ(t). However, when t≥t∗, we define Ψ(t)=Φ(S(t),b(t)), in which case U(t) is not defined.
4.3 Saving in One Iteration
With the notations defined, we can now prove the main theorem. We fix an integer t and consider the iteration t+1 of the algorithm. We assume t<t∗; notice that the exact value of t∗ is not known yet. We suppress the time subscript and write z=z(t),T=T(t),U=U(t),b=b(t), and wqi=wqi(t).
Recall that we choose a pivot q∈F with probability ∣z∣1zq; for q∈U, we have zq=yq and thus the probability is ∣z∣1yq. For every q∈F and i∈U, the probability that q is chosen and deletes i is ∣z∣1zq⋅zqwqi=∣z∣1wqi. For i∈U, write
w(U,i):=q∈U∑wqi,uqi:=yq−wqi,∀q∈U.
w(U,i) is the unnormalized probability that i will be removed by pivots in U, and uqi is the extent to which q does not remove i.
Since wqi≤zq=yq for q∈U, we have uqi≥0 and ∑q∈Uuqi=y(U)−w(U,i)≥0. Define
ri:=min{dq:q∈U,uqi>0},
where the minimum of the empty set is ∞. Then ri=∞ exactly when y(U)=w(U,i), and in that case we interpret (y(U)−w(U,i))ri as 0.
Lemma 4.3. Suppose some q∈/U and i∈U have wqi>0. Then, d(j,q)≤2di+ri.
Proof. We can assume ri<∞. Let v∈U be such that uvi>0 and dv=ri. The nearest unit of i is collected in nondecreasing order of distance from i, and it uses q but not all of v; hence d(i,q)≤d(i,v), and
d(j,q)≤di+d(i,q)≤di+d(i,v)≤2di+dv=2di+ri.
Consequently, whenever a pivot outside U deletes i∈U, the new backup distance is at most min{b,2di+ri}; this is trivial if ri=∞.
Let U′={i∈U:zi(t+1)=yi} be the set of facilities of U that are still fractional after iteration t+1, and let b′=b(t+1) be the new backup distance. Notice that U′ may be different from U(t+1).
Define the next charge and the next dispersion credit of U by
Proof. All expectations and pivot probabilities below are conditional on Ft. First suppose that the pivot q lies in U. Conditional on this, a facility i∈U survives with probability zquqi=yquqi; for i=q this is 0, as uqq=0. Therefore, the contribution of pivots in U to ∣z∣1⋅E[Φ′] is
In this section, we lower bound Γ using the dispersion D(U). Define
H:=s≥0maxsq∈U:dq≥s∑yq.
This can be viewed as the area of the largest rectangle in the distance histogram for U, with width (yq)q∈U and heights (dq)q∈U. Notice that the maximum is attained at s=0 or at some dq.
In the sums over pairs i<q below, both facilities range over U.
Proof. Choose a threshold s attaining H, and let ai:=di if di<s and ai:=di−s if di≥s. Thus ai≥0 and ∑i∈Uyiai=V(U)−H. Fix i<q. If s>di, then ai=di. If s≤di, then aq=dq−s≥dq−di. In either case, min{di,dq−di}≤ai+aq. Multiplying by yiyq and summing over pairs i<q gives
because wqidq+uqi(dq−2di)+≥(wqi+uqi)(dq−2di)+=yq(dq−2di)+. In particular, Γ≥0. For every i<q, we have min{di,dq−di}+(dq−2di)+=dq−di, while (dq−2di)+=0 whenever dq≤di. Consequently, the two lower bounds sum to
i<q∑yiyq(dq−di)=2D(U),
and their maximum is at least D(U)/4.
4.5 Dispersion Persistence and Completion of the Proof
Then, we show that the dispersion term D(U) does not decrease too fast. Recall the definition of D′ in (12).
Proof. Fix an ordered pair i,i′∈U with i=i′. The pair contributes yiyi′∣di−di′∣ to D′ unless a pivot in T⊇U is selected (in which case D′ becomes 0) or a pivot deletes i or i′. These events have probabilities at most ∣z∣1y(T)≤∣z∣11, ∣z∣11, and ∣z∣11, respectively. A union bound therefore gives
Proof. By Lemmas 4.4 and 4.6, E[Φ′∣Ft]≤Φ(U,b)−4∣z∣1D(U). By Lemma 4.7, E[D′∣Ft]≥D(U)−∣z∣13D(U). Subtracting 121 times the second bound from the first proves the corollary. □
Recall that we assumed that t<t∗. We prove the following lemma:
Lemma 4.9 (Main lemma). We have
E[Ψ(t+1)∣Ft]≤Ψ(t).
That is, the stopped sequence (Ψ(min{t,t∗}))t≥0 is a supermartingale.
Proof. The probability space in this proof is conditional on Ft. We claim that the following inequality always holds:
Ψ(t+1)≤Φ′−12D′.
Recall that z=z(t),U=U(t),T=T(t),b=b(t) and U⊆T. U′={i∈U:zi(t+1)=yi}⊆T(t+1) and b′=b(t+1). We distinguish three cases, depending on the pivot we choose on iteration t+1.
• The pivot q lies in U. Then t∗=t+1, D′=0, and b′≤dq.
The first inequality follows from a simple derivative technique.
The pivot lies in T∖U. Then t∗=t+1, D′=0, and Ψ(t+1)=Φ(S(t∗),b′)≤Φ(U′,b′)=Φ′. The inequality used that S(t∗) is the subset S of T(t∗) that minimizes Φ(S,b′) and U′⊆T(t∗).
• The pivot lies outside T. Then Φ′=Φ(U′,b′) and D′=D(U′). If T(t+1)=∅, then t∗=t+1, U′=∅, D′=D(U′)=0 and Ψ(t+1)=b′=Φ′−D′/12. Otherwise, t+1<t∗, and U′ is a candidate in (11), so Ψ(t+1)≤Φ(U′,b′)−12D(U′)=Φ′−12D′.
This proves the claim. Taking conditional expectations and applying Theorem 4.8 gives E[Ψ(t+1)∣Ft]≤Φ(U,b)−12D(U)=Ψ(t).
At time t∗, we use the factor-2 analysis of [8]. For completeness, we recover the proof using the potential argument we already established.
Proof. For t≥t∗ we define Qt=minU⊆T(t)Φ(U,b(t)), and fix a set U minimizing the quantity. The proof of Lemma 4.4 only requires that U is fractional and y(U)≤1, so it applies in this state as well. Together with Lemma 4.6, it gives E[Φ′∣Ft]≤Φ(U,b(t))=Qt. If the pivot lies outside U, then Qt+1≤Φ(U′,b′)=Φ′. If the pivot is q∈U, use b′≤dq and minimize over the surviving U′ to obtain
The middle function is nondecreasing because y(U′)≤1. Thus Qt is a supermartingale after t∗ with non-negative support. At termination T=∅ and Q=cj. Conditional bounded optional stopping proves the claim.
Proof of Theorem 4.2. By Lemma 4.9, (Ψ(min{t,t∗}))t≥0 is a supermartingale. It is bounded, since 0≤Ψ(0)≤2Vj and 0≤Ψ(t)<∞ for 1≤t≤t∗. Since t∗ is finite almost surely, the optional stopping theorem gives
E[Ψ(t∗)]≤Ψ(0)≤2Vj−12Dj.
By Lemma 4.10, E[cj∣t∗,Ft∗]≤Φ(S(t∗),b(t∗))=Ψ(t∗). Taking expectations proves the theorem.
5 Converting the LMP Algorithm into One with k+O(1) Open Facilities
In this section, we convert the LMP algorithm from Section 4 into an algorithm that always opens at most k+O(1) facilities. A similar conversion was given in [8] for their 2-LMP algorithm. Our contribution is twofold. First, their conversion does not apply as a black box to our refined, dispersion-dependent bound, so we establish conditions under which this bound survives the conversion. Second, our conversion is simpler: instead of selecting a batch of pivots, we select a single pivot in each iteration. Relative to the algorithm in Section 4, we favor operations with negative imbalance and split large deletion sets into smaller ones. This bounds the change in total opening in each iteration and allows us to apply concentration bounds.
5.1 Algorithm
In our conversion, we need to first apply the preprocessing procedure in Section 3. Let ε∈(0,1) be sufficiently small and satisfy the arithmetic assumptions of Theorem 3.1; it will also be the multiplicative loss parameter for the conversion. We apply the preprocessing to obtain a δ=poly(ε)-integral opening vector y∈[0,1]F, where we assume δ−1∈N and 0<δ<1. We assume that the input has at least one unit of opening and write Y0:=y(F)≥1. If preprocessing returns a vector with Y0>k+3, we repeat preprocessing until Y0≤k+3. Its failure probability is exp(−Ω(ε−10)) for p=1, so this conditioning preserves its 1+O(ε) expected-cost guarantee. We also define
We split each facility i into yi/δ colocated copies of opening δ, so that every facility i now has yi=δ. For simplicity, we still use F and y for the new set of facilities and new fractional opening vector.
During the algorithm, let z(t) denote the current opening vector, with z(0)=y. Initially, O0=∅ and R0=F. After each iteration t, each facility i has one of the following states:
• Closed: zi(t)=0.
• Open: zi(t)=1. Denote by Ot the set of open facilities at this time.
• Fractional: zi(t)=δ. Denote by Rt the set of fractional facilities at this time.
In each iteration, we choose a pivot that is either fractional or already open, open it if necessary, and close a set of fractional facilities. An iteration may leave the state unchanged. Once a facility is opened or closed, it remains in that state for the rest of the algorithm. The algorithm terminates when all facilities are either open or closed.
Now we describe iteration t of the algorithm, for t≥1:
Put 1 token on each fractional facility i∈Rt−1 and δ−1 tokens on each open facility i∈Ot−1. For every token x, let own( x) denote its facility. So, one token represents a δ-fractional opening.
For each fractional facility i∈Rt−1, denote by N(i) the set of the nearest δ−1 tokens to i (breaking ties in favor of its own token, and otherwise in a fixed order). Such a set exists initially because Y0≥1, and after the first iteration because at least one facility is open and remains open.
For each token x, denote by N−1(x) the set of fractional facilities i such that x∈N(i), except for the facility that owns x. Then create several operations associated with x as follows. Each operation is represented by (x,Q) where Q⊆Rt−1 is a set of fractional facilities.
– If ∣N−1(x)∣≤δ−1D, then set rx:=1 and create one operation (x,N−1(x)).
– Otherwise, split N−1(x) into rx:=⌈∣N−1(x)∣/(δ−1D)⌉ disjoint sets Q1,…,Qrx of size between δ−1D/2 and δ−1D, and create rx operations (x,Q1),…,(x,Qrx).
Let A be the set of all operations (x,Q) created. We retain the nearest-unit weights from the previous LMP analysis. In the δ-integral setting, their token representation is
Since the sets {Q:(x,Q)∈A} partition N−1(x), for q=i, the number of operations (x,Q) with own(x)=q and i∈Q is wq,i/δ.
The imbalance β(x,Q) of an operation (x,Q) is defined as follows. If x is on a fractional facility i, then β(x,Q)=(1−δ)−δ∣Q∣. If x is on an open facility, then β(x,Q)=−δ∣Q∣. The weight of this operation is defined as ω(x,Q)=(1+η)1β(x,Q)<0.
• Sample an operation (x,Q) with probability proportional to its weight ω(x,Q). Perform the operation: open the facility that owns x and close all facilities in Q.
This finishes the description of the iterative algorithm. Note that the imbalance of an operation is the change in the total opening value ∣Ot∣+δ∣Rt∣ of facilities after performing the operation. By boosting the weight of operations with negative imbalance, we can control the exponential moment of ∣Ot∣+δ∣Rt∣ after each iteration. This gives a high probability guarantee about the final number of open facilities.
5.2 Analysis of the Number of Open Facilities
In this section, we bound the number of open facilities. Fix an iteration t and the history till the end of iteration t−1. For a token x, define its imbalance β(x) similarly to the imbalance of an operation: If x is on a fractional facility i, then β(x)=(1−δ)−δ∣N−1(x)∣. If x is on an open facility, then β(x)=−δ∣N−1(x)∣.
We split a token x only when ∣N−1(x)∣>δ−1D, which implies β(x)<0. The change of imbalance after this splitting is (recall that rx is the number of operations created by splitting N−1(x))
For the last inequality, every fragment of a split token has negative imbalance, since δ∣Q∣≥D/2>1−δ. Thus the positive imbalance is unchanged by splitting, and the total negative imbalance of the original tokens equals imb+ because ∑xβ(x)=0.
Denote by Yt the total opening value of facilities after iteration t, i.e., Yt=∣Ot∣+δ∣Rt∣. When t is larger than the number of iterations, we let Yt be the number of open facilities returned by the algorithm.
Lemma 5.2. (exp(λ(Yt−Y0)))t≥0 is a supermartingale. Consequently, for every h≥0,
Pr[t≥0supYt≥Y0+h]≤e−λh.
Proof. Fix an iteration t and condition on the history through iteration t−1. All expectations below are conditional on this history. Let ΔY=Yt−Yt−1; it suffices to show that E[exp(λΔY)−1]≤0. After termination, ΔY=0, so we consider only iterations before termination.
By definition we have −D≤β(x,Q)≤1. Write W=∑(x,Q)∈Aω(x,Q) for the total operation weight. For −D≤β(x,Q)≤0, we use eλβ(x,Q)−1≤λβ(x,Q)e−λD. For 0≤β(x,Q)≤1, we use eλβ(x,Q)−1≤λβ(x,Q)eλ. Therefore, we have
The stated tail bound follows from Ville's inequality applied to the nonnegative supermartingale Zt:=exp(λ(Yt−Y0)), since Z0=1.
Lemma 5.3. The algorithm terminates almost surely, with a polynomial expected number of iterations in ∣F∣ and δ−1.
Proof. For any iteration, there are at most ∣F∣δ−1 tokens, every token is split into at most 1+∣F∣δ−1/D operations, and ω(x,Q)≤2. Thus
(x,Q)∈A∑ω(x,Q)≤2∣F∣δ−1(1+∣F∣δ−1/D)
is polynomial. Any fractional facility is opened with probability at least 1/(2∣F∣δ−1(1+∣F∣δ−1/D)) in each iteration. By the union bound, the probability that the algorithm does not terminate after t iterations is at most
∣F∣(1−1/(2∣F∣δ−1(1+∣F∣δ−1/D)))t,
which is exponentially small in t. Thus the algorithm terminates almost surely and the expected number of iterations is polynomial.
To bound the number of opened facilities, we run independent trials of the rounding algorithm until a trial satisfies ∣O∣≤Y0+s.
Lemma 5.4. Each trial is accepted with probability at least 1−ζ.
Proof. By Lemma 5.3, the termination time σ is finite almost surely, and Yσ=∣Oσ∣. The rejection event is contained in {suptYt≥Y0+s}. By Lemma 5.2, its probability is at most e−λs≤ζ.
Therefore, the expected number of trials is at most 1/(1−ζ).
5.3 Analysis of Connection Cost of j
In this section, we fix a client j∈C, and we analyze the expected connection cost of j. For a fixed distance exponent p≥1, let Fj be the nearest 1/δ facilities of j in F, after the splitting operation. Thus δ∣Fj∣=1. Define
Then V(Fj) is the cost of j in the LP solution obtained from preprocessing.
In the analysis, we track the alive fractional set T⊆Fj and a backup cost b, initially (T,b)=(Fj,∞). Given a current state (T,b), a token x, and a partial deletion set Q⊆N−1(x), we define the state transition under operation (x,Q) by
We say that an operation (x,Q) is relevant to client j if Hx(Q)=1. A relevant operation removes at least one copy from T, whereas an irrelevant operation leaves both T and b unchanged. There are consequently at most 1/δ relevant operations, and the analytical state stays fixed once T=∅.
Definition 5.5. Let Pj(T,b) be a nonnegative potential, uniformly bounded over the reachable states of the fixed finite instance. We say that Pj has a local-charge certificate with initial bound Bj if
• Pj(Fj,∞)≤Bj,Pj(∅,b)≥b,∀ finite b≥0, and
at every reachable algorithm state with analytical state (T,b), there exist opening charges aj,x∈R (for each token x) and deletion charges gj,x,i∈R (for each token x and each i∈N−1(x)∩T) satisfying
We remark that in the second condition, the charges may depend on the entire current algorithm state, including (T,b) and the constructed operations, but the same aj,x and gj,x,i must satisfy (16) for every Q⊆N−1(x).
Intuitively, the opening charge aj,x accounts for the effect of opening own(x) and updating the backup cost, and is incurred once for each relevant operation associated with x. The deletion charge gj,x,i accounts for the removal of a tracked copy i∈Q∩T. Crucially, because the sets {Q:(x,Q)∈A} partition N−1(x), each deletion charge gj,x,i is counted at most once in the balance condition (17), even when token x is split into multiple operations.
Theorem 5.6. If every client has a local-charge certificate with Bj as in Definition 5.5, the opened facility set O of the accepted trial satisfies
∣O∣≤Y0+s,E[d(j,O)p]≤1−ζ(1+η)1/δBj.(18)
In particular, our choices η=εδ/4 and ζ=ε/4 yield E[d(j,O)p]≤(1+ε)Bj with an additive facility allowance of s=O(δ−2ε−2log(4/ε)).
Proof. We first analyze a single unconditioned trial of the algorithm. Fix the current state and let ν0(x,Q):=1/∣A∣ denote the uniform distribution over the constructed operations (x,Q)∈A. Let (T′,b′) be the random next state. Summing (16) over these operations gives
For (19), use (16) and the partition of N−1(x), which counts every deletion charge exactly once. (20) is precisely (17) for the constructed operations. Thus the unbiased potential drift is nonpositive.
Let Ij:={(x,Q)∈A:Hx(Q)=1} be the set of operations relevant to client j. Irrelevant operations leave the potential unchanged. Therefore, if Ij=∅,
E0[Pj(T′,b′)∣Ij]≤Pj(T,b).(21)
All probabilities and expectations in this part of the proof are conditional on the current state; the subscript specifies the sampling distribution.
In fact, the algorithm uses a biased sampling. It samples operation (x,Q) with probability
For (23), use ∣T′∣≤∣T∣−1 and nonnegativity of Pj(T′,b′). (24) follows from (22) and the same nonnegativity; (25) uses (21). Irrelevant operations preserve Pj(T,b). Averaging over relevant and irrelevant operations proves that Pj(T,b) is a supermartingale. If Ij is empty, this holds because the state does not change.
Let σ be the termination time of a single trial. By Lemma 5.3, it is finite almost surely. At termination, Tσ=∅ and the finite backup bσ is realized by a copy in Oσ. The potential is bounded and ∣T∣≤1/δ, so applying the supermartingale inequality gives
The first two inequalities use 1+εδ/4≤eεδ/4 and ε/4≤−log(1−ε/4). For the last inequality, (1+ε)(1−ε/4)2−1=(ε/4)(2−7ε/4+ε2/4)≥0 for 0<ε≤1. Substituting η−2=16δ−2ε−2 into the definition of s yields the stated bound on s.
5.4 The dispersion potential and the client-dependent certificate
The client j remains fixed in this section. Throughout we focus on the case p=1, i.e., the metric k-median problem. In this case, the backup cost b is also a distance. Recall that V(U)=∑i∈Uδdi in this case. Define
D(U)=i,q∈U∑δ2∣di−dq∣,Vj=V(Fj),Dj=D(Fj).
For U⊆Fj, let Φ(U,b)=2V(U)+(1−δ∣U∣)b be the potential from Section 4, and define
Notice that PjM(T,b) uses the same minimization over U⊆T as in (11), except that here we maintain this definition across all reachable states rather than switching at t∗. Moreover, in accordance with (15), the backup distance b is updated only on operations relevant to j and therefore serves as an upper bound on the distance to the nearest open facility. We now verify that PjM(T,b) satisfies the conditions of Definition 5.5.
We first record the basic properties needed for the local-charge certificate. For a fixed U, write m=δ∣U∣ and V=V(U). The bound D(U)≤2mV from (10) gives
Ψj(U,b)≥(2−6m)V+(1−m)b≥0.(29)
Here we follow the convention 0⋅∞=0, so (1−m)b=0 whenever m=1, including at b=∞. For finite b, the empty candidate gives PjM(T,b)≤b. If b=∞, then T=Fj, and only the full candidate has finite value. Consequently,
PjM(Fj,∞)=2Vj−12Dj,PjM(∅,b)=b,
and PjM is nonnegative and uniformly bounded over all reachable states.
To control the loss of dispersion under partial deletions, for each i∈U, define the endpoint charge
The minimum of the empty set is infinity. If ri=∞, then m=w(U,i) and (m−w(U,i))ri=0. These are the definitions in Section 4.3 with yq=δ and uqi=μq,i. Since every facility in U⊆T is still fractional, we have 0≤wq,i≤δ. The proof of Lemma 4.6 therefore applies to these weights and gives
Γ(U,w)≥4D(U).(31)
We now use these bounds to verify the local-charge certificate.
Lemma 5.7. The potential PjM(T,b) has a local-charge certificate with initial bound Bj=2Vj−Dj/12 as in Definition 5.5.
Proof. The initial and terminal values were established above. It remains to verify (16) and (17). Fix a current state (T,b) and a minimizing U⊆T in (28), so PjM(T,b)=Ψj(U,b). Throughout the proof, x denotes a current token, q=own(x) is its owner, and Q⊆N−1(x) is an arbitrary set of facilities to be deleted. If U=∅, then
PjM(Tx,Q,bx,Q)≤bx,Q≤b=PjM(T,b),
and all charges can be zero. Therefore we assume U=∅ and use m,V,μq,i,ri,I as defined above.
For each i∈U, let
bi=min{b,2di+ri},
where bi bounds the new backup distance when an owner outside U deletes i. Thus, if q∈/U and i∈Q∩U, then
bx,Q=min{b,dq}≤bi.(32)
For every token x, set gj,x,i=0 for i∈N−1(x)∩(T∖U). If q∈/U, set
aj,x=0,gj,x,i=δ(bi−2di)+ei(U)(i∈N−1(x)∩U).
If q∈U, put bˉq=min{b,dq} and choose Wq⊆U∖{q} minimizing Ψj(Wq,bˉq). Set
We first prove (16) for every token x and every Q⊆N−1(x). If Hx(Q)=0, both sides are zero, so assume Hx(Q)=1. For q∈/U, the set U∖Q is a candidate for the next potential. Hence
(35) uses Wq∖Q⊆Tx,Q and the definition of aj,x. (36) applies (30) to Wq. For (37), use bˉq≤dq and ei(Wq)≤ei(U). This proves (16).
We next prove (17). Recall that rx is the number of operations associated with x. If q∈U, its unique token x has Hx(Q)=1 for every Q with (x,Q)∈A. To control all rx occurrences of its opening charge, use ∅ and U∖{q} as candidates in the definition of Wq. They give
For (38), use Ψj(∅,bˉq)=bˉq for the first candidate and (1−m)bˉq−(1−m)b≤0 for the second candidate. (39) uses bˉq≤dq and Ψj(U,b)≥V from (29). For (40), use ∣dq−dv∣≤dq+dv in the definition of eq(U). For (41), the first term of the minimum is nonpositive when dq≤V, whereas the second is negative when dq>V. Consequently, rxaj,x≤aj,x.
We bound one occurrence of the opening charge as follows:
Multiply the LHS of (17) by δ. For q=i, (13) shows that the number of tokens owned by q whose deletion sets contain i is wq,i/δ. Each such token deletes i in exactly one of its operations. Therefore, the opening charges and the deletion charges from owners in U, excluding endpoint charges, satisfy
(43) uses rxaj,x≤aj,x and (42). (44) uses μq,i=δ−wq,i and the definition of I.
The deletion charges from owners outside U, excluding endpoint charges and multiplied by δ, sum to ∑i∈Uδ(1−w(U,i))(bi−2di). Combining this expression with the terms in (44) gives
For (45), substitute Φ(U,b)=2V+(1−m)b and split 1−w(U,i)=(m−w(U,i))+(1−m). Since bi=min{b,2di+ri}, we can bound the two corresponding terms by (m−w(U,i))(2di+ri) and (1−m)b.
Finally, for every i∈U, the set N(i) contains δ−1−1 tokens other than its own token. Each of them deletes i in exactly one operation. After multiplication by δ, the endpoint charges therefore sum to
Here s=O(δ−2ε−2log(4/ε)), and the expectation is over the rounding trials, including rejection of trials that exceed the facility budget. Since Y0≤k+3 and δ=εO(1), the algorithm always opens at most k+Oε(1) facilities and runs in expected polynomial time for fixed ε. Thus the conversion preserves the dispersion saving from Section 4, up to a multiplicative 1+ε loss. In the final combination, both rounding algorithms will be applied to this same preprocessed solution.
6 Robust Algorithm
In Section 4, the algorithm achieves the approximation ratio of 2 only when the connection distances in the support are the same. In this section, we present an algorithm that complements the previous algorithm, leading to the ratio better than 2.
For a fractional LP solution (x,y), split facilities into colocated copies so that each client has a complete nearest-unit support. For client j∈C, we again use Fj⊆F and Vj=∑i∈Fjyid(i,j) for the set of supporting facilities of j and its fractional cost in the LP solution. We further define the mean absolute deviation
Mj:=i∈Fj∑yi∣d(i,j)−Vj∣.
Observe that Mj is always bounded above by its dispersion Dj.
The main theorem we prove in this section is as follows:
Theorem 6.1. There exists a randomized polynomial-time algorithm that, given a complete fractional solution (x,y) with y(F)≥1, returns a facility set Fopen⊆F with ∣Fopen∣≤⌈y(F)⌉, satisfying for every j∈C,
where the expectation is over the randomness of Fopen.
6.1 Clients and Their Radii
Due to y(Fj)=1, we may view {(d(i,j),yi)}i∈Fj as a probability distribution, denoted by Pj. Consequently, we have
EX∼Pj[X]=i∈Fj∑yid(i,j)=Vj.
For each client j, we say a radius R is admissible for j if the total y-mass of the closed ball with radius R centered at j on Pj is at least 1/2, i.e.,
y({i∈Fj:d(i,j)≤R})≥21.(48)
Given a radius R, we denote by Tj(R) the “partial expectation” of Pj outside the radius-R ball centered at j, i.e.,
By definition, we always have Tj(R)≤Vj for any R.
For each client j, we find a threshold radius Rj as the radius R minimizing R+5e⋅Tj(R) subject to the constraint that R is admissible for j. Since ∣supp(Pj)∣=O(∣F∣), one can easily compute Rj in polynomial time. For notational simplicity, let Tj:=Tj(Rj) and define the assurance radius Aj:=Rj+5e⋅Tj as the value of the objective function in calculating the threshold radius Rj.
We have three upper bounds for the assurance radius Aj of a client j. In the regular case where every facility in Fj is at the same distance from j, we have a clear characterization of Aj as follows.
Lemma 6.2. For a client j∈C, if every facility i∈Fj is at the same distance d(i,j)=Vj from j, we then have Aj=Rj=Vj.
Proof. Note that radius Vj is admissible for j in this uniform distance case, achieving Vj as the objective value in computing Rj. No radius R<Vj is admissible, since its ball contains no support mass. For any radius R>Vj, the objective value is R. These together imply that Vj is the optimal choice for Rj, whose objective value Aj is Vj.
For general cases, the next lemma provides an upper bound independent from the distance profile of client j.
Lemma 6.3. For any client j∈C, Aj≤(2+5e)Vj.
Proof. If Vj=0, then X∼Pj is 0 almost surely, and hence Aj=0 by Theorem 6.2. Otherwise, for X∼Pj, we have Pr(X>2Vj)≤1/2 due to Markov's inequality, implying that 2Vj is admissible for j since Pr(X≤2Vj)=y({i∈Fj:d(i,j)≤2Vj})≥1/2. We thus have
For the second statement, we split E[∣X−Vj∣] into two values, depending on whether the distance is at least or less than Vj:
E[∣X−Vj∣]=E[(X−Vj)1X≥Vj]+E[(Vj−X)1X<Vj].
Note that these two values are equal since
E[(X−Vj)1X≥Vj]−E[(Vj−X)1X<Vj]=E[X−Vj]=0,
showing the second statement. The last statement is then immediately derived from Markov's inequality since Pr(X>Vj+t)=Pr(X−Vj>t) and E[(X−Vj)+]=Mj/2.
We can now prove our profile-dependent upper bound on the assurance distance of client j.
Lemma 6.5. For any client j∈C, Aj≤Vj+10e⋅VjMj+25e⋅Mj.
Proof. If Vj=0 or Mj=0, then Pj is supported on the equal distance Vj. We thus have Aj=Vj due to Theorem 6.2, implying the lemma. We now assume Vj>0 and Mj>0. Let t:=25e⋅VjMj>0. By the first statement of Theorem 6.4, we derive that t≥Mj, further implying that R=Vj+t is admissible for j due to the third statement of Theorem 6.4. Observe that
The algorithm consists of two steps: The first step is to construct disjoint bundles of representatives by filtering, and the second step is to apply a dependent rounding on a maximum matching of the representatives.
6.2.1 Filtering
The filtering procedure starts with all clients and proceeds in rounds until no client remains. For each round,
we select a client r with the minimum Ar among the remaining clients, and make it a representative;
• we then remove every remaining client j with d(j,r)≤2max{Rj,Rr};
Let R⊆C be the set of representatives from the above filtering procedure, and for every non-representative client j∈C∖R, let r(j)∈R denote the representative that removes client j; we further define r(j)=j for j∈R. Following are simple observations from the execution of the procedure.
Observation 6.6. For every j∈C∖R, we have Ar(j)≤Aj and d(j,r(j))≤2max{Rj,Rr(j)}. For every pair of distinct r,s∈R, d(r,s)>2max{Rr,Rs}.
Proof. The first two inequalities follow from the fact that j remains unselected when r(j) is selected. For the last inequality, if distinct r,s∈R satisfy d(r,s)≤2max{Rr,Rs}, one of r and s must have been deleted when the other was selected, contradicting that both are representatives.
6.2.2 Disjoint Bundles
For a representative r, we define its bundle radius Br:=21d(r,R∖{r}) and its bundle Ur:={i∈Fr:d(i,r)<Br}. For the degenerate case R={r}, we simply define Br=∞.
Observation 6.7 (Disjointness). For every pair of distinct r,s∈R, Ur∩Us=∅.
Proof. Assume toward contradiction that there exists a facility i∈Ur∩Us. By definition, we have d(i,r)<21d(r,s) and d(i,s)<21d(r,s). Hence, the triangle inequality of d gives a contradiction since d(r,s)≤d(i,r)+d(i,s)<d(r,s).
Lemma 6.8. For every r∈R, Br≥Rr. Consequently, 21≤y(Ur)≤1.
Proof. If R={r}, then Ur=Fr and y(Ur)=1, so the lemma holds. Otherwise, let s be a closest representative to r. We then have
Br=21d(r,s)>max{Rr,Rs}≥Rr,
where the first inequality is due to Theorem 6.6. Consequently, we deduce
21≤y({i∈Fr:d(i,r)≤Rr})≤y(Ur)≤y(Fr)=1,
where the first inequality follows from the admissibility of Rr.
6.2.3 Dependent Rounding
Before applying the dependent rounding, a matching M of R is greedily constructed by iteratively matching two closest unmatched representatives. The matching M is maximal, i.e., at most one representative is unmatched.
Next we apply the dependent rounding in [31] on a laminar family {F}∪{Ur∪Us:{r,s}∈M}∪{Ur:r∈R}. Let Yi∈{0,1} be a result from the dependent rounding for facility i. The rounding guarantees that
Furthermore, let Fopen:={i∈F:Yi=1}, and the rounding also has a negative-correlation property:
Pr(Fopen∩S=∅)≤i∈S∏(1−yi)≤e−y(S)∀S⊆F.(53)
We first show that every representative is guaranteed to be served deterministically by an open facility within distance a constant factor of its bundle radius.
Lemma 6.9. For any representative r∈R, d(r,Fopen)≤5Br.
Proof. If ∣R∣=1, the lemma trivially holds since Br=∞. Hence, we assume ∣R∣≥2. Let S⊆R∖{r} denote the set of closest representatives to r, i.e., S:=argminj∈R∖{r}d(r,j). Note that Br=d(r,j)/2 for every j∈S by definition.
Suppose for the moment that there exists an unmatched representative in S when r is about to be matched. In this case, r must be matched with a representative j∈S due to the greediness of the matching procedure, and hence, there exists an open facility in the merged bundle Ur∪Uj due to (52). We thus obtain
d(r,Fopen)≤d(r,j)+Bj=2Br+Bj≤3Br,
where the last inequality is due to the definition of Bj:=21d(j,R∖{j})≤d(j,r)/2=Br.
On the other hand, if every representative in S is matched before r, including the case that r remains unmatched at termination, we consider an arbitrary j∈S matched with another representative j′∈R∖{r,j}. Note that d(j,j′)≤d(j,r) by the greediness of the matching procedure. Since the dependent rounding procedure guarantees to open a facility in the merged bundle Uj∪Uj′ due to (52), we deduce
where the second inequality is again due to the definition of Bj′:=21d(j′,R∖{j′})≤d(j′,j)/2.
Based on the above lemma, we can prove that the expected excess of connection cost for a representative beyond its threshold radius can be fully compensated by a constant factor of the partial expectation of Pj beyond its threshold radius.
Lemma 6.10. For any representative r∈R, E[(d(r,Fopen)−Rr)+]≤5Tr=5EX∼Pr[X1X>Rr].
Proof. If R={r}, then Ur=Fr has mass one and exactly one of its facilities opens by the dependent rounding procedure. We thus have
Let us now assume ∣R∣≥2. Since the dependent rounding procedure opens at most one facility from Ur due to (51), we know that events {i∈Fopen}i∈Ur partition the event {Ur∩Fopen=∅}.
The marginal probability of a facility i∈Ur being open is precisely yi due to (50), and under this event, we easily have
(d(r,Fopen)−Rr)+≤(d(i,r)−Rr)+.
Moreover, the event that none of Ur are open happens with probability 1−y(Ur), in which Theorem 6.9 gives a backup bound as follows:
where (a) is due to the fact that every facility i∈Fr∖Ur is at distance at least Br by definition.
6.3 Analysis
In this section, we prove Theorem 6.11, which is a key lemma for proving Theorem 6.1. Note that Theorem 6.1 indeed follows from Theorems 6.3, 6.5 and 6.11.
Lemma 6.11. For every client j∈C, E[d(j,Fopen)]≤(1−e1)Vj+e3Aj.
Following is a simple fact easily shown by convexity.
Lemma 6.12. For any q∈[0,1], e−q≤e1+(1−e1)(1−q).
Proof. The right-hand side is the line segment connecting (0,1) and (1,1/e). Observe that these two points are also on the left-hand side e−q. The convexity of e−q then completes the proof. □
We are now ready to prove the key lemma.
Proof of Theorem 6.11. Let r:=r(j) denote the representative deleting j in the filtering procedure, and let Lj:=d(j,r)+Rr. Observe that Lj is an upper bound of d(j,Fopen) if a facility is open in the ball of threshold radius Rr around r. Otherwise, we use a backup facility, in which the distance is bounded above by Theorem 6.10.
We first bound (I) above. For any t>0, let Fj(t):={i∈Fj:d(i,j)≤t} denote the facilities at distance no greater than t. We then have the following bound on the integrands:
where the last inequality comes from the fact that
Vj=EX∼Pj[X]=∫0∞Pr(X>t)dt=∫0∞(1−y(Fj(t)))dt.
For (II), observe that this term can be written as E[(d(j,Fopen)−Lj)+]. Let ij and ir be the nearest open facilities to clients j and r, respectively, i.e., d(j,Fopen)=d(j,ij) and d(r,Fopen)=d(r,ir). We thus have
where (a) follows from the definition of Ar:=Rr+5eTr, (b) from Theorem 6.6, and (c) from the fact that Rj≤Aj and Rr≤Ar≤Aj due to the definitions of Aj and Ar and again Theorem 6.6.
7 Combining the Roundings: An Approximation Below Two
In this section, we combine all the components to derive our final better-than-2 approximation. Our goal is to obtain the following pseudo-approximation: an α approximation for the k-median problem using k+c facilities, for some α=2−Ω(1) and c=O(1). This is sufficient as the reduction of Li and Svensson [27, Theorem 4] converts such an algorithm into an (α+τ)-approximation in time nO(c/τ) times the running time of the pseudo-approximation.
We first solve the LP relaxation (3) for k-median. Let ε>0 be a sufficiently small constant. We perform the preprocessing step for this ε in Section 3 to obtain a δ-integral solution, for some δ=εO(1). This will increase the number of fractional open facilities by 3, and the cost by a multiplicative factor of 1+O(ε). Abusing notations slightly, we still use (x,y) to denote the new LP solution. Define Vj,Dj,Mj for every j∈C using this solution.
Let ρ∈(0,1]. By Theorem 5.6 and Lemma 5.7, Algorithm 5.1 returns a random set O1 such that
Let O the solution in O1 and O2 with a smaller cost, breaking ties arbitrarily. Clearly, we have ∣O∣≤max{∣y∣1+s,∣y∣1}. The following lemma bounds the cost of O:
The function f is strictly decreasing and g is strictly increasing, with g(0)<f(0) and g(2)>f(2). Thus their lower envelope has its unique maximum at their intersection. The equation f(β)=g(β) is
1291β+e90β=1−e2.
Substituting u=β gives au2+bu−c=0, whose positive root is (56). This proves the cost bound. The facility bound holds in every outcome by (54) and (55).
When our ε and ρ are sufficiently small, the approximation ratio we obtain is at most 1.9999. This proves Theorem 1.1.
Acknowledgment
The work of Shi Li and Zaixuan Wang is supported by State Key Laboratory for Novel Software Technology, New Cornerstone Science Foundation, and Fundamental and Interdisciplinary Disciplines Breakthrough Plan of the Ministry of Education of China (No.JYB2025XDXM118).
References
[1] Sara Ahmadian, Ashkan Norouzi-Fard, Ola Svensson, and Justin Ward. Better guarantees for k-means and Euclidean k-median by primal-dual algorithms. SIAM Journal on Computing, 49(4), 2020. Preliminary version in FOCS 2017.
[2] Aditya Anand and Euiwoong Lee. Separating k-median from the supplier version. In Integer Programming and Combinatorial Optimization (IPCO), volume 14679 of LNCS, pages 14–27, 2024.
[3] Sanjeev Arora, Prabhakar Raghavan, and Satish Rao. Approximation schemes for Euclidean k-medians and related problems. In Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC), 1998.
[4] 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.
[5] 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. arXiv:2610.18144, 2026.
[6] 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 II: Stable instances. arXiv:2610.17172, 2026.
[7] Jarosław Byrka and Karen Aardal. An optimal bifactor approximation algorithm for the metric uncapacitated facility location problem. SIAM Journal on Computing, 39(6):2212–2231, 2010.
[8] Jarosław Byrka, Yuhao Guo, Yang Hu, Shi Li, Chengzhang Wan, and Zaixuan Wang. k-clustering via iterative randomized rounding. In Proceedings of FOCS 2026, 2026.
[9] 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 Transactions on Algorithms, 13(2):23:1–23:31, 2017. Preliminary version in SODA 2015.
[10] Moses Charikar and Sudipto Guha. Improved combinatorial algorithms for the facility location and k-median problems. In Proceedings of the 40th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 378–388, 1999.
[11] Moses Charikar, Sudipto Guha, Éva Tardos, and David B. Shmoys. A constant-factor approximation algorithm for the k-median problem. Journal of Computer and System Sciences, 65(1):129–149, 2002. Preliminary version in STOC 1999.
[12] Moses Charikar and Shi Li. A dependent LP-rounding approach for the k-median problem. In Automata, Languages, and Programming (ICALP), volume 7391 of LNCS, pages 194–205, 2012.
[13] Vincent Cohen-Addad, Hossein Esfandiari, Vahab Mirrokni, and Shyam Narayanan. Improved approximations for Euclidean k-means and k-median, via nested quasi-independent sets. In Proceedings of the 54th Annual ACM Symposium on Theory of Computing (STOC), pages 1621–1628, 2022.
[14] Vincent Cohen-Addad, Andreas Emil Feldmann, and David Saulpic. Near-linear time approximation schemes for clustering in doubling metrics. In Proceedings of the 60th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 540–559, 2019.
[15] 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 ACM-SIAM Symposium on Discrete Algorithms (SODA), 2023.
[16] 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), pages 615–624, 2025.
[17] Vincent Cohen-Addad, Anupam Gupta, Amit Kumar, Euiwoong Lee, and Jason Li. Tight FPT approximations for k-median and k-means. In Proceedings of the 46th International Colloquium on Automata, Languages, and Programming (ICALP), volume 132 of LIPIcs, pages 42:1–42:14, 2019.
[18] Vincent Cohen-Addad and Karthik C. S. Inapproximability of clustering in ℓp metrics. In Proceedings of the 60th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 519–539, 2019.
[19] Vincent Cohen-Addad, Karthik C. S., and Euiwoong Lee. Johnson coverage hypothesis: Inapproximability of k-means and k-median in ℓp metrics. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms (SODA), 2022.
[20] 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 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 987–1011, 2023.
[21] Sudipto Guha and Samir Khuller. Greedy strikes back: Improved facility location algorithms. Journal of Algorithms, 31(1):228–248, 1999.
[22] Kamal Jain, Mohammad Mahdian, Evangelos Markakis, Amin Saberi, and Vijay V. Vazirani. Greedy facility location algorithms analyzed using dual fitting with factor-revealing LP. Journal of the ACM, 50(6):795–824, 2003.
[23] Kamal Jain, Mohammad Mahdian, and Amin Saberi. A new greedy approach for facility location problems. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC), pages 731–740, 2002.
[24] Kamal Jain and Vijay V. Vazirani. Approximation algorithms for metric facility location and k-median problems using the primal-dual schema and Lagrangian relaxation. Journal of the ACM, 48(2):274–296, 2001.
[25] Stavros G. Kolliopoulos and Satish Rao. A nearly linear-time approximation scheme for the Euclidean k-median problem. SIAM Journal on Computing, 37(3):757–782, 2007.
[26] Shi Li. A 1.488 approximation algorithm for the uncapacitated facility location problem. Information and Computation, 222:45–58, 2013. Preliminary version in ICALP 2011.
[27] Shi Li and Ola Svensson. Approximating k-median via pseudo-approximation. SIAM Journal on Computing, 45(2):530–547, 2016. Preliminary version in STOC 2013.
[28] OpenAI. The approximation threshold for metric k-median. Manuscript dated September 24, 2026, released in October 2026 in the openai/math repository, https://github.com/openai/math, 2026.
[29] OpenAI. Single-exponential recovery and bounded-price strictness for metric k-median. Manuscript dated September 24, 2026, released in October 2026 in the openai/math repository, https://github.com/openai/math, 2026.
[30] David B. Shmoys, Éva Tardos, and Karen Aardal. Approximation algorithms for facility location problems. In Proceedings of the 29th Annual ACM Symposium on Theory of Computing (STOC), pages 265–274, 1997.
[31] Aravind Srinivasan. Distributions on level-sets with applications to approximation algorithms. In Proceedings 42nd IEEE Symposium on Foundations of Computer Science, pages 588–597, 2001.