An Improved Approximation for $k$-median, and Positive Correlation in Budgeted Optimization

Jarosław Byrka, Thomas Pensyl, Bartosz Rybicki, Aravind Srinivasan, Khoa Trinh

Introduction and High-Level Details

We consider two notions in combinatorial optimization: a concrete problem (the classical kk-median problem) and a formulation of new types of distributions (generalizations of dependent-rounding techniques); the breakthrough of Li & Svensson on the former uses special cases of the latter. We improve the approximation ratio of for the former, and develop efficient samplers for the latter – which, in particular, show that such distributions exist; we then combine the two to improve the run-time of our approximation algorithm for kk-median. The ideas developed here also lead to optimal approximations for certain budgeted satisfiability problems, of which the classical budgeted set-cover problem is a special case. We discuss these contributions in further detail in Sections 1.1, 1.2, and 1.3.

Metric kk-median is a fundamental location problem in combinatorial optimization. Herein, we are given a set F\mathcal{F} of facilities, a set J\mathcal{J} of clients, a budget kk, and a symmetric distance-metric dd on F∪J\mathcal{F}\cup\mathcal{J}. The goal is to open a subset of at most kk facilities in F\mathcal{F} such that the total distance (or connection cost) from each client to its closest opened facility is minimized. Note that the only decision is which subset of the facilities to open. This problem is known to be NPNP-hard, so there has been much work done on designing approximations with provable performance guarantees; indeed, virtually every major technique in approximation algorithms has been used and/or developed for this problem and its variants.

Convex combinations of two integral solutions, with the corresponding convex combination of the number of open facilities being kk, will be particularly useful for us:

(Bi-point solution) Given a kk-median instance I\mathcal{I}, a bi-point solution is a pair F1,F2⊆F\mathcal{F}_{1},\mathcal{F}_{2}\subseteq\mathcal{F} such that ∣F1∣≤k≤∣F2∣|\mathcal{F}_{1}|\leq k\leq|\mathcal{F}_{2}|, along with reals a,b≥0a,b\geq 0 with a+b=1a+b=1 such that a∣F1∣+b∣F2∣=ka|\mathcal{F}_{1}|+b|\mathcal{F}_{2}|=k. (That is, the convex combination of the two “solutions” is feasible for the natural LP relaxation of I\mathcal{I}.) The cost of this bi-point solution is defined as aD1+bD2aD_{1}+bD_{2}, where D1D_{1} and D2D_{2} are the connection costs of F1\mathcal{F}_{1} and F2\mathcal{F}_{2} respectively.

Charikar, Guha, Tardos, and Shmoys used LP-rounding to achieve the first constant factor approximation ratio of 6236\frac{2}{3} . Then, Jain and Vazirani applied Lagrangian Relaxation to remove the hard constraint of opening at most kk facilities, effectively reducing the problem to an easier version known as the Uncapacitated Facility Location (UFL) problem. Using this technique together with primal-dual methods for UFL, they first find a bi-point solution, losing a factor of 3. They then round this bi-point solution to an integral feasible solution losing another multiplicative factor of 2, yielding a 66-approximation. Later, Jain, Mahdian, and Saberi (JMS) improved the approximation ratio of constructing the bi-point solution to 22, resulting in a 44-approximation . Following this, a local-search-based (3+ϵ)(3+\epsilon)-approximation algorithm was developed by Arya et al. .

Recently, Li and Svensson’s breakthrough work gave a (1+3+ϵ)(1+\sqrt{3}+\epsilon)-approximation algorithm for kk-median . To accomplish this, they defined an α\alpha-pseudo-approximation algorithm to be one that is an α\alpha-approximation which, however, opens k+O(1)k+O(1) facilities, and showed – very surprisingly – how to use such an algorithm as a blackbox to construct a true (α+ϵ)(\alpha+\epsilon)-approximation algorithm. They then took advantage of this by giving a bi-point rounding algorithm which opens k+O(1)k+O(1) facilities, but loses a factor of 1+32+ϵ\frac{1+\sqrt{3}}{2}+\epsilon instead of the previous 2. Together with the factor of 2 lost during the JMS bi-point construction algorithm, this yields the final approximation ratio. Letting NN denote the input-size, the runtime of is NO(1/ϵ2)N^{O(1/\epsilon^{2})}.

In this paperIn the conferrence version we claimed that we can also improve the cost of the bi-point solution, which was not correct. More details you can find in Appendix H., we improve the bi-point rounding step to give an algorithm for kk-median with improved approximation ratio and runtime. Section 3 presents an improved approximation for rounding bi-point solutions; we obtain 1.3371+ϵ1.3371+\epsilon instead of 1+32+ϵ∼1.366+ϵ\frac{1+\sqrt{3}}{2}+\epsilon\sim 1.366+\epsilon. Section 2 develops our dependent rounding technique, a specific application of which reduces the dependence of the run-time on ϵ\epsilon from NO(1/ϵ2)N^{O(1/\epsilon^{2})} as in , to NO((1/ϵ)log⁡(1/ϵ))N^{O((1/\epsilon)\log(1/\epsilon))}.

How can we round a bi-point solution to a feasible one? We present a rounding algorithm that obtains a factor of 1.3371+ϵ1.3371+\epsilon. This yields a 2×1.3371+ϵ∼(2.675+ϵ)2\times 1.3371+\epsilon\sim(2.675+\epsilon)-approximation algorithm for kk-median, an improvement over Li and Svensson’s (2.733+ϵ)(2.733+\epsilon). We analyze the worst-case instances of Li and Svensson’s approach, the structure of which leads us to the new algorithm.

Let the given bi-point solution be parametrized by F1,F2,a,b,D1,\mathcal{F}_{1},\mathcal{F}_{2},a,b,D_{1}, and D2D_{2} as in Definition 1.1. As an initial goal (which we will relax shortly), suppose we are interested in an algorithm which rounds this bi-point solution to an integer solution of cost at most α(aD1+bD2)\alpha(aD_{1}+bD_{2}), for some α\alpha. As already mentioned, such an algorithm can be used to get a (2×α)(2\times\alpha)-approximation to kk-median. Suppose a client jj is closest to i1i_{1} in solution F1\mathcal{F}_{1}, and i2i_{2} in pseudo-solutionOne that may open more than kk facilities. F2\mathcal{F}_{2}. Ideally, one would like to round the bi-point solution in such a way that i1i_{1} is open with probability aa, and i2i_{2} is open with the remaining probability bb. Then the expected connection cost of jj would be exactly its contribution to the bi-point cost, and we would get a bi-point rounding factor of 11. The problem is that we cannot directly correlate this pair of events for every single client, while still opening only kk facilities. Jain and Vazirani’s approach is to pair each i1∈F1i_{1}\in\mathcal{F}_{1} with its closest neighbor in F2\mathcal{F}_{2}, and ensure that one of the two is open . This approach loses at most a factor of 22, which is equal to the integrality gap of the kk-median LP, and so is the best one might expect. However, Li and Svensson beat this factor by allowing their algorithm to open k+ck+c facilities. They then give a (surprising) method to convert such an algorithm to one that satisfies the budget-kk constraint, adding ϵ\epsilon to the approximation constant, and a factor of nO(c/ϵ)n^{O(c/\epsilon)} to the runtime. This method actually runs the algorithm on a polynomial number of sub-instances of the original problem, and thus is not limited by the integrality gap of the original LP. Thus we obtain our relaxed goal:

(Relaxed goal) Given a bi-point solution parametrized by F1,F2,a,b,D1,\mathcal{F}_{1},\mathcal{F}_{2},a,b,D_{1}, and D2D_{2} as in Definition 1.1, round it to an integer pseudo-solution using at most k+f(ϵ)k+f(\epsilon) facilities, and of cost at most α(aD1+bD2)\alpha(aD_{1}+bD_{2}) for α∼1.3371\alpha\sim 1.3371. Here, ϵ>0\epsilon>0 is an arbitrary constant.

We will mainly discuss how to achieve such an improved α\alpha now, and defer discussion of the function ff to Section 1.2.1.

Li and Svensson’s approach, which we will generalize, is to create a cluster for every facility in F1\mathcal{F}_{1}, and put each facility in F2\mathcal{F}_{2} into its nearest cluster. We refer to each cluster as a star. Each star has a single center in F1\mathcal{F}_{1}, and zero or more leaves in F2\mathcal{F}_{2}. It is useful to consider algorithms with the property that each star has either its center or all of its leaves opened (we will do better by relaxing this property). Then our client jj may always connect to either i2i_{2}, or the center of the star containing i2i_{2}, which cannot be too far away. The work of presents two such algorithms. The first is based on a knapsack-type LP, and yields a rounding factor of 1.531.53 by opening two extra facilities. The second opens aa and bb fractions of F1\mathcal{F}_{1} and F2\mathcal{F}_{2} at random and obtains 1+3+ϵ2≈1.366+ϵ\frac{1+\sqrt{3}+\epsilon}{2}\approx 1.366+\epsilon by opening O(1/(abϵ))O(1/(ab\epsilon)) extra facilities. (The former and the trivial solution F1\mathcal{F}_{1} are used to handle the cases where aa or bb is close to zero.)

We improve this by first considering the stars with only one leaf (or 1-stars) separately from the stars with two or more leaves (or 2-stars). This allows us more freedom in shifting probability mass. For 1-stars, we do not need to worry about opening aa of the centers and bb of the leaves. We can instead consider either opening the leaf, or opening the center, and then choose the better of the two. For 2-stars, we still have the option of opening the center and leaves in proportion aa and bb respectively. However we also may shift the mass toward the centers, and open them in proportion 11 and b/2b/2 instead. This gives 4 possible combinations; we may try them all and take the best solution. When combined with the aforementioned knapsack-based algorithm, this idea improves the approximation from 1.531.53 to 1.41.4, with the same nO(1/ϵ)n^{O(1/\epsilon)} runtime. However, it does not immediately improve the (1+3)/2(1+\sqrt{3})/2 factor. It does, however, impose some useful structure on the distribution of clients in a worst-case instance. Also, we may consider shifting mass from 2-stars to 1-stars, the extreme being that we open the centers of all the 2-stars and open the remaining facilities in 1-stars. This must beat the (tight) bound of D1D_{1}, which would mean it does better than (1+3)/2(1+\sqrt{3})/2. However, this effect is negligible if the number of 1-stars dominates the number of 2-stars. Thus, a worst-case instance must have a very large fraction of 1-stars.

But if there are so many 1-stars, perhaps we could close entirely (center and leaf) a tiny fraction of them and shift the mass to other stars. In fact, one may show a bi-point solution where 1.366 is the best we can do while still preserving the center-or-leaves property for all stars, but once we are allowed to close the center and leaf of some of the 1-stars, we get a factor of 1. This motivates the following strategy: For each 1-star, classify it as “long” or “short” based on its relative “size” (distance from the center to the leaf) compared to its distance to the nearest leaf of a 2-star. If many such stars are long, we may close both the center and the leaf, and still get a reasonable cost bound for any client connected to that star. This gives us the ability to consider shifting mass from these long stars to other stars. On the other hand, if many such stars are short, this actually means we may obtain a better cost bound for clients connected to centers of short 1-stars and leaves of 2-stars, by connecting them to the leaf of the short star in the worst case. (The worst-case structure mentioned above enforces that there are such clients.) In either case we obtain a factor strictly smaller than (1+3)/2(1+\sqrt{3})/2.

To find the approximation constant of this new algorithm, we construct a factor-revealing non-linear program, the solution to which describes the new worst-case instance. The program is not convex, so local-search methods have no guarantee of finding the global optimum. However, there are 4 variables that, when fixed, render the system linear. Inspired by Zwick’s use of interval arithmetic , we consider a relaxation of the LP over a small interval of those 4 variables. The relaxation itself is linear and may be solved efficiently, but still gives a valid upper bound on the value of the original program in that interval. By splitting the search space into sufficiently small intervals, we are able to systematically prove an upper bound over the entire space, leading rigorously to the value of 1.3371.

Our approach shows there is potential to improve the approximation by improving the bi-point rounding algorithm. On the other hand, we give a family of explicit instances and bi-point solutions whose optimal rounding loses a factor of 1+22≈1.207\frac{1+\sqrt{2}}{2}\approx 1.207, even when we allow k+o(k)k+o(k) facilities to be opened.

2 Dependent rounding with almost-independence on small subsets

Dependent rounding has emerged as a useful technique for rounding-based algorithms. We start by discussing an “unweighted” special case of it, which captures much of its essence. Section 1.2.1 then discusses the general weighted case and its applications to kk-median: specifically, our improvement of the function f(ϵ)f(\epsilon) of Definition 1.2 from the Θ(1/ϵ)\Theta(1/\epsilon) of to Θ(log⁡(1/ϵ))\Theta(\log(1/\epsilon)). This leads to our improved run-time.

Let us discuss the basic “unweighted” setting of dependent rounding. Starting with the key deterministic “pipage rounding” algorithm of Ageev & Sviridenko , dependent-rounding schemes have been interpreted probabilistically, and have found several applications and generalizations in combinatorial optimization (see, e.g., for a small sample). These naturally induce certain types of negative correlation and sometimes even-more powerful negative-association properties , which are useful in proving Chernoff-like concentration bounds on various monotone functions of such random variables. We consider settings where some form of positive correlation is desirable in dependent rounding, and construct efficiently-sampleable distributions that offer much more than what regular dependent-rounding and limited positive correlation ask for.

the “right” marginals: ∀i\forall i, Pr⁡[Xi=1]=pi\Pr[X_{i}=1]=p_{i};

negative correlation: ∀S⊆[n] ∀b∈{0,1}, Pr⁡[⋀i∈S(Xi=b)]≤∏i∈SPr⁡[Xi=b]\forall S\subseteq[n]~{}\forall b\in\{0,1\},~{}\Pr[\bigwedge_{i\in S}(X_{i}=b)]\leq\prod_{i\in S}\Pr[X_{i}=b].

As we see below, some algorithms for applications including kk-median and budgeted MAX-SAT ask for the above properties, but also desire some form of positive correlation among selected (often “small”) subsets of the variables. Generalizing all of these, our basic problem is:

we want for some tt and suitably-small β1,β2\beta_{1},\beta_{2} that

Our results for the basic problem. We present a randomized linear time algorithm to sample (X1,X2,…,Xn)∈{0,1}n(X_{1},X_{2},\ldots,X_{n})\in\{0,1\}^{n} such that (A1), (A2) and (A3) hold, and with (A4) true with the following parameters:

In particular, for t=o(αn)t=o(\alpha\sqrt{n}), we get β1,β2=o(1)\beta_{1},\beta_{2}=o(1) – i.e., we have near-independence to within (1±o(1))(1\pm o(1)) factors. This result is presented in Theorem 2.10. We add an extra element of randomness to the approach of , in order to obtain our results. (For applications where α\alpha or its substitutes α^\hat{\alpha} and q^\hat{q} are extremely close to zero, one can often round the pjp_{j}’s that are very close to or 11 separately – e.g., by techniques such as those of Appendix G.)

In Section 2, we develop a general solution to the weighted dependent-rounding problem, which in particular solves the unweighted problem ((A1) – (A4)); this is done without assuming that t=O(1)t=O(1), or that all the pip_{i}’s are the same, etc. Since (A4) – for the weighted and unweighted cases – goes far beyond negative correlation (property (A3)) alone, we believe that our method could have a range of consequences, given the number of applications of dependent rounding seen over the last 1515 years. In any case, when specialized to the kk-median application, this enables us to set f(ϵ)=Θ(log⁡(1/ϵ))f(\epsilon)=\Theta(\log(1/\epsilon)) in the context of Definition 1.2, and hence our overall run-time for kk-median becomes NO((1/ϵ)log⁡(1/ϵ))N^{O((1/\epsilon)\log(1/\epsilon))}.

3 Budgeted MAX-SAT

The budgeted version of set-cover is well-understood: given a set-cover instance in which we can choose at most kk sets, we aim to make this choice in order to maximize the (weighted) number of ground-set elements covered . The work of presents an (1−1/e)(1-1/e)-approximation for this problem, and shows the hardness of obtaining an (1−1/e+ϵ)(1-1/e+\epsilon)-approximation. This problem can be naturally generalized as follows. Consider an arbitrary CNF-SAT formula ϕ\phi over Boolean variables x1,x2,…,xnx_{1},x_{2},\ldots,x_{n}, and with weight wi≥0w_{i}\geq 0 for clause ii. We aim to assign a True/False value to each xjx_{j}, in order to maximize the total weight of the satisfied clauses. However, we also have a hard budget-constraint as follows. The cost model is that there exist a,b≥0a,b\geq 0 such that for each xjx_{j}, we pay aa if we set xjx_{j} to True, and bb if we set xjx_{j} to False. We have a hard budget of BB on our total cost. (Such a budget-constraint is perhaps more well-motivated when we view each variable as having two possible general choices, rather than True/False.) Thus, letting XjX_{j} be the indicator variable for xjx_{j} being true, our budget constraint for the case a≥ba\geq b is that ∑jXj≤k′\sum_{j}X_{j}\leq k^{\prime} (where k′=⌊(B−nb)/(a−b)⌋k^{\prime}=\lfloor(B-nb)/(a-b)\rfloor); if b>ab>a, then by complementing all variables, we get a constraint of the same type. Thus, we may assume w.l.o.g. that ∑jXj≤k\sum_{j}X_{j}\leq k is our budget constraint, for some given integer kk. Note that budgeted set-cover is the special case of this problem when the formula ϕ\phi has no variables negated. The constraint “∑jXj≤k\sum_{j}X_{j}\leq k” naturally suggests dependent rounding; on the other hand, clauses in ϕ\phi such as “xi∨xj‾x_{i}\vee\overline{x_{j}}” would benefit from positive correlation. For this budgeted MAX-SAT problem, though, some of our rounding approaches for kk-median show that the structure of the problem allows for a simple rounding solution, leading to an essentially-best-possible (1−1/e−ϵ)(1-1/e-\epsilon)-approximation for any constant ϵ>0\epsilon>0. Please see Appendix G.

4 Perspective

Our first contribution is an in-depth analysis of the bi-point rounding algorithm of , and observe that their rounding can be improved by a multi-pronged approach. In essence, these different “prongs” have different worst-case scenarios, and hence a suitable combination of them can do better with any adversarial strategy for choosing the input instance to the problem. This leads to an improved approximation ratio for the fundamental kk-median problem.

Our second major contribution is to (weighted) dependent rounding. This general technique has seen numerous applications over the last 1515 years or so, primarily since it can handle hard constraints such as (A2), and can also guarantee negative correlation (A3), which is useful for concentration bounds and other applications. However, the existing body of work largely does not address positive correlation, let alone near-independence, even for relatively-small subsets of the underlying variables XiX_{i}. We are able to show that we can guarantee all the existing properties of dependent rounding, and guarantee near-independence for not-too-large subsets, in the sense of (A4). We believe that this will yield further applications. Our dependent-rounding approach also helps improve the run-time of the kk-median application.

Dependent rounding with near-independence on small subsets

“almost-integrality”: all but at most one of the XiX_{i} lies in {0,1}\{0,1\} (with the remaining at most one element lying in $$);

Pr⁡[∑iaiXi=∑iaipi]=1\Pr[\sum_{i}a_{i}X_{i}=\sum_{i}a_{i}p_{i}]=1;

∀S⊆[n]\forall S\subseteq[n], E[∏i∈S(1−Xi)]≤∏i∈S(1−pi)\text{\bf E}[\prod_{i\in S}(1-X_{i})]\leq\prod_{i\in S}(1-p_{i}), and E[∏i∈SXi]≤∏i∈Spi\text{\bf E}[\prod_{i\in S}X_{i}]\leq\prod_{i\in S}p_{i};

if the weights aia_{i} are “not too far apart”, there is near-independence for subsets of {X1,X2,…,Xn}\{X_{1},X_{2},\ldots,X_{n}\} that are of cardinality at most tt, analogously to (A4).

In this section we will give an O(n)O(n)-time algorithm (called DepRound) for sampling from such a distribution; see Section 2.2. In particular, this shows that such distributions exist. This algorithm is a generalization of the unweighted version given in , with a specific (random) ordering of operations, leading to the added property (A4’) of near-independence. Our main theorem is Theorem 2.10. It basically says, in the notation of (2), that we can achieve β1,β2=O(t2/(nα3))\beta_{1},\beta_{2}=O(t^{2}/(n\alpha^{3})) when t≤O(nα3)t\leq O(\sqrt{n\alpha^{3}}). Thus, we obtain near-independence up to fairly large sizes tt. This bound is further improved in Section 2.4. Let us also remark about the possible (sole) index ii that is left unrounded, as in (A0’). Three simple ways to round this are to round down, round up, or round randomly; these can be chosen in a problem-specific manner. None of these three fits the kk-median application perfectly; a different probabilistic handling of this index ii is done in Section 3.3.

Note that DepRound could be described more simply as a form of pipage rounding (with an added, crucial, element of processing the variables in random order), with flow adjusted proportionally to the weights. However, in order to facilitate the analysis of (A4’), we give the following, less compact description of the algorithm. Also note that we will apply this method to kk-median in Section 3.3, but here it is described as a general-purpose rounding procedure, independent of kk-median; this is because we believe that this method is of independent interest since it goes much beyond negative correlation. Thus, the reader is asked to note that the notation defined in this section is largely separate from that of the other sections.

γ1,γ2∈\gamma_{1},\gamma_{2}\in, and at least one of the two variables is integral (0 or 1);

E[γ1]=β1\text{\bf E}[\gamma_{1}]=\beta_{1} and E[γ2]=β2\text{\bf E}[\gamma_{2}]=\beta_{2};

Pr⁡[a1γ1+a2γ2=a1β1+a2β2]=1\Pr\left[a_{1}\gamma_{1}+a_{2}\gamma_{2}=a_{1}\beta_{1}+a_{2}\beta_{2}\right]=1; and

E[γ1γ2]≤β1β2\text{\bf E}[\gamma_{1}\gamma_{2}]\leq\beta_{1}\beta_{2}, and E[(1−γ1)(1−γ2)≤(1−β1)(1−β2)\text{\bf E}[(1-\gamma_{1})(1-\gamma_{2})\leq(1-\beta_{1})(1-\beta_{2}).

Now define \scsimplify(a1,a2,β1,β2)\text{\sc simplify}(a_{1},a_{2},\beta_{1},\beta_{2}) as follows. There are four cases:

0≤a1β1+a2β2≤min⁡{a1,a2}0\leq a_{1}\beta_{1}+a_{2}\beta_{2}\leq\min\{a_{1},a_{2}\}. With probability a2β2/(a1β1+a2β2)a_{2}\beta_{2}/(a_{1}\beta_{1}+a_{2}\beta_{2}) set γ1=0\gamma_{1}=0. With remaining probability set γ2=0\gamma_{2}=0.

a1<a1β1+a2β2<a2a_{1}<a_{1}\beta_{1}+a_{2}\beta_{2}<a_{2}. With probability β1\beta_{1} set γ1=1\gamma_{1}=1. With remaining probability set γ1=0\gamma_{1}=0.

a2<a1β1+a2β2<a1a_{2}<a_{1}\beta_{1}+a_{2}\beta_{2}<a_{1}. With probability β2\beta_{2} set γ2=1\gamma_{2}=1. With remaining probability set γ2=0\gamma_{2}=0.

max⁡{a1,a2}≤a1β1+a2β2≤a1+a2\max\{a_{1},a_{2}\}\leq a_{1}\beta_{1}+a_{2}\beta_{2}\leq a_{1}+a_{2}. With probability a2(1−β2)/(a1(1−β1)+a2(1−β2))a_{2}(1-\beta_{2})/(a_{1}(1-\beta_{1})+a_{2}(1-\beta_{2})) set γ1=1\gamma_{1}=1. With remaining probability set γ2=1\gamma_{2}=1.

If we set γ1=0\gamma_{1}=0, then set γ2=β2+β1a1a2\gamma_{2}=\beta_{2}+\beta_{1}\frac{a_{1}}{a_{2}}.

If we set γ1=1\gamma_{1}=1, then set γ2=β2−(1−β1)a1a2\gamma_{2}=\beta_{2}-(1-\beta_{1})\frac{a_{1}}{a_{2}}.

If we set γ2=0\gamma_{2}=0, then set γ1=β1+β2a2a1\gamma_{1}=\beta_{1}+\beta_{2}\frac{a_{2}}{a_{1}}.

If we set γ2=1\gamma_{2}=1, then set γ1=β1−(1−β2)a2a1\gamma_{1}=\beta_{1}-(1-\beta_{2})\frac{a_{2}}{a_{1}}.

\textscSimplify(a1,a2,β1,β2)\textsc{Simplify}(a_{1},a_{2},\beta_{1},\beta_{2}) outputs (γ1,γ2)(\gamma_{1},\gamma_{2}) with properties (B0), (B1), (B2), and (B3).

This is straightforward to show; we provide a partial proof in Appendix A.

2 Main algorithm: DepRound

We now describe the full dependent rounding algorithm, which we denote DepRound.

Define X(s)=(X1(s),X2(s),…,Xn(s))X^{(s)}=(X^{(s)}_{1},X^{(s)}_{2},\ldots,X^{(s)}_{n}) to be the value of XX after the step ss of the rounding process, with X(0)=PX^{(0)}=P, and X(T)=XX^{(T)}=X if the algorithm halts after TT steps. We say XiX_{i} is fixed during step ss if Xi(s−1)X_{i}^{(s-1)} is fractional but Xi(s)X_{i}^{(s)} is integral, since this implies XiX_{i} will not change in any future steps.

It is not hard to follow the proof of and validate properties (A0’), (A1’), (A2’), and (A3’); we present a proof sketch below.

DepRound samples a vector in O(n)O(n) time; this vector satisfies properties (A0’), (A1’), (A2’), and (A3’).

By definition, DepRound ends only when there is at most one fractional variable remaining, and by definition of Simplify, the remaining variables are either 0 or 1, showing (A0’). Since at least one variable is fixed in each constant-time step, the algorithm takes at most n−1n-1 steps, and thus runs in linear time. (The random permutation π\pi may also be generated in linear time.)

(B1) implies that for each ii and ss, E[Xi(s)]=Xi(s−1)\text{\bf E}[X_{i}^{(s)}]=X_{i}^{(s-1)}. By induction, this implies (A1’). (B2) implies that ∑iaiXi(T)=∑iaiXi(T−1)=…=∑iaiX(0)=∑iaipi\sum_{i}a_{i}X^{(T)}_{i}=\sum_{i}a_{i}X^{(T-1)}_{i}=\ldots=\sum_{i}a_{i}X^{(0)}=\sum_{i}a_{i}p_{i}, thus implying (A2’). Finally, let XiX_{i} and XjX_{j} be the variables chosen in line 4 during step tt. If i,j∈Si,j\in S, then (B3) implies E[∏i∈SXi(s)]≤∏i∈SXi(s−1)\text{\bf E}[\prod_{i\in S}X^{(s)}_{i}]\leq\prod_{i\in S}X^{(s-1)}_{i} and E[∏i∈S(1−Xi(s))]≤∏i∈S(1−Xi(s−1))\text{\bf E}[\prod_{i\in S}(1-X^{(s)}_{i})]\leq\prod_{i\in S}(1-X^{(s-1)}_{i}) (all other terms in the product are constant). If only one or neither of i,ji,j are in SS, then the same hold with equality. By induction, these imply (A3’). ∎

Note that the above properties hold under any ordering π\pi. The additional element of using π\pi to process the indices in random order is needed only for the new property (A4’).

3 Limited dependence

In this section we will prove the limited dependence property (A4’). Consider a subset I⊆[n]I\subseteq[n] of tt indices, with corresponding “target” bits (bi)i∈I∈{0,1}t(b_{i})_{i\in I}\in\{0,1\}^{t}. For each i∈Ii\in I, define Yi:=XiY_{i}:=X_{i} if bi=1b_{i}=1, or Yi:=1−XiY_{i}:=1-X_{i} if bi=0b_{i}=0. We are interested in the value of E[∏i∈IYi]\text{\bf E}\left[\prod_{i\in I}Y_{i}\right], which is essentially equal to the joint probability ⋀i∈I(Xi=bi)\bigwedge_{i\in I}(X_{i}=b_{i}). Note these are not exactly equivalent, because of the one fractional variable. This variable must be handled in a domain-specific way to ensure this property holds, as we will do when applying it to kk-median.

From property (A1’), we have E[Xi]=pi\text{\bf E}[X_{i}]=p_{i}. Similarly, ∀i∈I\forall i\in I, define qiq_{i} such that E[Yi]=qi\text{\bf E}[Y_{i}]=q_{i}. That is, let qiq_{i} be either pip_{i} or 1−pi1-p_{i} if bib_{i} is 1 or 0, respectively. If we independently rounded each variable, E[∏i∈IYi]\text{\bf E}[\prod_{i\in I}Y_{i}] would be exactly ∏i∈Iqi\prod_{i\in I}q_{i} (but (A2’) would be violated). We will show that when set II is not too large, the product is still very close to ∏i∈Iqi\prod_{i\in I}q_{i} in expectation (i.e., that the variables {Xi}i∈I\{X_{i}\}_{i\in I} are near-independent).

During a run of DepRound, we say that two variables XiX_{i} and XjX_{j} are co-rounded if they are both changed in the same step. We will first show that if two variables are far apart in π(X)\pi(X), then they are unlikely to be co-rounded. Then we will show that a group of variables is near-independent if the probability of any two of them being co-rounded is small. Finally, we will show that for a small enough set II variables are very likely to be far apart, and thus very likely to remain independent.

Recall that DepRound always calls Simplify on the two left-most fractional variables in π(X)\pi(X), fixing at least one of them (to 0 or 1). Thus, once a variable survives (i.e., remains fractional after) one step it will continue to be included in all subsequent Simplify steps until it gets fixed (or becomes the last remaining fractional variable). We want to upper bound the probability that a variable survives for too long. We first show that in any two consecutive steps involving XiX_{i}, there is a minimum probability that XiX_{i} gets fixed (if the weights are not too different).

Let amin:=min⁡i{ai}a_{min}:=\min_{i}\{a_{i}\} and amax:=max⁡i{ai}a_{max}:=\max_{i}\{a_{i}\} be the minimum and maximum weights. Suppose amaxamin≤2\frac{a_{max}}{a_{min}}\leq 2. Suppose XiX_{i} is co-rounded with variable XjX_{j} in step ss, and if it survives it will be co-rounded with variable XkX_{k} in step s+1s+1. Let βj:=Xj(s−1)\beta_{j}:=X_{j}^{(s-1)} and βk:=Xk(s)\beta_{k}:=X_{k}^{(s)}. Then XiX_{i} will be fixed in one of these two steps with probability at least p=min⁡{βj,1−βj}⋅min⁡{βk,1−βk}p=\min\{\beta_{j},1-\beta_{j}\}\cdot\min\{\beta_{k},1-\beta_{k}\}.

What is the probability that XiX_{i} is fixed in the first step? It depends on which of the four cases occur. In case I, it is ajβjaiβi+ajβj≥ajβjaj=βj\frac{a_{j}\beta_{j}}{a_{i}\beta_{i}+a_{j}\beta_{j}}\geq\frac{a_{j}\beta_{j}}{a_{j}}=\beta_{j}. In case II it is 1. In case IV it is aj(1−βj)ai(1−βi)+aj(1−βj)=aj(1−βj)ai+aj−(aiβi+ajβj)≥aj(1−βj)ai+aj−ai=1−βj\frac{a_{j}(1-\beta_{j})}{a_{i}(1-\beta_{i})+a_{j}(1-\beta_{j})}=\frac{a_{j}(1-\beta_{j})}{a_{i}+a_{j}-(a_{i}\beta_{i}+a_{j}\beta_{j})}\geq\frac{a_{j}(1-\beta_{j})}{a_{i}+a_{j}-a_{i}}=1-\beta_{j}. In these three cases, XiX_{i} is fixed with probability at least min⁡{βj,1−βj}≥p\min\{\beta_{j},1-\beta_{j}\}\geq p. However, in the remaining case III, XiX_{i} will be fixed with probability 0.

Given that case III occurs in the first step, what is the probability that XiX_{i} gets fixed in the second step? It is at least the probability that one of cases I, II or IV occur in the second step, times min⁡{βk,1−βk}\min\{\beta_{k},1-\beta_{k}\} (by the same reasoning as above). When case III occurs in the first step, Xi(s)X_{i}^{(s)} gets set randomly to one of two values: βi+βjajai\beta_{i}+\beta_{j}\frac{a_{j}}{a_{i}} or βi−(1−βj)ajai\beta_{i}-(1-\beta_{j})\frac{a_{j}}{a_{i}}, with probability 1−βj1-\beta_{j} or βj\beta_{j}, respectively. These values differ by exactly ajai≥aminamax≥12\frac{a_{j}}{a_{i}}\geq\frac{a_{min}}{a_{max}}\geq\frac{1}{2}. Now, in the second step, case III only occurs if Xi(s)X_{i}^{(s)} lies in the open interval (akai−akaiβk,1−akaiβk)(\frac{a_{k}}{a_{i}}-\frac{a_{k}}{a_{i}}\beta_{k},1-\frac{a_{k}}{a_{i}}\beta_{k}). But the distance between any two numbers in this interval is strictly less than 1−akai≤1−aminamax≤121-\frac{a_{k}}{a_{i}}\leq 1-\frac{a_{min}}{a_{max}}\leq\frac{1}{2}. Therefore, the two possible values of Xi(s)X_{i}^{(s)} cannot both lie in the interval required for case III, so with probability at least min⁡{βj,1−βj}\min\{\beta_{j},1-\beta_{j}\}, the second step will be a case other than III. ∎

Important remark on notation: In the following paragraph, by overloading notation, we fix the random permutation π\pi to be some arbitrary but fixed π\pi. Several pieces of notation such as σ,Ji\sigma,J_{i}, and, most importantly, δk:=∏i=0⌊∣Jk∣/2⌋(1−αjk,2iαjk,2i+1)\delta_{k}:=\prod_{i=0}^{\lfloor|J_{k}|/2\rfloor}(1-\alpha_{j_{k,2i}}\alpha_{j_{k,2i+1}}), are functions of this π\pi. All statements and proofs until the end of the proof of Lemma 2.5, are conditional on the random permutation equaling π\pi (this is sometimes stated explicitly, sometimes not).

Lemma 2.3 implies that the probability of a variable’s survival decays exponentially with the number of steps survived. Now, given a permutation π∈Sn\pi\in S_{n}, let σ:[t]→I\sigma:[t]\to I be the bijection such that π−1(σ(1))<π−1(σ(2))<⋯<π−1(σ(t))\pi^{-1}(\sigma(1))<\pi^{-1}(\sigma(2))<\cdots<\pi^{-1}(\sigma(t)). Let

be the set of the indices not in II. Now partition JJ into sequences (J0,J1,…,Jt)(J_{0},J_{1},\ldots,J_{t}), using elements of II as dividers. Formally, for k=0,…,tk=0,\ldots,t, let JkJ_{k} be the maximal sequence (jk,1,jk,2,…)(j_{k,1},j_{k,2},\ldots) satisfying π−1(σ(k))<π−1(jk,1)<π−1(jk,2)<⋯<π−1(σ(k+1))\pi^{-1}(\sigma(k))<\pi^{-1}(j_{k,1})<\pi^{-1}(j_{k,2})<\cdots<\pi^{-1}(\sigma(k+1)), letting π−1(σ(0)):=0\pi^{-1}(\sigma(0)):=0 and π−1(σ(i+1)):=n+1\pi^{-1}(\sigma(i+1)):=n+1. Note that if σ(k)\sigma(k) and σ(k+1)\sigma(k+1) are directly adjacent in π\pi, then JkJ_{k} will be empty, as seen in the example below.

For k∈[t−1]k\in[t-1], let ZkZ_{k} be the “bad” event that DepRound co-rounds Xσ(k)X_{\sigma(k)} and Xσ(k+1)X_{\sigma(k+1)}. For ZkZ_{k} to occur, it is necessary that Xσ(k)X_{\sigma(k)} be co-rounded with all variables inbetween as well. For example, in the above sequence, Z1Z_{1} means that Xσ(1)=X3X_{\sigma(1)}=X_{3} must be co-rounded with X4,X1,X9,X6X_{4},X_{1},X_{9},X_{6}, (surviving each round), and finally X8X_{8}. The next lemma bounds Pr⁡[Zk]\Pr[Z_{k}] in terms of the set JkJ_{k}.

Let αi:=min⁡{pi,1−pi}\alpha_{i}:=\min\{p_{i},1-p_{i}\}. If amaxamin≤2\frac{a_{max}}{a_{min}}\leq 2, then ∀k∈[t−1]\forall k\in[t-1], we have Pr⁡[Zk]≤δk\Pr[Z_{k}]\leq\delta_{k}, where δk:=∏i=1⌊∣Jk∣/2⌋(1−αjk,2i−1αjk,2i)\delta_{k}:=\prod_{i=1}^{\lfloor|J_{k}|/2\rfloor}(1-\alpha_{j_{k,2i-1}}\alpha_{j_{k,2i}}).

3.2 Seldom co-rounded variables are near-independent

The following lemmas show that if the probability of variables in {Xi}i∈I\{X_{i}\}_{i\in I} being co-rounded is low, then E[∏i∈IYi]≈∏i∈Iqi\text{\bf E}[\prod_{i\in I}Y_{i}]\approx\prod_{i\in I}q_{i}. For notational convenience, define δt:=0\delta_{t}:=0.

Let Ik:={σ(k),σ(k+1),…,σ(t)}I_{k}:=\{\sigma(k),\sigma(k+1),\ldots,\sigma(t)\}. Let Ek\mathcal{E}_{k} denote a set of events which consists of exactly one of ZiZ_{i} or (Zˉi∧Yσ(i)=yi)(\bar{Z}_{i}\land Y_{\sigma(i)}=y_{i}) for each i=1…ki=1\ldots k, where yiy_{i} is some attainable value of Yσ(i)Y_{\sigma(i)}. Then, conditioned on a fixed permutation π\pi, the following holds for all k∈[t]k\in[t]:

Recall π∈Sn\pi\in S_{n} is a fixed permutation; all probabilities and expectations in this proof are conditioned on π\pi. This proof formalizes the idea that if ZkZ_{k} doesn’t occur, then Xσ(k)X_{\sigma(k)} and Xσ(k+1)X_{\sigma(k+1)} remain independent. If it does occur, the effect on the expected value is limited by δk\delta_{k}.

After step ss of DepRound, we may consider the remainder of the algorithm as simply a recursive call on vector X(s)X^{(s)} (using the same permutation π\pi). Let DkD_{k} be the first such call where Xσ(k)X_{\sigma(k)} is one of the two left-most fractional variables to be co-rounded. Then there is at most one fractional variable to the left of Xσ(k)X_{\sigma(k)}, say Xi0X_{i_{0}}, and all variables to the right still have their initial values from PP.

The key observation is that while events in Ek−1\mathcal{E}_{k-1} do affect the identity and initial value of Xi0X_{i_{0}}, they do not further influence the outcome of DkD_{k}. The only way DkD_{k} could be further influenced is if Ek−1\mathcal{E}_{k-1} contains the event Yσ(j)=yjY_{\sigma(j)}=y_{j}, where Xi0X_{i_{0}} is with some probability the variable Xσ(j)X_{\sigma(j)}. However, for each j=1…k−1j=1\ldots k-1, Ek−1\mathcal{E}_{k-1} either contains Zˉj\bar{Z}_{j} (which means Xσ(j)X_{\sigma(j)} was fixed earlier and cannot be Xi0X_{i_{0}}), or it lacks Yσ(j)=yjY_{\sigma(j)}=y_{j}.

This means that all the properties of DepRound shown so far (which hold for a fixed π\pi) still hold for DkD_{k} when conditioned on Ek−1\mathcal{E}_{k-1}. Namely, we have E[Xi∣Ek−1]=piE[X_{i}\mid\mathcal{E}_{k-1}]=p_{i} (for all XiX_{i} to the right of and including Xσ(k)X_{\sigma(k)}), Pr⁡[Zk∣Ek−1]≤δk\Pr[Z_{k}|\mathcal{E}_{k-1}]\leq\delta_{k}, and – as we will claim by induction – (5) for IkI_{k}. The bounds derived below handle the problematic compound event Zk∧Yσ(k)=ykZ_{k}\land Y_{\sigma(k)}=y_{k} explicitly by assuming that when ZkZ_{k} occurs, Yσ(k)Y_{\sigma(k)} always attains its worst-case value (1 for the upper bound, or 0 for the lower bound).

As a base case, consider the singleton set It={σ(t)}I_{t}=\{\sigma(t)\}. As just described, we have E[Xσ(t)∣Ek−1]=pσ(t)\text{\bf E}[X_{\sigma(t)}\mid\mathcal{E}_{k-1}]=p_{\sigma(t)} , so E[Yσ(t)∣Ek−1]=qσ(t)\text{\bf E}[Y_{\sigma(t)}\mid\mathcal{E}_{k-1}]=q_{\sigma(t)}, and (5) follows from δt=0\delta_{t}=0. We now proceed by induction on kk, counting backward from tt. Let Wk:=∏i∈IkYi=∏j=ktYσ(j)W_{k}:=\prod_{i\in{I_{k}}}Y_{i}=\prod_{j=k}^{t}Y_{\sigma(j)}. Let Zˉk\bar{Z}_{k} be the complement of event ZkZ_{k}. For some k<tk<t, assume that (5) holds for Dk+1D_{k+1} with set Ik+1I_{k+1}. Then, using the independence properties just mentioned, we have that E[Wk∣Ek−1]\text{\bf E}[W_{k}\mid\mathcal{E}_{k-1}] is

Similarly, we have that E[Wk∣Ek−1]\text{\bf E}[W_{k}\mid\mathcal{E}_{k-1}] is

But also E[Wk∣Ek−1]≥0⋅∏i∈Ik+1(qi−δσ−1(i))\text{\bf E}[W_{k}|\mathcal{E}_{k-1}]\geq 0\cdot\prod_{i\in I_{k+1}}(q_{i}-\delta_{\sigma^{-1}(i)}) so we use the better of the two lower bounds. ∎

Remark. From now on, we will no longer take π\pi as fixed, and hence the δk\delta_{k} (which are functions of the random permutation) will be viewed as random variables.

If amaxamin≤2\frac{a_{max}}{a_{min}}\leq 2, we have

Apply Lemma 2.5 with k=1k=1 and E=∅\mathcal{E}=\emptyset. Recall δt:=0\delta_{t}:=0. Take the expectation over all permutations π\pi, and then factor out the constant ∏i∈Iqi\prod_{i\in I}q_{i}. ∎

3.3 Small subsets are spread out

The following lemma gives a very useful combinatorial characterization of the distribution of {Jk}\{J_{k}\}.

Let g=(g1,…,gt+1)g=(g_{1},\dots,g_{t+1}) be a sequence of nonnegative integers which sum to n−tn-t, picked uniformly at random from all such possible sequences. Then the distribution of gg is equal to the distribution of (∣J0∣,…,∣Jt∣)(|J_{0}|,\dots,|J_{t}|). Both distributions are symmetric.

Consider the mapping ΦI:Sn→{0,1}n\Phi_{I}:S_{n}\to\{0,1\}^{n} from permutations on [n][n] to binary strings of length nn, in which we replace each index in II with a 1, and the rest with a 0. Also define Θ\Theta to be the following standard combinatorial bijection from binary strings to arrangements of balls in boxes: given a binary string ss, first add a 1 to the beginning and end of the string; then, viewing the space between each nearest pair of 1’s as a ‘box’, and the zeros between each pair as ‘balls’ in that box, let Θ(s)\Theta(s) be the sequence which counts the number of balls in each box, from left to right. For an arbitrary permutation π\pi, and the corresponding sets {Jk}\{J_{k}\}, we see that ∣Jk∣|J_{k}| corresponds to the number of zeros between the kk’th and the (k+1)(k+1)’th 1 in ΦI(π)\Phi_{I}(\pi), and thus to the number of balls in the corresponding box in (Θ∘ΦI)(π)(\Theta\circ\Phi_{I})(\pi). Therefore we have that (Θ∘ΦI)(π)=(∣J0∣,…,∣Jt∣)(\Theta\circ\Phi_{I})(\pi)=(|J_{0}|,\ldots,|J_{t}|).

Now recall that DepRound chooses a uniformly random permutation π∈Sn\pi\in S_{n}. Notice that ΦI(π)\Phi_{I}(\pi) only maps to binary strings of length nn with exactly ∣I∣=t|I|=t ones. Furthermore, for each such binary string, there are exactly t!(n−t)!t!(n-t)! permutations which map to it. Thus, ΦI(π)\Phi_{I}(\pi) is uniformly distributed over all (nt)\binom{n}{t} such binary strings. Θ\Theta provides an exact bijection between binary strings of length nn with tt ones, and sequences gg as defined in the lemma. This implies that (Θ∘ΦI)(π)(\Theta\circ\Phi_{I})(\pi) – and thus (∣J0∣,…,∣Jt∣)(|J_{0}|,\ldots,|J_{t}|) – is uniformly distributed over all such possible sequences gg.

Furthermore, by definition of gg, all permutations of a sequence gg would be equally likely. Therefore the distribution of gg, and thus (∣J0∣,…,∣Jt∣)(|J_{0}|,\ldots,|J_{t}|), is symmetric. ∎

Remark. Note that the above distribution over balls-in-boxes is such that each possible arrangement is equally likely. This is not to be confused with distributions obtained by randomly and independently throwing the balls into the boxes.

Consider a subset C⊆[t]C\subseteq[t] of size cc, and let JC:=⋃k∈CJkJ_{C}:=\bigcup_{k\in C}J_{k}. Then for any constant 0<x<10<x<1,

From Lemma 2.7 the distribution of (∣J0∣,∣J1∣,…∣Jt∣)(|J_{0}|,|J_{1}|,\ldots|J_{t}|) is symmetric. Thus, when considering the distribution of a function of the sizes {∣Jk∣}k∈C\{|J_{k}|\}_{k\in C}, we may w.l.o.g. assume that JC=J0∪J1∪…∪Jc−1J_{C}=J_{0}\cup J_{1}\cup\ldots\cup J_{c-1}. Notice since {Jk}\{J_{k}\} are all disjoint, we have ∣JC∣=∑k∈C∣Jk∣|J_{C}|=\sum_{k\in C}|J_{k}|; also, ∣JC∣≤∣J∣=n−t|J_{C}|\leq|J|=n-t.

Now for a quick exercise in counting. From the previous proof, ΦI(π)\Phi_{I}(\pi) maps permutations uniformly to nn-digit binary strings with tt 1’s. For a given permutation π\pi, we observe that ∑k=0c−1∣Jk∣=m\sum_{k=0}^{c-1}|J_{k}|=m iff the binary string ΦI(π)\Phi_{I}(\pi) has exactly mm zeros before the cc’th 1 (i.e., there are mm total balls in the first cc boxes). How many of the (nt)\binom{n}{t} possible strings have this property? It is the number of ways to put (c−1)(c-1) 1’s in the first (m+c−1)(m+c-1) digits, a 11 in the (m+c)(m+c)’th digit, and (t−c)(t-c) 1’s in the remaining (n−m−c)(n-m-c) digits. Thus,

where nc‾:=n⋅(n−1)⋯(n−c+1)n^{\underline{c}}:=n\cdot(n-1)\cdots(n-c+1) denotes the falling factorial. Now we combine (6) and (7), and relax the bound by allowing mm to go up to infinity. The resulting series converges when 0<x<10<x<1.

A quick proof of the series’ convergence is to start with ∑m=0∞xm=1/(1−x)\sum_{m=0}^{\infty}x^{m}=1/(1-x), and take the (c−1)(c-1)’th derivative of both sides, with respect to xx. ∎

Let δk:=∏i=0⌊∣Jk∣/2⌋(1−αjk,2iαjk,2i+1)\delta_{k}:=\prod_{i=0}^{\lfloor|J_{k}|/2\rfloor}(1-\alpha_{j_{k,2i}}\alpha_{j_{k,2i+1}}), and α:=min⁡j{αj}\alpha:=\min_{j}\{\alpha_{j}\}. Let C⊆[t]C\subseteq[t] of size cc. If amaxamin≤2\frac{a_{max}}{a_{min}}\leq 2,

First, recall by definition that qiq_{i} is either pip_{i} or 1−pi1-p_{i}, so qi≥min⁡{pi,1−pi}=αi≥αq_{i}\geq\min\{p_{i},1-p_{i}\}=\alpha_{i}\geq\alpha. Then

In the first line we used ⌊x/2⌋≥(x−1)/2\lfloor x/2\rfloor\geq(x-1)/2. In (9) we used 1−x2≤1−x2+x4/4=1−x2/2\sqrt{1-x^{2}}\leq\sqrt{1-x^{2}+x^{4}/4}=1-x^{2}/2. In (2.4) we applied Lemma 2.8 and then used α≤1/2\alpha\leq 1/2. ∎

Now we can complete the bound given in Lemma 2.6. The upper bound follows by expanding the binomial, bounding the expected value of each term, and then refactoring. The lower bound follows by the Weierstrass product inequality.

Thus we are led to our main theorem on dependent rounding (which in turn is improved upon, with further work, in Section 2.4):

Let (X1,…,Xn)(X_{1},\ldots,X_{n}) be the vector returned by running DepRound with probabilities (p1,…,pn)(p_{1},\ldots,\allowbreak p_{n}) and positive weights (a1,…,an)(a_{1},\ldots,a_{n}). Let I+I^{+} and I−I^{-} be disjoint subsets of [n][n]. Define α:=min⁡i{pi,1−pi}\alpha:=\min_{i}\{p_{i},1-p_{i}\}, I:=I+∪I−I:=I^{+}\cup I^{-}, t=∣I∣t=|I|, and λ:=∏i∈I+pi∏i∈I−(1−pi)\lambda:=\displaystyle\prod_{i\in I^{+}}p_{i}\prod_{i\in I^{-}}(1-p_{i}). Then if max⁡i,j{aiaj}≤2\displaystyle\max_{i,j}\left\{\frac{a_{i}}{a_{j}}\right\}\leq 2, we have

For all i∈I+i\in I^{+}, set bi=1b_{i}=1; for all i∈I−i\in I^{-}, set bi=0b_{i}=0. Then apply (11) and (12) to Lemma 2.6. The theorem follows by recognizing that

Note that (1+16t7nα3)t−1≤exp⁡(16t27nα3)\left(1+\frac{16t}{7n\alpha^{3}}\right)^{t-1}\leq\exp\left(\frac{16t^{2}}{7n\alpha^{3}}\right). Thus we see that Theorem 2.10 allows us to bound the dependence among groups of variables as large as O(n)O(\sqrt{n}) when α=Θ(1)\alpha=\Theta(1).

4 Improvements and Special Cases

In this section we present several refinements of Theorem 2.10. The proofs all follow the same outline as that of the main result; we describe only the places where they differ. We reuse the same definitions unless stated otherwise.

In our kk-median application we will have that all pip_{i} are uniform. In this case, if the maximum ratio of weights is sufficiently small, we can tighten the bound to show a weaker dependency on α\alpha.

Suppose p1=p2=⋯=pn=pp_{1}=p_{2}=\cdots=p_{n}=p and α=min⁡{p,1−p}\alpha=\min\{p,1-p\}. Then if amaxamin≤1+α\frac{a_{max}}{a_{min}}\leq 1+\alpha, we have

The improvement comes from strengthening the result of Lemma 2.3: Suppose XiX_{i} is co-rounded with variable XjX_{j} in step ss and then (if it survives) variable XkX_{k} in step s+1s+1, where Xj(s−1)=Xk(s)=pX_{j}^{(s-1)}=X_{k}^{(s)}=p. Then we can show XiX_{i} will be fixed in one of these two steps with probability at least α\alpha.

First assume that during both steps Case III occurs. By requirements for Case III, we have ajai(1−p)<Xi(s−1)<1−ajaip\frac{a_{j}}{a_{i}}(1-p)<X_{i}^{(s-1)}<1-\frac{a_{j}}{a_{i}}p and akai(1−p)<Xi(s)<1−akaip\frac{a_{k}}{a_{i}}(1-p)<X_{i}^{(s)}<1-\frac{a_{k}}{a_{i}}p. Suppose XjX_{j} is fixed to 0 in step ss. Then

In either outcome, we have a contradiction. Therefore in at least one of the two steps, a case other than III must occur. As shown in the proof of Lemma 2.3, in the other 3 cases XiX_{i} will be fixed with probability at least min⁡{p,1−p}=α\min\{p,1-p\}=\alpha.

This stronger bound carries through the remaining lemmas in a straightforward way. Following the proof for Lemma 2.4, starting from (4), we get

So Lemmas 2.4, 2.5 and 2.6 will now hold with the new definition δk:=(1−α)⌊∣Jk∣/2⌋\delta_{k}:=(1-\alpha)^{\lfloor|J_{k}|/2\rfloor}. Then in Lemma 2.9, we get

In the unweighted case (where all ai=1a_{i}=1), we can similarly tighten the bound. We can also refine the bound to be in terms of a sort of average of the probabilities instead of just the most extreme.

Let X:=(X1,…,Xn)\mathbf{X}:=(X_{1},\ldots,X_{n}) be the vector returned by running DepRound with probabilities (p1,…,pn)(p_{1},\ldots,p_{n}) and unit weights (1,…,1)(1,\ldots,1). Let αi=min⁡{pi,1−pi}\alpha_{i}=\min\{p_{i},1-p_{i}\}. Let I+I^{+} and I−I^{-} be disjoint subsets of [n][n]. Let qi=piq_{i}=p_{i} for i∈I+i\in I^{+}, and let qi=1−piq_{i}=1-p_{i} for i∈I−i\in I^{-}; let I=I+∪I−I=I^{+}\cup I^{-}. Define

Furthermore, if ∑ipi\sum_{i}p_{i} is an integer, then X\mathbf{X} has no fractional elements.

Uniform weights allow us to strengthen Lemma 2.3 even further; in particular, we no longer need to consider pairs of steps. Suppose XiX_{i} is co-rounded with XjX_{j} during step ss. Since all ai=1a_{i}=1, Cases II and III cannot occur. Thus, XiX_{i} will be fixed with probability at least min⁡{Xj(s−1),1−Xj(s−1)}=αj\min\{X_{j}^{(s-1)},1-X_{j}^{(s-1)}\}=\alpha_{j} (as in proof of Lemma 2.3).

If we follow the proof of Lemma 2.4, but without splitting events into pairs, we can show

So Lemmas 2.4, 2.5 and 2.6 will now hold with the new definition δk:=∏j∈Jk(1−αj)\delta_{k}:=\prod_{j\in J_{k}}(1-\alpha_{j}). Now (as in Lemma 2.9), we wish to upper bound E[∏k∈Cδkqσ(k)]\text{\bf E}[\prod_{k\in C}\frac{\delta_{k}}{q_{\sigma(k)}}]. Recall the expectation here is conditioned on the random permutation π\pi. We may decompose π\pi into 3 independent components. First, recall ΦI(π)=:ϕ\Phi_{I}(\pi)=:\phi is the binary string corresponding to π\pi with tt 1’s representing the locations of indices in II. Second, let πI∈St\pi_{I}\in S_{t} be the permutation representing the ordering of II over the 1’s in ϕ\phi. Third, let πJ∈Sn−t\pi_{J}\in S_{n-t} be the permutation representing the ordering of JJ over the 0’s in ϕ\phi. Then π\pi is uniquely defined by the tuple (ϕ\phi, πI\pi_{I}, πJ\pi_{J}) and vice versa. So we can think of π\pi as being generated by choosing each element of the tuple uniformly at random. Thus, the value of qσ(k)q_{\sigma(k)} depends only on πI\pi_{I}; the sizes {∣Jk∣}\{|J_{k}|\} depend only on ϕ\phi; and the elements of {Jk}\{J_{k}\} (conditioned on a particular set of sizes) depend only on πJ\pi_{J}. This shows that some of the variables are independent, so we may separate the terms. Here we are explicit over which random variable we take each expectation:

The following lemma is basically a restatement of Maclaurin’s inequality for symmetric polynomials:

Given a vector of positive reals x=x1,x2,…,xn\mathbf{x}=x_{1},x_{2},\ldots,x_{n}, with average value xˉ\bar{x}, let S⊆[n]S\subseteq[n] be a subset chosen uniformly at random from all such subsets of size kk. Then ES[∏i∈Sxi]≤xˉk\text{\bf E}_{S}[\prod_{i\in S}x_{i}]\leq{\bar{x}}^{k}.

The first expectation in (13) is over a product of cc random terms from {1/qj}j∈I\{1/q_{j}\}_{j\in I}. The second expectation is a product over ∣JC∣|J_{C}| (which as a function of ϕ\phi is fixed for each term) random terms from {1−αj}j∈J\{1-\alpha_{j}\}_{j\in J}. So both expectations may be bounded by Lemma 2.13:

All the lower bounds given thus far become negative for tt larger than O(n)O(\sqrt{n}). We now derive an alternative lower bound which remains positive even for larger values of tt. We will do this for the uniform weight case for simplicity, but it may be adapted in a straightforward manner to the weighted case.

Suppose a1=a2=⋯=an=1a_{1}=a_{2}=\cdots=a_{n}=1. Let dd be an integer which satisfies (1−α)d≤α(1-\alpha)^{d}\leq\alpha and d≤(n−t)/td\leq(n-t)/t. Then

Start with the lower bound given by Lemma 2.6. As shown in the proof of Theorem 2.12, if all ai=1a_{i}=1, we may use δk:=∏i∈Jk(1−αi)≤(1−α)∣Jk∣\delta_{k}:=\prod_{i\in J_{k}}(1-\alpha_{i})\leq(1-\alpha)^{|J_{k}|}. To lower bound the expression, we will focus on the event that sets J1,…,Jt−1J_{1},\ldots,J_{t-1} all have at least dd elements, and use the trivial bound of 0 if this event does not occur. This event is useful because it implies that {Xi}i∈I\{X_{i}\}_{i\in I} are all far away in π(X)\pi(X).

To calculate this probability, recall that in Lemma 2.7, we showed that the distribution of (∣Ji∣,…,∣Jt∣)(|J_{i}|,\ldots,|J_{t}|) is equivalent to the uniform distribution over unique arrangements of n−tn-t identical balls into t+1t+1 boxes. Note there are (nt)\binom{n}{t} such arrangements. How many of these arrangements have at least dd balls in the middle t−1t-1 boxes? To count these arrangements, we suppose that there are already exactly dd balls in each of the middle t−1t-1 boxes and then count how many ways there are to add the remaining n−t−(t−1)dn-t-(t-1)d balls to t+1t+1 boxes, which is (n−(t−1)dt)\binom{n-(t-1)d}{t}. So,

We show that if α=Θ(1)\alpha=\Theta(1), and nn is sufficiently large, then Theorem 2.14 gives a nontrivial bound for t=O(n/ln⁡n)t=O(n/\ln n) and a tight bound (close to λ\lambda) for some t=O(n/ln⁡n)t=O(\sqrt{n/\ln n}).

First suppose t≤κnln⁡nt\leq\kappa\frac{n}{\ln n} and set d=⌈ln⁡n2κ⌉d=\lceil\frac{\ln n}{2\kappa}\rceil, for some κ>0\kappa>0. Assume ln⁡n>2κα(α+ln⁡(1/α))>2κ\ln n>\frac{2\kappa}{\alpha}(\alpha+\ln(1/\alpha))>2\kappa. Then we have (1−α)d≤e−αd≤e−α(ln⁡n2κ−1)<e−(α+ln⁡(1/α))+α=α(1-\alpha)^{d}\leq e^{-\alpha d}\leq e^{-\alpha(\frac{\ln n}{2\kappa}-1)}<e^{-(\alpha+\ln(1/\alpha))+\alpha}=\alpha and d≤ln⁡n2κ=ln⁡nκ−ln⁡n2κ<ln⁡nκ−1≤nt−1=n−ttd\leq\frac{\ln n}{2\kappa}=\frac{\ln n}{\kappa}-\frac{\ln n}{2\kappa}<\frac{\ln n}{\kappa}-1\leq\frac{n}{t}-1=\frac{n-t}{t}, so dd is valid. These two inequalities also imply that the bound is positive.

Now suppose for some ϵ∈(0,1]\epsilon\in(0,1] that t≤αϵn4ln⁡nt\leq\sqrt{\frac{\alpha\epsilon n}{4\ln n}} and set d=⌈ln⁡nα⌉d=\lceil\frac{\ln n}{\alpha}\rceil. Assume n>max⁡{2ϵαln⁡2ϵα,e2ααϵ}n>\max\{\frac{2\epsilon}{\alpha}\ln\frac{2\epsilon}{\alpha},\frac{e^{2\alpha}}{\alpha\epsilon}\}, which implies nln⁡n>(2ϵ/α)ln⁡(2ϵ/α)ln⁡(2ϵ/α)+ln⁡ln⁡(2ϵ/α)>(2ϵ/α)ln⁡(2ϵ/α)2ln⁡(2ϵ/α)=ϵα\frac{n}{\ln n}>\frac{(2\epsilon/\alpha)\ln(2\epsilon/\alpha)}{\ln(2\epsilon/\alpha)+\ln\ln(2\epsilon/\alpha)}>\frac{(2\epsilon/\alpha)\ln(2\epsilon/\alpha)}{2\ln(2\epsilon/\alpha)}=\frac{\epsilon}{\alpha}. For simplicity of the argument, observe that n−t≥n−αϵn4ln⁡n≥n−n⋅n4⋅1=n2n-t\geq n-\sqrt{\frac{\alpha\epsilon n}{4\ln n}}\geq n-\sqrt{\frac{n\cdot n}{4\cdot 1}}=\frac{n}{2}. Then we have (1−α)d≤e−αd≤e−α(ln⁡nα−1)=eαn<αϵeα≤α(1-\alpha)^{d}\leq e^{-\alpha d}\leq e^{-\alpha(\frac{\ln n}{\alpha}-1)}=\frac{e^{\alpha}}{n}<\frac{\alpha\epsilon}{e^{\alpha}}\leq\alpha and d≤ln⁡nα=ln⁡nn⋅nln⁡nα2≤nln⁡nαϵ≤n2t≤(n−t)td\leq\frac{\ln n}{\alpha}=\sqrt{\frac{\ln n}{n}\cdot\frac{n\ln n}{\alpha^{2}}}\leq\sqrt{\frac{n\ln n}{\alpha\epsilon}}\leq\frac{n}{2t}\leq\frac{(n-t)}{t}, so dd is valid. Then

This implies the bound is at least (1−ϵ)λ(1-\epsilon)\lambda.

Improved bi-point rounding algorithm

For a given kk-median instance I\mathcal{I}, we can apply the JMS algorithm from to obtain a bi-point solution whose cost is at most 2⋅OPTI2\cdot OPT_{\mathcal{I}}. In Section 3, we address the step of rounding a bi-point solution to an integral solution. As a warmup, we begin with a concrete example, which will also demonstrate a lower bound on the approximation factor of this step.

We define a family of bi-point solutions and show that the optimal rounding factor, even when opening k+o(k)k+o(k) facilities, approaches 1+22≈1.207\frac{1+\sqrt{2}}{2}\approx 1.207 for large instances. When counting facilities we will use fractional values proportional to kk, and assume that kk is sufficiently large so that the effect of rounding these to integer values is negligible. Then define the instance as follows.

Let F1\mathcal{F}_{1} and F2\mathcal{F}_{2} be facility sets of size f1kf_{1}k and f2kf_{2}k, respectively, for some constants f1<1f_{1}<1 and f2>1f_{2}>1. Then it follows that (a,b)=(f2−1f2−f1,1−f1f2−f1)(a,b)=(\frac{f_{2}-1}{f_{2}-f_{1}},\frac{1-f_{1}}{f_{2}-f_{1}}). Define the client set J\mathcal{J} as follows: for every pair of facilities i1∈F1i_{1}\in\mathcal{F}_{1} and i2∈F2i_{2}\in\mathcal{F}_{2}, place a single client jj with d(j,i1)=αd(j,i_{1})=\alpha and d(j,i2)=1−αd(j,i_{2})=1-\alpha, for some constant 12<α≤1\frac{1}{2}<\alpha\leq 1. Let all other distances be the maximal such values permitted by the triangle inequality. This means for every i∈F1∖{i1}i\in\mathcal{F}_{1}\setminus\{i_{1}\} we have d(j,i)=2−αd(j,i)=2-\alpha, and for every i∈F2∖{i2}i\in\mathcal{F}_{2}\setminus\{i_{2}\} we have d(j,i)=1+αd(j,i)=1+\alpha.

Because of the symmetry of the instance, any integer solution may be uniquely defined by the proportion of facilities opened in F1\mathcal{F}_{1} and F2\mathcal{F}_{2}. Opening less than kk facilities can only hurt the solution, so assume we open exactly kk. Let S(x)S(x) be a solution that opens xf1kxf_{1}k facilities in F1\mathcal{F}_{1} and k−xf1k=(1−xf1)kk-xf_{1}k=(1-xf_{1})k facilities in F2\mathcal{F}_{2}. Also, we always open at least 1 facility in F1\mathcal{F}_{1}, even if we have to borrow 1 from F2\mathcal{F}_{2}. For sufficiently large kk, this does not affect the proportions.

Since it doesn’t matter which facilities we open within either set, suppose (for ease of analysis) we randomly open xf1kxf_{1}k facilities in F1\mathcal{F}_{1} and (1−xf1)k(1-xf_{1})k facilities in F2\mathcal{F}_{2}. What is the expected cost of a client jj? The closest facility is i2(j)i_{2}(j) of distance 1−α1-\alpha, followed by i1(j)i_{1}(j) of distance α\alpha. The third closest facility is any other facility in F1\mathcal{F}_{1}; these are all 2−α2-\alpha away, and at least one will always be open. Thus we may calculate the expected distance as follows. Note that we open in proportion xx of F1\mathcal{F}_{1} and 1−xf1f2\frac{1-xf_{1}}{f_{2}} of F2\mathcal{F}_{2}, independently of one another.

The expression is quadratic in xx with a negative coefficient on x2x^{2}. Thus, it will be minimized at one of the two edge cases x=0x=0 or x=1x=1, and one of these two must yield the optimal solution. Summing over all clients, and observing that the total cost is actually deterministic, we get

On the other hand, the cost of the bi-point solution itself is

Now fixing α=12\alpha=\frac{1}{\sqrt{2}}, f1=17(4−2)f_{1}=\frac{1}{7}(4-\sqrt{2}) and f2=27(3+2)f_{2}=\frac{2}{7}(3+\sqrt{2}), we get that the ratio of cost between the optimal integer solution and the bi-point solution is 1+22\frac{1+\sqrt{2}}{2}.

Finally, suppose we take any S(x)S(x) and open o(k)o(k) additional facilities in either or both sets. Then the respective proportions we open of F1\mathcal{F}_{1} and F2\mathcal{F}_{2} are xf1k+o(k)f1k=x+o(1)\frac{xf_{1}k+o(k)}{f_{1}k}=x+o(1) and (1−xf1)k+o(k)f2k=1−xf1f2+o(1)\frac{(1-xf_{1})k+o(k)}{f_{2}k}=\frac{1-xf_{1}}{f_{2}}+o(1). Thus, for sufficiently large kk, the increase to the proportions is negligible and we obtain the same cost ratio.

In this instance, the algorithm by Li and Svensson opens (F1,F2)(\mathcal{F}_{1},\mathcal{F}_{2}) in proportions either (a,b)(a,b) or (1,0)(1,0), and does strictly worse than the optimal factor. The new algorithm considers a solution that opens no facilities in F1\mathcal{F}_{1}, which is crucial to obtaining an improved factor.

2 Preliminaries

We refer to F1,F2,a,b,D1,\mathcal{F}_{1},\mathcal{F}_{2},a,b,D_{1}, and D2D_{2} as defined in Definition 1.1.

For a given bi-point solution aF1+bF2a\mathcal{F}_{1}+b\mathcal{F}_{2}, we associate each facility i2∈F2i_{2}\in\mathcal{F}_{2} to its closest facility i1∈F1i_{1}\in\mathcal{F}_{1} (breaking ties arbitrarily). For each i∈F1i\in\mathcal{F}_{1}, the set of ii and its associated facilities in F2\mathcal{F}_{2} is called a star. We refer to ii as the center of the star and other facilities in the star as leaves. Also let Si\mathcal{S}_{i} denote the set of leaves of the star with center ii.

Now we further partition the stars by their number of leaves. Let T0\mathcal{T}_{0} be the set of stars with no leaves, T1\mathcal{T}_{1} be the set of stars with one leaf, and T2\mathcal{T}_{2} be the set of stars with at least 2 leaves. We call the stars in T0,T1,T2\mathcal{T}_{0},\mathcal{T}_{1},\mathcal{T}_{2} as 0-stars, 1-stars, and 2-stars, respectively. Let C0,C1,C2\mathcal{C}_{0},\mathcal{C}_{1},\mathcal{C}_{2} be the sets of centers of stars in T0,T1,T2\mathcal{T}_{0},\mathcal{T}_{1},\mathcal{T}_{2}, respectively. Let L1,L2\mathcal{L}_{1},\mathcal{L}_{2} be the sets of leaves of stars in T1,T2\mathcal{T}_{1},\mathcal{T}_{2}, respectively. For a client jj, let i1(j)i_{1}(j) and i2(j)i_{2}(j) denote the closest facilities to jj in F1\mathcal{F}_{1} and F2\mathcal{F}_{2} respectively.

We also use the following notations: ΔF:=∣F2∣−∣F1∣,rD:=D2/D1,r0:=∣C0∣/ΔF,r1:=∣C1∣/ΔF,\Delta_{F}:=|\mathcal{F}_{2}|-|\mathcal{F}_{1}|,r_{D}:=D_{2}/D_{1},r_{0}:=|\mathcal{C}_{0}|/\Delta_{F},r_{1}:=|\mathcal{C}_{1}|/\Delta_{F}, r2:=∣C2∣/ΔFr_{2}:=|\mathcal{C}_{2}|/\Delta_{F}, and s0:=1/(1+r0)s_{0}:=1/(1+r_{0}). Note that if ΔF=0\Delta_{F}=0, then ∣F1∣=∣F2∣=k|\mathcal{F}_{1}|=|\mathcal{F}_{2}|=k, and we may simply choose F2\mathcal{F}_{2} as our solution, which has cost at most that of the bipoint solution. Thus we assume that ΔF>0\Delta_{F}>0.

In this section, we describe a set of randomized algorithms to round a bi-point solution into a pseudo-solution which opens at most k+O(1)k+O(1) facilities. In order to keep the number of extra facilities bounded, we consider several different cases depending on certain properties of the bi-point solution. In the main case, we get a 1.3371+ϵ1.3371+\epsilon approximation, utilizing DepRound to open only O(log⁡(1/ϵ))O(\log(1/\epsilon)) extra facilities. In the edge cases, we are able to use weaker, but simpler techniques to obtain the same bound.

For each 1-star with center ii and leaf i′i^{\prime}, we define the following ratio. (Note that ΔF>0\Delta_{F}>0 implies L2\mathcal{L}_{2} is nonempty.)

We partition the set T1\mathcal{T}_{1} into sets T1A\mathcal{T}_{1A} of long stars and T1B\mathcal{T}_{1B} of short stars as follows. We sort all the stars in T1\mathcal{T}_{1} in decreasing order of gig_{i}. Let T1A\mathcal{T}_{1A} be the set of the first ⌈aΔF⌉\lceil a\Delta_{F}\rceil stars of T1\mathcal{T}_{1} and T1B:=T1∖T1A\mathcal{T}_{1B}:=\mathcal{T}_{1}\setminus\mathcal{T}_{1A}. Also let C1A\mathcal{C}_{1A} and C1B\mathcal{C}_{1B} be the sets of centers of stars in T1A\mathcal{T}_{1A} and T1B\mathcal{T}_{1B}, respectively. Similarly, let L1A\mathcal{L}_{1A} and L1B\mathcal{L}_{1B} be the corresponding sets of leaves. Note that T1A\mathcal{T}_{1A} is well-defined since ∣T1∣/ΔF=r1>1|\mathcal{T}_{1}|/\Delta_{F}=r_{1}>1 implies ∣T1∣>ΔF|\mathcal{T}_{1}|>\Delta_{F}.

Next, we describe a rounding scheme called A(p0,p1A,q1A,p1B,q1B,p2,q2)\mathcal{A}(p_{0},p_{1A},q_{1A},p_{1B},q_{1B},p_{2},q_{2}) which is the main procedure of our algorithm. The purpose of A\mathcal{A} is to (for X∈{0,1A,1B,2}X\in\{0,1_{A},1_{B},2\}) randomly open roughly pXp_{X} fraction of facilities in CX\mathcal{C}_{X}, and qXq_{X} fraction of facilities in LX\mathcal{L}_{X}, while maintaining the important property that if any leaves of a star are closed, its center will be opened – except in some cases where we completely close all stars in T1A\mathcal{T}_{1A}.

When p2≠0p_{2}\neq 0, we further partition T2\mathcal{T}_{2} into “large” and “small” stars (as in ). For a given parameter η>0\eta>0, we say that a star centered at i∈C2i\in\mathcal{C}_{2} is large if ∣Si∣≥1/(p2η)|\mathcal{S}_{i}|\geq 1/(p_{2}\eta) and small otherwise. Let β=min⁡{q2,1−q2}\beta=\min\{q_{2},1-q_{2}\} and c=⌈163β2⌉c=\lceil\frac{16}{3\beta^{2}}\rceil. Then, we group the small stars according to their sizes: For each s=1,…,⌈log⁡1+β(1/(p2η))⌉−1s=1,\ldots,\lceil\log_{1+\beta}(1/(p_{2}\eta))\rceil-1, let Gs:={i∈C2:(1+β)s≤∣Si∣<(1+β)s+1}\mathcal{G}_{s}:=\{i\in\mathcal{C}_{2}:(1+\beta)^{s}\leq|\mathcal{S}_{i}|<(1+\beta)^{s+1}\}.

Below we define Algorithm A\mathcal{A} and its subroutine Round2Stars. The main algorithm will simply run A\mathcal{A} with 9 different sets of parameters and return the solution with minimum connection cost. We refer to these calls of A\mathcal{A} as algorithms A1,⋯ ,A9\mathcal{A}_{1},\cdots,\mathcal{A}_{9}. See Table 1 for a complete set of parameters. It is easy to see that all numbers in the table belong to $asasb\geq a,,0\leq s_{0}\leq 1,and, andr_{2}\geq 0$.

The algorithm itself runs in linear time. However, when we use Li and Svensson’s algorithm to convert our pseudo-solution to a feasible one, it will take time O(nO(C/ϵ))O(n^{O(C/\epsilon)}) in total, where CC is the number of extra facilities we open. So it is important that CC is a (preferably small) constant. A few of these extra facilities come from handling basic rounding (e.g. ⌈q2∣L2∣⌉\lceil q_{2}|\mathcal{L}_{2}|\rceil), however, the majority come from handling the positive correlation within the groups Gs\mathcal{G}_{s}. Li and Svensson considered O(1/η)O(1/\eta) groups of stars, each with uniform size, bounded the positive correlation by adding a few extra facilities per group, and showed that the total cost is only blown up by a factor of (1+η)(1+\eta). Property (A2) of DepRound allows us to run it on a group with stars of varying sizes. This allows us to use a geometric grouping of stars, and thus open only O(log⁡(1/η))O(\log(1/\eta)) extra facilities. Property (A3) gives a bound on the positive correlation, so that we may compensate for it by adding O(1/β2)O(1/\beta^{2}) extra facilities per group. Thus, β\beta must be bounded away from zero, which strongly motivates our restriction of the domain of the main algorithm.

Note that if we run A\mathcal{A} with parameters p0=p1A=p1B=p2=ap_{0}=p_{1A}=p_{1B}=p_{2}=a, and q1A=q1B=q2=bq_{1A}=q_{1B}=q_{2}=b, the resulting algorithm is essentially the same as that given in . (The set of algorithms we use subsumes the need for this one.) The main difference in this case is that we need to open only O(log⁡(1/ϵ))O(\log(1/\epsilon)) extra facilities instead of O(1/ϵ)O(1/\epsilon).

3.2 Bounding the number of opened facilities

Since our main algorithm will return one of the solutions by A1,⋯ ,A9\mathcal{A}_{1},\cdots,\mathcal{A}_{9}, we need to show that none of these will open too many facilities. Algorithm 3 essentially partitions all stars into a constant number of groups. Consider the budget of each group, which is the expected number of facilities opened in that group if we independently open each facility in CX\mathcal{C}_{X} with probability pXp_{X} and each in LX\mathcal{L}_{X} with qXq_{X}. We want to show that for each group, the number of facilities opened is always within an additive constant of that group’s budget. The trickiest groups are the groups of small stars {Gs}\{\mathcal{G}_{s}\}.

For each group Gs\mathcal{G}_{s}, let C(s)\mathcal{C}(s) and L(s)\mathcal{L}(s) be the set of centers and leaves of stars in Gs\mathcal{G}_{s} respectively. Then Round2Stars always opens at most p2∣C(s)∣+q2∣L(s)∣+c+2p_{2}|\mathcal{C}(s)|+q_{2}|\mathcal{L}(s)|+c+2 facilities in C(s)∪L(s)\mathcal{C}(s)\cup\mathcal{L}(s).

By property (A2) of DepRound, we have with probability 1 that

The number of facilities opened in lines 5 and 6 is at most

where in the penultimate step we have used that p2+q2=1p_{2}+q_{2}=1 whenever Round2Stars is called. (This follows from A1…A9\mathcal{A}_{1}\ldots\mathcal{A}_{9}, except A7\mathcal{A}_{7} where Round2Stars would never be called.) The lemma follows because we open at most cc additional facilities in line 7. ∎

Note that the number of groups of small stars is at most log⁡1+β(1/(p2η))\log_{1+\beta}(1/(p_{2}\eta)), and we open at most c+2=⌈16/(3β2)⌉+2c+2=\lceil 16/(3\beta^{2})\rceil+2 additional facilities in each group. It is straightforward to see that the other groups (T1A\mathcal{T}_{1A}, T1B\mathcal{T}_{1B}, and large stars) only open a constant number of extra facilities, and so our total budget is violated by only a constant amount. The following claim shows that β\beta and p2p_{2} are strictly greater than zero (i.e., cc and the number of groups are upper-bounded by real constants.) All proofs of the remaining claims in this section are in Appendix B.

When Round2Stars is called, we have β>1/75\beta>1/75 and p2≥5/24p_{2}\geq 5/24.

Since we open basically O(1β3log⁡(1η))O(\frac{1}{\beta^{3}}\log(\frac{1}{\eta})) extra facilities, these small lower bounds lead to poor constants. Significant improvement may be made by further splitting the cases, and carefully choosing the set of algorithms used in each. However, in order to avoid further complicating the algorithm and its analysis, we do not attempt to optimize these values here.

For any given set of parameters {p0,p1A,q1A,p1B,q1B,p2,q2}\{p_{0},p_{1A},q_{1A},p_{1B},q_{1B},p_{2},q_{2}\} in Table 1, A\mathcal{A} will open at most E+O(log⁡(1/η))E+O(\log(1/\eta)) facilities with probability 11, where

The O(log⁡(1/η))O(\log(1/\eta)) term comes as a result of us opening O(log⁡(1/η))O(\log(1/\eta)) small groups Gs\mathcal{G}_{s}. The parameters in A1,⋯ ,A8\mathcal{A}_{1},\cdots,\mathcal{A}_{8} are carefully chosen so that the total budget E≈kE\approx k in each case. This gives us the following result.

Algorithms A1,⋯ ,A9\mathcal{A}_{1},\cdots,\mathcal{A}_{9} will always open at most k+O(log⁡(1/η))k+O(\log(1/\eta)) facilities.

3.3 Cost analysis

We now derive bounds for the expected connection cost of a single client. For each client j∈Jj\in\mathcal{J}, let i1(j)i_{1}(j) and i2(j)i_{2}(j) be the client’s closest facilities in F1\mathcal{F}_{1} and F2\mathcal{F}_{2}, and let d1(j)d_{1}(j) and d2(j)d_{2}(j) be their respective distances from jj. Also let i3(j)i_{3}(j) be the center of the star containing i2(j)i_{2}(j). (Where obvious, we omit the parameter jj.) We will obtain several different upper bounds, depending on the class of the star in which i1(j)i_{1}(j) and i2(j)i_{2}(j) lie. Full derivations of these bounds are in Appendix C. A key characteristic of Algorithm 2 is that for any star in class Y∈{1A,1B,2}Y\in\{1_{A},1_{B},2\}, as long as pY+qY≥1p_{Y}+q_{Y}\geq 1, it will always open either the star’s center or all of the star’s leaves. By definition of stars, we know i3i_{3} is not too far away. We will slightly abuse notation and let ii and iˉ\bar{i} represent the events that facility ii is opened or closed, respectively. By considering these probabilities, we obtain the following two bounds, similar to the one used in .

Let jj be a client. Suppose we are running one of algorithms A1\mathcal{A}_{1} to A7\mathcal{A}_{7}, OR we are running A8\mathcal{A}_{8} and i2(j)∉L1Ai_{2}(j)\not\in\mathcal{L}_{1A}. Then the expected connection cost of jj after running Algorithm 2 is bounded above by both c213(j):=d2+Pr⁡[iˉ2](d1−d2)+2Pr⁡[iˉ1iˉ2]d2c_{213}(j):=d_{2}+\Pr[\bar{i}_{2}](d_{1}-d_{2})+2\Pr[\bar{i}_{1}\bar{i}_{2}]d_{2} and c123(j):=d1+Pr⁡[iˉ1](d2−d1)+Pr⁡[iˉ1iˉ2](d1+d2)c_{123}(j):=d_{1}+\Pr[\bar{i}_{1}](d_{2}-d_{1})+\Pr[\bar{i}_{1}\bar{i}_{2}](d_{1}+d_{2}).

In A8\mathcal{A}_{8}, p1A=q1A=0p_{1A}=q_{1A}=0, meaning all stars in T1A\mathcal{T}_{1A} have both center and leaf closed, so if i2∈L1Ai_{2}\in\mathcal{L}_{1A} the previous bound does not hold. In this case, let i4i_{4} be the closest leaf of a 2-star to i3i_{3}. Recall the definition of gig_{i}; this gives us information on the distance to i4i_{4}. Let g:=min⁡i∈C1Agig:=\min_{i\in\mathcal{C}_{1A}}g_{i} be the minimum value over all stars in T1A\mathcal{T}_{1A}. Then we may bound the cost to i4i_{4} (or its center, in the worst case) as follows:

Let jj be a client such that i2(j)∈L1Ai_{2}(j)\in\mathcal{L}_{1A}. Then the expected connection cost of jj, when running A8A_{8}, is bounded above by c145(j):=d1+Pr⁡[iˉ1](2d2+1g(d1+d2))+Pr⁡[iˉ1iˉ4]1g(d1+d2)c_{145}(j):=d_{1}+\Pr[\bar{i}_{1}]\left(2d_{2}+\frac{1}{g}(d_{1}+d_{2})\right)+\Pr[\bar{i}_{1}\bar{i}_{4}]\frac{1}{g}(d_{1}+d_{2}).

These two lemmas provide a valid bound for all clients. However, the bound in Lemma 3.6 may be very poor if gg is small. To balance this, we provide another bound which does well for small gg.

Let jj be a client such that i1(j)∈C1Bi_{1}(j)\in\mathcal{C}_{1B} and i2(j)∈L2i_{2}(j)\in\mathcal{L}_{2}. Then in all algorithms, the expected cost of jj is bounded above by both of the following:

(Note: as we observe in the proof of the above, the coefficient (d1−d2+g(d1+d2))(d_{1}-d_{2}+g(d_{1}+d_{2})) is nonnegative.)

The following lemma relates the probabilities in the above bounds to the parameters of the algorithm. In particular, we take advantage of properties (A1) and (A3) of DepRound as described in Section 2.2.

Let i1i_{1} and i2i_{2} be any two facilities in F1\mathcal{F}_{1} and F2\mathcal{F}_{2}, respectively. Let X,Y∈{0,1A,1B,2}X,Y\in\{0,1_{A},1_{B},2\} be the classes such that i1∈CXi_{1}\in\mathcal{C}_{X} and i2∈LYi_{2}\in\mathcal{L}_{Y}. Then for any A(p0,p1A,q1A,p1B,q1B,p2,q2)\mathcal{A}(p_{0},p_{1A},q_{1A},p_{1B},q_{1B},p_{2},q_{2}) in Table 1, the following are true:

Consider i1i_{1}. Suppose i1∈CXi_{1}\in\mathcal{C}_{X}. If X∈{0,1A,1B}X\in\{0,1_{A},1_{B}\}, we have Pr⁡[i1]≥pX\Pr[i_{1}]\geq p_{X} (by lines 1, 2, and 3 of Algorithm 2). Otherwise X=2X=2. If p2=0p_{2}=0 or p2=1p_{2}=1, line 5 of Algorithm 2 is executed and Pr⁡[i1]=p2\Pr[i_{1}]=p_{2} exactly. Else, we run Round2Stars. If i1i_{1} is part of a large star, then it is always opened so Pr⁡[iˉ1]=0\Pr[\bar{i}_{1}]=0. Else, i1i_{1} is in a small star, and we have Pr⁡[i1ˉ]≤Pr⁡[Xi1=1]≤E[Xi1]=q2=1−p2\Pr[\bar{i_{1}}]\leq\Pr[X_{i_{1}}=1]\leq\text{\bf E}[X_{i_{1}}]=q_{2}=1-p_{2}. This holds because iˉ1\bar{i}_{1} only occurs when Xi1=1X_{i_{1}}=1. In all cases (14) holds.

Consider i2i_{2}. Suppose i2∈LYi_{2}\in\mathcal{L}_{Y}. If Y∈{1A,1B}Y\in\{1_{A},1_{B}\}, we have Pr⁡[i2]≥qY\Pr[i_{2}]\geq q_{Y}. Otherwise Y=2Y=2. Again, if line 5 of Algorithm 2 is executed, Pr⁡[i2]≥q2\Pr[i_{2}]\geq q_{2}. Else, we run Round2Stars. Consider the case that i2∈L2′i_{2}\in\mathcal{L}^{\prime}_{2} is part of a large star. Recall that large stars have at least 1/(p2η)=1/((1−q2)η)1/(p_{2}\eta)=1/((1-q_{2})\eta) leaves. Then

Otherwise, i2i_{2} is part of some small star, with center i3i_{3}. If Xi3X_{i_{3}} is 1 or 0, by line 5, Pr⁡[i2]=Xi3\Pr[i_{2}]=X_{i_{3}}. If 0<Xi3<10<X_{i_{3}}<1, then by line 6, Pr⁡[i2]≥Xi3\Pr[i_{2}]\geq X_{i_{3}}. So in any case, we have Pr⁡[i2∣Xi3=x]≥x\Pr[i_{2}|X_{i_{3}}=x]\geq x. Note that each indicator returned by DepRound can only take finitely many values in $.Letting. Letting\mathcal{U}$ be the set of these values, we have

Now consider both i1i_{1} and i2i_{2}. There are many cases to consider, but most of them are easy. If i1i_{1} and i2i_{2} belong to stars of different classes, then they are opened independently, so Pr⁡[iˉ1iˉ2]=Pr⁡[iˉ1]Pr⁡[iˉ2]≤(1+η)(1−pX)(1−qY)\Pr[\bar{i}_{1}\bar{i}_{2}]=\Pr[\bar{i}_{1}]\Pr[\bar{i}_{2}]\leq(1+\eta)(1-p_{X})(1-q_{Y}). For the remaining cases, i1∈CXi_{1}\in\mathcal{C}_{X} and i2∈LXi_{2}\in\mathcal{L}_{X} for the same class X∈{1A,1B,2}X\in\{1_{A},1_{B},2\}. There is a special case where X=1AX=1_{A}, and we are running A8\mathcal{A}_{8}. In this case, p1A=q1A=0p_{1A}=q_{1A}=0 so Pr⁡[iˉ1iˉ2]=1=(1−p1A)(1−q1A)\Pr[\bar{i}_{1}\bar{i}_{2}]=1=(1-p_{1A})(1-q_{1A}). Otherwise, if X∈{1A,1B}X\in\{1_{A},1_{B}\}, then at least one of qXq_{X} and pXp_{X} is 1, so all centers or leaves are opened, so Pr⁡[iˉ1iˉ2]=0\Pr[\bar{i}_{1}\bar{i}_{2}]=0.

The remaining case is when X=2X=2. Notice that line 5 of Algorithm 2 is called when either p2=0p_{2}=0 or p2=1p_{2}=1. The only time p2=0p_{2}=0 is A8\mathcal{A}_{8}, in which q2=1q_{2}=1, so all the leaves are opened and Pr⁡[iˉ1iˉ2]=0\Pr[\bar{i}_{1}\bar{i}_{2}]=0. If p2=1p_{2}=1, then i1i_{1} is always opened and Pr⁡[iˉ1iˉ2]=0\Pr[\bar{i}_{1}\bar{i}_{2}]=0. Otherwise T2\mathcal{T}_{2} is divided into one group of large stars, and many groups Gs\mathcal{G}_{s} of small stars. Again, if i1i_{1} and i2i_{2} are in different groups, they are rounded independently. If they are both in a large star, then i1i_{1} will always be opened and Pr⁡[iˉ1iˉ2]=0\Pr[\bar{i}_{1}\bar{i}_{2}]=0. If they are both in the same small star, then the center-or-leaves property of our algorithm implies they will never both be closed, so Pr⁡[iˉ1iˉ2]=0\Pr[\bar{i}_{1}\bar{i}_{2}]=0.

In the only remaining case, we have that Round2Stars is run (and p2+q2=1p_{2}+q_{2}=1), and i1i_{1} and i2i_{2} lie in separate stars within the same group Gs\mathcal{G}_{s}. Let E\mathcal{E} be the event that “i1i_{1} is among the cc random facilities chosen to be opened in line 7 of Round2Stars”. We first show

If ∣Gs∣≤c|\mathcal{G}_{s}|\leq c, then all facilities in Gs\mathcal{G}_{s} will be opened and Pr⁡[i1ˉi2ˉ]=0\Pr[\bar{i_{1}}\bar{i_{2}}]=0. Otherwise, we can bound Pr⁡[i1ˉi2ˉ]\Pr[\bar{i_{1}}\bar{i_{2}}] as follows. Conditioned on Eˉ\bar{\mathcal{E}}, i1i_{1} is closed iff Xi1=1X_{i_{1}}=1. Thus,

where we have applied Theorem 2.11 from Section 2.2. There are t=2t=2 variables of interest, n=∣Gs∣n=|\mathcal{G}_{s}| total variables, and α=min⁡{q2,1−q2}=β\alpha=\min\{q_{2},1-q_{2}\}=\beta.

We want to choose cc such that (1−c∣Gs∣)(1+163∣Gs∣β2)≤1+η\left(1-\frac{c}{|\mathcal{G}_{s}|}\right)\left(1+\frac{16}{3|\mathcal{G}_{s}|\beta^{2}}\right)\leq 1+\eta, or equivalently,

Therefore, our choice of c=⌈16/(3β2)⌉c=\lceil 16/(3\beta^{2})\rceil implies that (16) holds true in all cases.

3.4 The nonlinear factor-revealing program

Now we will construct a nonlinear program which bounds the ratio between the total connection cost and the cost of the bi-point solution. We first introduce some necessary notation. Partition the clients into classes according to the types of stars in which i1(j)i_{1}(j) and i2(j)i_{2}(j) lie:

Furthermore, since we have multiple cost bounds available, we want to use the one which will be smallest for each client. Simply put, we want to try connecting the client to the closest facility first. To this end, we define subclasses for clients who are closer to either i1(j)i_{1}(j) or i2(j)i_{2}(j), respectively:

For (X,Y)=(1B,2)(X,Y)=(1_{B},2), we define the subclasses slightly differently. This takes into account whether each client is closer to i0(j)i_{0}(j) or i3(j)i_{3}(j):

Define the following set of classes, observing {JZ}Z∈Z\{\mathcal{J}^{Z}\}_{Z\in\mathcal{Z}} fully partitions the set of clients.

For each client class Z∈ZZ\in\mathcal{Z}, let D1Z:=∑j∈JZd1(j)D^{Z}_{1}:=\sum_{j\in\mathcal{J}^{Z}}d_{1}(j) and D2Z:=∑j∈JZd2(j)D^{Z}_{2}:=\sum_{j\in\mathcal{J}^{Z}}d_{2}(j), be the total cost contribution to D1D_{1} or D2D_{2}, respectively, from clients in class JZJ^{Z}. Then define the following:

Finally, given an algorithm Ai=A(p0,p1A,q1A,p1B,q1B,p2,q2)\mathcal{A}_{i}=A(p_{0},p_{1A},q_{1A},p_{1B},q_{1B},p_{2},q_{2}), define

For algorithms A1,…,A7\mathcal{A}_{1},\ldots,\mathcal{A}_{7} and A9\mathcal{A}_{9}, the total expected cost is bounded above by (1+η)COST1(Ai)(1+\eta)COST_{1}(\mathcal{A}_{i}). The expected cost of A8\mathcal{A}_{8} is bounded above by (1+η)COST2(A8)(1+\eta)COST_{2}(\mathcal{A}_{8}).

Sum the bounds from Lemmas 3.5, 3.6, and 3.7 over each corresponding client class, and apply the bounds from Lemma 3.8. To apply those upper bounds, we need that the coefficients of Pr⁡[iˉ1]\Pr[\bar{i}_{1}], Pr⁡[iˉ1iˉ2]\Pr[\bar{i}_{1}\bar{i}_{2}] (or similar terms) are nonnegative. This follows by definition of the class being summed over. (For example, for class P(X,Y)P(X,Y), we have d2≤d1d_{2}\leq d_{1}, so d1−d2≥0d_{1}-d_{2}\geq 0.) By linearity of expectation, we get the total expected cost of the algorithm. ∎

Given a bi-point solution with cost aD1+bD2aD_{1}+bD_{2} as input, with s0≥5/6,b∈[0.508,3/4],rD∈[19/40,2/3],s_{0}\geq 5/6,b\in[0.508,3/4],r_{D}\in[19/40,2/3], and r1>1r_{1}>1, the best solution returned by A1,…,A9\mathcal{A}_{1},\ldots,\mathcal{A}_{9} has expected cost E[COST]≤X∗⋅(1+η)(aD1+bD2)E[COST]\leq X^{*}\cdot(1+\eta)(aD_{1}+bD_{2}), where X∗X^{*} is the solution to the above nonlinear program. Furthermore, X∗∈[1.3370, 1.3371]X^{*}\in[1.3370,~{}1.3371].

Given a bi-point instance aF1+bF2a\mathcal{F}_{1}+b\mathcal{F}_{2}, first normalize all the distances by dividing by aD1+bD2aD_{1}+bD_{2}. This does not change the solution or the ratio of approximation obtained. Let XX be the cost of the solution given by Algorithm 2. Because of the normalization, XX is also the bi-point rounding factor. Constraints (26) and (27) must hold because we take the best cost of all algorithms. Lemma 3.9 shows that XX may be a factor (1+η)(1+\eta) larger. Constraints (28), (29), (30), and (31) must hold by definition of each client class (see (17) through (22)). Constraints (32) and (33) enforce that the corresponding distance contributions from each client class sum to D1D_{1} and D2D_{2} (normalized).

We observe that for a fixed set of values of bb, rDr_{D}, s0s_{0}, and gg, the program becomes linear. As described in Appendix D, we exploit this with computer-assisted methods (rigorous interval-arithmetic) and prove that 1.3370≤X∗≤1.33711.3370\leq X^{*}\leq 1.3371. ∎

4 Algorithms for edge cases

We have several border cases which we handle in a different, generally simpler, manner. The algorithms and proofs are given in the appendix.

There is a (1+η)⋅1.3371(1+\eta)\cdot 1.3371-approximation algorithm for rounding the bi-point solution and opens at most k+O(log⁡(1/η))k+O(\log(1/\eta)) facilities when either b≤0.508, b≥3/4, rD≤19/40,b\leq 0.508,\ b\geq 3/4,\ r_{D}\leq 19/40, or rD≥2/3r_{D}\geq 2/3.

There is a (1+η)⋅1.3371(1+\eta)\cdot 1.3371-approximation algorithm for rounding the bi-point solution which opens at most k+O(log⁡(1/η))k+O(\log(1/\eta)) facilities when s0≤5/6,b∈[0.508,3/4],s_{0}\leq 5/6,b\in[0.508,3/4], and rD∈[19/40,2/3]r_{D}\in[19/40,2/3].

There is a (1+η)⋅1.3371(1+\eta)\cdot 1.3371-approximation algorithm for rounding the bi-point solution which opens at most k+O(log⁡(1/η))k+O(\log(1/\eta)) facilities when s0≥5/6,b∈[0.508,3/4],rD∈[19/40,2/3],s_{0}\geq 5/6,b\in[0.508,3/4],r_{D}\in[19/40,2/3], and r1≤1r_{1}\leq 1.

The result is summarized in the following theorem.

There is a (1+η)⋅1.3371(1+\eta)\cdot 1.3371-approximation algorithm for rounding the bi-point solution which opens at most k+O(log⁡(1/η))k+O(\log(1/\eta)) facilties.

5 Dichotomy result

In the last subsections, we introduced a (2.675+ϵ)(2.675+\epsilon)-approximation algorithm for the kk-median problem which runs in O(nO((1/ϵ)log⁡(1/ϵ)))O\left(n^{O((1/\epsilon)\log(1/\epsilon))}\right) time. Now we show that by using a simple scaling technique and careful analysis, we can either improve the runtime by getting rid of the log⁡(1/ϵ)\log(1/\epsilon) factor in the power of nn, or we can improve the approximation ratio. Our result is summarized in the following theorem. Recall from the last subsection that, when Round2Stars(p2,q2p_{2},q_{2}) is called, β:=min⁡{q2,1−q2}\beta:=\min\{q_{2},1-q_{2}\} is strictly bounded away from zero.

For any parameter ϵ>0\epsilon>0 small enough, there exist algorithms AϵA_{\epsilon} and BϵB_{\epsilon} such that, for any instance I\mathcal{I} of the kk-median problem, either AϵA_{\epsilon} is fast or BϵB_{\epsilon} is more accurate:

AϵA_{\epsilon} is a randomized (2.675+ϵ)(2.675+\epsilon)-approximation algorithm which produces a solution to I\mathcal{I} with constant probability and runs in O(nO(1/ϵ))O(n^{O(1/\epsilon)}) time, or

We say that a star Si\mathcal{S}_{i} with i∈C2i\in\mathcal{C}_{2} is small if 2≤∣Si∣≤c0η2\leq|\mathcal{S}_{i}|\leq\frac{c_{0}}{\eta} for some constant c0>0c_{0}>0. Otherwise, ∣Si∣>c0η|\mathcal{S}_{i}|>\frac{c_{0}}{\eta} and we call it a large star. Again, let C2′\mathcal{C}_{2}^{\prime} and L2′\mathcal{L}_{2}^{\prime} denote sets of centers and leaves of large stars. Also let C2′′\mathcal{C}_{2}^{\prime\prime} and L2′′\mathcal{L}_{2}^{\prime\prime} be sets of centers and leaves of small stars.

First, observe that for large stars, we can reuse the following trick: move a little mass from the leaves to open the center. In other words, we will open C2′C_{2}^{\prime} and a subset of size ⌈q2(∣L2′∣−∣C2′∣)⌉\lceil q_{2}(|\mathcal{L}_{2}^{\prime}|-|\mathcal{C}_{2}^{\prime}|)\rceil of L2′\mathcal{L}_{2}^{\prime}. For i2∈L2′i_{2}\in\mathcal{L}_{2}^{\prime}, it is not hard to show that Pr⁡[i2]≥q−pη\Pr[i_{2}]\geq q-p\eta (i.e. the loss is negligible). We open 1 extra facility in this class. Recall that A\mathcal{A} opens at most 4 extra facilities in T0∪T1∪C2′∪L2′\mathcal{T}_{0}\cup\mathcal{T}_{1}\cup\mathcal{C}_{2}^{\prime}\cup\mathcal{L}_{2}^{\prime}. The question is can we also reduce the number of extra opened facilities which are part of small stars (previously, this number was O(log⁡(1/η))O(\log(1/\eta)))? We consider the following cases.

Case 3: Neither Case 1 nor Case 2 holds (i.e. ∣C2′′∣≤f(1/η)|\mathcal{C}_{2}^{\prime\prime}|\leq f(1/\eta) and ∣L2′∣+∣L2′′∣≥g(1/η)|\mathcal{L}_{2}^{\prime}|+|\mathcal{L}_{2}^{\prime\prime}|\geq g(1/\eta)). Note that, by definition of small stars,

Intuitively, the number of centers and leaves of small stars are upper-bounded by some constant. On the other hand, we have a lower-bound on the number of leaves of large stars. If we have enough leaves in L2′\mathcal{L}_{2}^{\prime}, we can scale down the probability to open each facility in L2′\mathcal{L}_{2}^{\prime} so that all centers in C2′′\mathcal{C}_{2}^{\prime\prime} can be opened without violation.

See Appendix F for details of these cases.

Discussion

We conclude with a specific discussion followed by more general speculation.

In Section 3, we considered a selection of counterbalancing algorithms which were chosen (with numerical aid) to be a minimal such set which obtains the bi-point rounding factor 1.3371. However, this can be improved, if only slightly, at the cost of adding more nonlinear variables to the factor-revealing program. We currently split the 1-stars into two groups based on their size-to-distance ratio gig_{i}, and a threshold gg. We assume this ratio may be unbounded on either side of the threshold, yet the analysis is only tight when all gig_{i} are exactly gg. We could exploit this by splitting the 1-stars into 3 or more classes, with multiple thresholds, and adding more sets of parameters to take advantage of the division. Testing this with three classes, we get a new factor in the interval [1.332,1.3371)[1.332,1.3371). So we know there is a little more gain to be had, but it adds more complexity to the algorithm and analysis.

Also, consider that in our algorithm we have fixed the parameter r1Ar_{1A} so that it is exactly large enough to close and open all the big leaves (A8\mathcal{A}_{8}). This is a strategic choice, and makes the algorithms simple. However, it is possible that there is a better choice, as a function of some other variables in the instance. It is also possible to fix gg instead and let r1Ar_{1A} be a variable in the program, but this creates more cases. A purely analytical analysis would be greatly helpful toward choosing the appropriate parameter.

A rough lower bound on the potential improvement from these ideas is 3+54≈1.309\frac{3+\sqrt{5}}{4}\approx 1.309, as this is the ratio we get on an instance with no 1-stars (or 0-stars) at all, by opening roots and leaves with proportions (a,b)(a,b) and (1,b/2)(1,b/2).

Recent years have seen significant progress on hard-capacitated problems, e.g., for vertex-cover and its variants . However, progress on the different variants of capacitated problems has been slower: see, e.g., and the references therein. We suggest speculatively that the (probabilistic) analog of for bipartite graphs – the work of – may help with ensuring that the capacity constraints are met with probability one, while ensuring other desired negative-correlation and near-independence properties.

Acknowledgements

We thank Joachim Spoerhase for helping us to discover an inconsistency in an earlier version of this paper. We also thank Marcin Mucha for showing us the work of Mahdian & Yan .

References

Appendix A Proofs for Section 3: DepRound

(Lemma 2.1) As example, we prove the properties hold in case I:

We either set γ1=0\gamma_{1}=0, and γ2=β2+β1a1a2=1a2(a2β2+a1β1)≤min⁡{a1,a2}a2≤1\gamma_{2}=\beta_{2}+\beta_{1}\frac{a_{1}}{a_{2}}=\frac{1}{a_{2}}(a_{2}\beta_{2}+a_{1}\beta_{1})\leq\frac{\min\{a_{1},a_{2}\}}{a_{2}}\leq 1, or we set γ2=0\gamma_{2}=0 and γ1=β1+β2a2a1=1a1(a1β1+a2β2)≤min⁡{a1,a2}a1≤1\gamma_{1}=\beta_{1}+\beta_{2}\frac{a_{2}}{a_{1}}=\frac{1}{a_{1}}(a_{1}\beta_{1}+a_{2}\beta_{2})\leq\frac{\min\{a_{1},a_{2}\}}{a_{1}}\leq 1.

E[γ1]= ⁣a2β2a1β1+a2β2⋅0+a1β1a1β1+a2β2(β1+β2a2a1)=β1,\text{\bf E}[\gamma_{1}]=\!\frac{a_{2}\beta_{2}}{a_{1}\beta_{1}+a_{2}\beta_{2}}\cdot 0+\frac{a_{1}\beta_{1}}{a_{1}\beta_{1}+a_{2}\beta_{2}}(\beta_{1}+\beta_{2}\frac{a_{2}}{a_{1}})=\beta_{1}, and E[γ2]= ⁣a2β2a1β1+a2β2(β2+β1a1a2)+a1β1a1β1+a2β2⋅0=β2\text{\bf E}[\gamma_{2}]=\!\frac{a_{2}\beta_{2}}{a_{1}\beta_{1}+a_{2}\beta_{2}}(\beta_{2}+\beta_{1}\frac{a_{1}}{a_{2}})+\frac{a_{1}\beta_{1}}{a_{1}\beta_{1}+a_{2}\beta_{2}}\cdot 0=\beta_{2}.

If we set γ1=0\gamma_{1}=0, then a1γ1+a2γ2=0+a2(β2+β1a1a2)=a1β1+a2β2a_{1}\gamma_{1}+a_{2}\gamma_{2}=0+a_{2}(\beta_{2}+\beta_{1}\frac{a_{1}}{a_{2}})=a_{1}\beta_{1}+a_{2}\beta_{2}. If we set γ2=0\gamma_{2}=0, then a1γ1+a2γ2=a1(β1+β2a2a1)+0=a1β1+a2β2a_{1}\gamma_{1}+a_{2}\gamma_{2}=a_{1}(\beta_{1}+\beta_{2}\frac{a_{2}}{a_{1}})+0=a_{1}\beta_{1}+a_{2}\beta_{2}.

The first part is trivial as E[γ1γ2]=0≤β1β2\text{\bf E}[\gamma_{1}\gamma_{2}]=0\leq\beta_{1}\beta_{2}. For the second part:

Appendix B Proofs: Bounding the number of opened facilities

(Claim 3.2) Round2Stars is only called during A1,…,A6\mathcal{A}_{1},\ldots,\mathcal{A}_{6}. (In A7A_{7} and A8A_{8}, line 5 is called instead.) Consider possible values of p2p_{2} and q2q_{2} in Table 1. Recall that s0∈[5/6,1]s_{0}\in[5/6,1], b∈[0.508,3/4]b\in[0.508,3/4] and a+b=1a+b=1. The minimum of β=min⁡{q2,1−q2}\beta=\min\{q_{2},1-q_{2}\} is attained in A6\mathcal{A}_{6} when b=0.508b=0.508 and s0=5/6s_{0}=5/6; here q2=(b−a)s0=(0.508−0.492)⋅5/6=1/75q_{2}=(b-a)s_{0}=(0.508-0.492)\cdot 5/6=1/75. Also, the minimum of p2p_{2} is attained at p2=as0p_{2}=as_{0}, a=1/4a=1/4, and s0=5/6s_{0}=5/6. ∎

(Lemma 3.3) We consider Algorithm 2. It is easy to see that

In line 1, we open at most p0∣C0∣+1p_{0}|\mathcal{C}_{0}|+1 facilities,

In line 2, we open at most p1A∣C1A∣+q1A∣C1A∣+2p_{1A}|\mathcal{C}_{1A}|+q_{1A}|\mathcal{C}_{1A}|+2 facilities,

In line 3, we open at most p1B∣C1B∣+q1B∣C1B∣+2p_{1B}|\mathcal{C}_{1B}|+q_{1B}|\mathcal{C}_{1B}|+2 facilities,

If line 5 is executed then we open at most p2∣C2∣+q2∣L2∣+1p_{2}|\mathcal{C}_{2}|+q_{2}|\mathcal{L}_{2}|+1 facilities,

In line 1, the number of opened facilities is

where the equality follows due to the fact that 1−q2=p21-q_{2}=p_{2} whenever Round2Stars is called.

By Lemma 3.1 and Claim 3.2, the number of facilities opened by the for loop (lines 3…73\ldots 7) is at most

The lemma follows by taking the sum of opened facilities in each case.

(Lemma 3.4) Since b∈[1/2,3/4]b\in[1/2,3/4] and s0≤1s_{0}\leq 1, p2p_{2} is bounded away from in A1,…,A9\mathcal{A}_{1},\ldots,\mathcal{A}_{9}. Note that Round2Stars is not called in A7\mathcal{A}_{7} and A8\mathcal{A}_{8}; at most E+1E+1 facilities can be opened in these two algorithms. By Lemma 3.3, it suffices to show that E≤k+1E\leq k+1. The proof is straightforward. We substitute the parameters in Table 1 and s0=11+∣C0∣/ΔF=1+∣C0∣∣C2∣−∣L2∣s_{0}=\frac{1}{1+|\mathcal{C}_{0}|/\Delta_{F}}=1+\frac{|\mathcal{C}_{0}|}{|\mathcal{C}_{2}|-|\mathcal{L}_{2}|} to compute EE in each case. We use simple facts such as ∣C1A∣=∣L1A∣|\mathcal{C}_{1A}|=|\mathcal{L}_{1A}|, ∣C1B∣=∣L1B∣|\mathcal{C}_{1B}|=|\mathcal{L}_{1B}|, and ∣C1A∣+∣C1B∣=∣C1∣|\mathcal{C}_{1A}|+|\mathcal{C}_{1B}|=|\mathcal{C}_{1}| to further simplify the expression. Also recall that ∣C1A∣=⌈aΔF⌉|\mathcal{C}_{1A}|=\lceil a\Delta_{F}\rceil, and thus aΔF≤∣C1A∣≤aΔF+1a\Delta_{F}\leq|\mathcal{C}_{1A}|\leq a\Delta_{F}+1. By definition, we have ΔF=∣L2∣−∣C0∣−∣C2∣\Delta_{F}=|\mathcal{L}_{2}|-|\mathcal{C}_{0}|-|\mathcal{C}_{2}| and 2∣C2∣≤∣L2∣2|\mathcal{C}_{2}|\leq|\mathcal{L}_{2}|.

For A2,A3,A4\mathcal{A}_{2},\mathcal{A}_{3},\mathcal{A}_{4}, and A5\mathcal{A}_{5}, substituting the parameters gives the same EE:

For A9\mathcal{A}_{9} (this is exactly Li-Svensson algorithm), we have

Appendix C Proofs: Bounding client connection cost

(Lemma 3.5) For all these clients, we know that at least one of i2i_{2} or i3i_{3} will always be open. First consider the case that i1≠i3i_{1}\neq i_{3}. Then the facilities are as shown below. Observe by the construction of stars, i2i_{2} cannot be closer to i1i_{1} than i3i_{3} (otherwise i1i_{1} would be its center). Thus d(i2,i3)≤d(i2,i1)≤d1+d2d(i_{2},i_{3})\leq d(i_{2},i_{1})\leq d_{1}+d_{2}. It follows by the triangle inequality that d(j,i3)≤d(j,i2)+d(i2,i3)≤d1+2d2d(j,i_{3})\leq d(j,i_{2})+d(i_{2},i_{3})\leq d_{1}+2d_{2}.

Now let us connect jj to i2i_{2} if open. Else, connect to i1i_{1} if open. Else, connect to i3i_{3}. The actual facility which jj connects to can only be closer than any of these. Thus, this yields the following upper bound for the expected connection cost of jj.

Now consider the remaining case that i1=i3i_{1}=i_{3}. In this case, at least one of i1i_{1} or i2i_{2} will always be open. Again, depending on which facility we attempt to connect to first, we can obtain either of two bounds:

Thus (36) and (37) are valid bounds in both cases. ∎

(Lemma 3.6) For these clients it is possible that i1i_{1}, i2i_{2} and i3i_{3} are all closed. Let i4i_{4} be the closest facility in L2\mathcal{L}_{2} to i3i_{3}, and let i5i_{5} be the center of i4i_{4}. Then by definition, we have

This yields the following bound on d(i3,i4)d(i_{3},i_{4}) (and thus d(i4,i5)d(i_{4},i_{5})):

Now we know that if i4i_{4} is closed, then i5i_{5} must be open. We also know that i2i_{2} and i3i_{3} will always be closed. In the case that i1≠i3i_{1}\neq i_{3} (which is shown above), we will try connecting, in order, to i1i_{1}, i4i_{4}, and i5i_{5}, connecting to the first one which is open. This yields the following bound:

For the case that i1=i3i_{1}=i_{3}, we have the below situation:

Here i1i_{1} and i2i_{2} are always closed, so we try connecting first to i4i_{4}, then to i5i_{5}, giving the following bound:

In this case Pr[iˉ1]=1Pr[\bar{i}_{1}]=1. Also since i1∈C1Ai_{1}\in\mathcal{C}_{1A} and i4∈L2i_{4}\in\mathcal{L}_{2} are in different types of stars, they are rounded independently, so Pr[iˉ1iˉ4]=Pr[iˉ1]Pr[iˉ4]=Pr[iˉ4]Pr[\bar{i}_{1}\bar{i}_{4}]=Pr[\bar{i}_{1}]Pr[\bar{i}_{4}]=Pr[\bar{i}_{4}]. Thus, c45(j)≤c145(j)c_{45}(j)\leq c_{145}(j), and the claim still holds. ∎

(Lemma 3.7) In this case i1∈C1Bi_{1}\in\mathcal{C}_{1B}. Let i0i_{0} be the leaf attached to i1i_{1}. Again, we know that if i0i_{0} is closed, i1i_{1} will be open. Recall that by definition gi=d(i,i′)min⁡j∈L2d(i,j)g_{i}=\frac{d(i,i^{\prime})}{\min_{j\in\mathcal{L}_{2}}d(i,j)}, where ii and i′i^{\prime} are the center and leaf, respectively of a 1-star. Applying this to i1i_{1} and i0i_{0}, we have

Now we may try connecting in order i2i_{2}, i1i_{1}, i0i_{0}, or alternatively, in order i1i_{1}, i2i_{2}, i0i_{0}, yielding the following bounds:

Note that by definition of i2(j)i_{2}(j), we can say d2=d(j,i2)≤d(j,i0)≤d1+g(d1+d2)d_{2}=d(j,i_{2})\leq d(j,i_{0})\leq d_{1}+g(d_{1}+d_{2}), which implies (d1−d2+g(d1+d2))≥0(d_{1}-d_{2}+g(d_{1}+d_{2}))\geq 0, a fact that will be used later. ∎

Appendix D Interval relaxation: Bounding the NLP

The non-linear program does not appear to admit a simple method of solving. We may find a local maximum, but as the system is not concave, we have no guarantee of global optimality. However, we observe that by fixing a small number of variables, the remaining system becomes linear and may be solved exactly. Using this fact together with an interval arithmetic approach , we systematically prove an upper bound of 1.33711.3371 on the system.

Let V={X,1}⋃Z∈Z{D1Z,D2Z}V=\{X,1\}\bigcup_{Z\in\mathcal{Z}}\{D_{1}^{Z},D_{2}^{Z}\}. Then we may express each constraint CjC_{j} in the following form, where fx,jf_{x,j} is a function of several variables:

For each (x,j)(x,j), define the constant cx,j:=max⁡(b,rD,g,s0)∈Ifx,j(b,rD,g,s0)c_{x,j}:=\max_{(b,r_{D},g,s_{0})\in I}f_{x,j}(b,r_{D},g,s_{0}) to be the maximum value of each function over the interval II. And let

Since all variables in VV are nonnegative, we may relax the program by replacing each constraint CjC_{j} in the original program with constraint Cj′C^{\prime}_{j}. The new, relaxed program is linear and may thus be solved efficiently. The solution is an upper bound on the value of the original program over interval II. The relaxed bound may be rather loose, since each term is maximized independent of the others. However, for sufficiently small intervals, the relaxation can approximate the original program to any desired precision. (For intervals in which gg may be 0 or infinitely large, we may get terms of the form 10\frac{1}{0} in the relaxed equations. For these cases, we remove any algorithm which has these terms from the program.)

Our implementation starts with several large intervals and calculates an upper bound with the above method. Any bound which is larger than the specified goal is divided into 16 subintervals (dividing in half for each variable), and the program is run recursively on the new intervals.

To speed up the search, we made several modifications to the program as stated. First, we only used the P/NP/N class division for a few of the client classes, using the bounds c213c_{213} and c210c_{210} for the remaining classes. This is a valid relaxation of the system which significantly reduces the number of variables, but does not appear to make the solution any worse. Second, we added a constraint that the cost must be less than that the simple formula given by Li and Svensson (relaxed over the interval); this is equivalent to the bound we describe in the LP for the cost of A9A_{9}, but gives a tighter relaxation in this simpler form. Third, when relaxing (26) and (27), we grouped terms of the form D1P(X,Y)−D2P(X,Y)D_{1}^{P(X,Y)}-D_{2}^{P(X,Y)} before relaxing the coefficients. (We know this value is positive by definition of the class.) This gives a tighter relaxation in many cases.

Using this approach we obtained an upper bound of 1.3371. The calculation was implemented in Mathematica. It examined around 8 million intervals, and took around 7 hours on an Intel Core i7 2.9GHz machine.

The following is a solution that obtains 1.33701.3370. (There are many possible solutions, as there is some degree of freedom among some of the D-type variables.) This shows that our above bound on the nonlinear program is tight.

Appendix E Proofs: Algorithms for edge cases

By definition of 2-stars, we have ∣C2∣≤∣L2∣/2|\mathcal{C}_{2}|\leq|\mathcal{L}_{2}|/2 which implies ∣C2∣≤(∣C1∣+∣L2∣)−(∣C0∣+∣C1∣+∣C2∣)+∣C0∣=ΔF+∣C0∣|\mathcal{C}_{2}|\leq(|\mathcal{C}_{1}|+|\mathcal{L}_{2}|)-(|\mathcal{C}_{0}|+|\mathcal{C}_{1}|+|\mathcal{C}_{2}|)+|\mathcal{C}_{0}|=\Delta_{F}+|\mathcal{C}_{0}|. Thus, r2≤1+r0=1/s0r_{2}\leq 1+r_{0}=1/s_{0}. ∎

∣L2∣ΔF≤2s0.\frac{|\mathcal{L}_{2}|}{\Delta_{F}}\leq\frac{2}{s_{0}}.

Since ∣L2∣/2≤∣L2∣−∣C2∣=ΔF+∣C0∣|\mathcal{L}_{2}|/2\leq|\mathcal{L}_{2}|-|\mathcal{C}_{2}|=\Delta_{F}+|\mathcal{C}_{0}|, we have ∣L2∣2ΔF≤1+r0=1/s0\frac{|\mathcal{L}_{2}|}{2\Delta_{F}}\leq 1+r_{0}=1/s_{0}.

(Lemma 3.11.) Basically, we just return the better solutions between F1\mathcal{F}_{1} and the one produced by A′=A(a,a,b,a,b,a,b)\mathcal{A}^{\prime}=\mathcal{A}(a,a,b,a,b,a,b). As mentioned before, A′\mathcal{A}^{\prime} and Li-Svensson’s rounding algorithm are essentially the same, and output a solution with the same upper-bound on the expected cost:

The main difference is that A′\mathcal{A}^{\prime} only opens at most O(log⁡(1/η))O(\log(1/\eta)) (instead of O(1/η)O(1/\eta)) extra facilities.

As in , we need to be careful when aa or bb is close to because the number of extra facilities opened by A′\mathcal{A}^{\prime} is roughly 163β2log⁡1+β(1/(a⋅η))\frac{16}{3\beta^{2}}\log_{1+\beta}(1/(a\cdot\eta)), where β=min⁡{a,b}\beta=\min\{a,b\}. We consider two corner cases:

If 0≤b≤1/40\leq b\leq 1/4, we can just return F1\mathcal{F}_{1} as our solution. Note that ∣F1∣≤k|\mathcal{F}_{1}|\leq k and the approximation ratio is d1ad1+bd2≤1a=11−b≤4/3\frac{d_{1}}{ad_{1}+bd_{2}}\leq\frac{1}{a}=\frac{1}{1-b}\leq 4/3.

If b≥5/6b\geq 5/6, we can use the knapsack algorithm described in , which only opens at most k+2k+2 facilities, to get a 4/34/3-approximation algorithm. Note that the approximation ratio of this algorithm is bounded by 1+2a≤4/31+2a\leq 4/3 as a≤1/6a\leq 1/6.

We claim that the above algorithm gives an approximation ratio of 1.3371.337 for all remaining cases. Note that the cost of this algorithm is at most (1+η)min⁡{d1,ad1+b(1+2a)d2}(1+\eta)\min\{d_{1},ad_{1}+b(1+2a)d_{2}\}. Thus, it suffices to bound the ratio

Note that the right-hand-side is a function of bb and rDr_{D}. When b∈[1/4,0.508]b\in[1/4,0.508], b∈[3/4,5/6]b\in[3/4,5/6], rD≤19/40r_{D}\leq 19/40, or rD≥2/3r_{D}\geq 2/3, that function is at most 1.3371.337 by elementary calculus.

It means that, for a fixed value of bb, the former is a decreasing function of rDr_{D} and the latter is an increasing function of rDr_{D}. Therefore,

Case b∈[1/4,0.508]b\in[1/4,0.508] or b∈[3/4,5/6]b\in[3/4,5/6]: The maximum of ff will be achieved at some point such that

Case b∈[0.508,3/4]b\in[0.508,3/4] and rD≤19/40r_{D}\leq 19/40: Note that rD≤13−2br_{D}\leq\frac{1}{3-2b} which implies that 11−b+brD≥1−2b2rD+b(−1+3rD)1−b+brD\frac{1}{1-b+br_{D}}\geq\frac{1-2b^{2}r_{D}+b(-1+3r_{D})}{1-b+br_{D}}. Since the RHS is increasing in rDr_{D}, we have

Case b∈[0.508,3/4]b\in[0.508,3/4] and rD≥2/3r_{D}\geq 2/3: Note that rD≥13−2br_{D}\geq\frac{1}{3-2b} which implies that 11−b+brD≤1−2b2rD+b(−1+3rD)1−b+brD\frac{1}{1-b+br_{D}}\leq\frac{1-2b^{2}r_{D}+b(-1+3r_{D})}{1-b+br_{D}}. Since the LHS is decreasing in rDr_{D}, we have

(Lemma 3.12.) We show that the better solution returned from a set of 3 algorithms will be within a factor 1.3371 of the optimal solution. The purpose of this case is to bound s0s_{0} away from 0, so that p2p_{2} and q2q_{2} in our main case are bounded away from zero. The first algorithm is a knapsack algorithm in which we open all facilities in L1\mathcal{L}_{1} and C2\mathcal{C}_{2}. After that we almost greedily choose some of the 2-stars, close their centers, and open all their leaves. This algorithm does very well if s0s_{0} is small. In the second algorithm, we open F1\mathcal{F}_{1} and some additional facilities in L2\mathcal{L}_{2} which maximize the saving. In particular, we use the following algorithms:

Algorithm 1: Open all facilities in L1\mathcal{L}_{1} and C2\mathcal{C}_{2}. For each client jj, if i2(j)∈L1i_{2}(j)\in\mathcal{L}_{1}, connect jj to i2(j)i_{2}(j). Otherwise i2(j)i_{2}(j) is a leaf of a 2-star, let i3i_{3} be the center of this star and connect jj to i3i_{3}. Thus, the total connection cost of the current solution is upper-bounded by

Now, for each i∈C2i\in\mathcal{C}_{2}, if we close facility ii and open all of its leaves, the total cost will be reduced by ∑j∈δ(Si)(d1(j)+d2(j))\sum_{j\in\delta(\mathcal{S}_{i})}(d_{1}(j)+d_{2}(j)), where δ(Si)\delta(\mathcal{S}_{i}) is the set of clients jj having i2(j)∈Sii_{2}(j)\in\mathcal{S}_{i}, and we also open additional ∣Si∣−1|\mathcal{S}_{i}|-1 facilities. This motivates us to solve the following knapsack LP, just as in :

Note that a basic solution of the above LP only has at most 1 fractional value. Thus, we can easily obtain it by a greedy method. Let us call this fractional value xi∗x_{i^{*}}. Now, for all i∈C2i\in\mathcal{C}_{2}, if xi=0x_{i}=0, we keep ii opened. If xi=1x_{i}=1, we close ii and open all of its leaves. We also open i∗i^{*} and a subset of size ⌈xi∗∣Si∗∣⌉\lceil x_{i^{*}}|\mathcal{S}_{i^{*}}|\rceil of Si∗\mathcal{S}_{i^{*}} uniformly at random. It is easy to see that the expected saved cost is at least the optimal value of the LP by doing so.

Algorithm 2: Open all facilities in F1\mathcal{F}_{1}. Define the saving of a facility i∈L2i\in\mathcal{L}_{2} be ∑j∈δ(Si)(d1(j)−d2(j))+\sum_{j\in\delta(\mathcal{S}_{i})}(d_{1}(j)-d_{2}(j))_{+}. Sort all the facilities in L2\mathcal{L}_{2} non-increasing by its saving. Open the first ⌈bs02∣L2∣⌉\lceil\frac{bs_{0}}{2}|\mathcal{L}_{2}|\rceil facilities in this order.

The two algorithms only open k+2k+2 facilities. In the first algorithm, we claim that at most k+2k+2 facilities will be opened. The first constraint of the LP guarantee that a fractional solution xx will open at most kk facilities. The two extra facilities come from the fact that we open i∗i^{*} and take the ceiling of xi∗∣Si∗∣x_{i^{*}}|\mathcal{S}_{i^{*}}|. In the second algorithm, we open at most

where the first inequality is due to s0≤2ΔF∣L2∣s_{0}\leq\frac{2\Delta_{F}}{|\mathcal{L}_{2}|}, by Claim E.2.

Now, we bound the cost of the first algorithm. Let qq be the maximum value such that the solution xi=qx_{i}=q for all i∈C2i\in C_{2} is feasible to the knapsack LP. We solve for qq by requiring

Thus, we can set q:=bΔF+∣C0∣∣L2∣−∣C2∣q:=\frac{b\Delta_{F}+|\mathcal{C}_{0}|}{|\mathcal{L}_{2}|-|\mathcal{C}_{2}|}. Note that ∣L2∣−∣C2∣=∣C0∣+ΔF|\mathcal{L}_{2}|-|\mathcal{C}_{2}|=|\mathcal{C}_{0}|+\Delta_{F}, we have

Since x=qx=q is a feasible solution, the saved cost is at least

Therefore, we can upper-bound the cost by

Recall that the sets δ(Si)\delta(\mathcal{S}_{i}) are pairwise disjoint. By a simple average argument, the cost of the second algorithm is upper-bounded by

We run these two algorithms along with A′=A(a,a,b,a,b,a,b)\mathcal{A}^{\prime}=\mathcal{A}(a,a,b,a,b,a,b), and use the best solution of the three. (Again, note that β=min⁡{a,b}≥1/4\beta=\min\{a,b\}\geq 1/4 and a≥1/4a\geq 1/4 in this case.) We can easily formulate an NLP to derive the approximation ratio as discussed in subsection 3.3.3. Using an interval search as before over the interval 0≤s0≤5/6,b∈[0.508,3/4],rD∈[19/40,2/3]0\leq s_{0}\leq 5/6,b\in[0.508,3/4],r_{D}\in[19/40,2/3], we get an upper-bound of 1.33711.3371 on the factor-revealing NLP. Note that the value of gg is irrelevant to any of these algorithms, so our intervals are over only bb, rDr_{D} and s0s_{0}. This interval search runs in seconds and examines about 6400 intervals.

(Lemma 3.13) We will run the set of 10 algorithms shown in Table 2. Obviously, when Round2Stars is called (only algorithms A1′,A2′,A7′,A8′\mathcal{A}_{1}^{\prime},A_{2}^{\prime},\mathcal{A}_{7}^{\prime},\mathcal{A}_{8}^{\prime}), we have β=min⁡{q2,1−q2}≥5/24\beta=\min\{q_{2},1-q_{2}\}\geq 5/24 and p2≥5/24p_{2}\geq 5/24, which are achieved at p2=as0p_{2}=as_{0}, a=1/4a=1/4, s0=5/6s_{0}=5/6. Thus, it is easy to check that A1′\mathcal{A}_{1}^{\prime}, A2′A_{2}^{\prime}, and A4′,…,A8′A_{4}^{\prime},\ldots,\mathcal{A}_{8}^{\prime} only open k+O(log⁡(1/η))k+O(\log(1/\eta)) facilities. For A9′\mathcal{A}_{9}^{\prime} and A10′\mathcal{A}_{10}^{\prime}, using the same argument as in Lemma 3.4 and Lemma 3.3, we open at most

where the first inequality is due to the fact that r1≤1r_{1}\leq 1 in the interval of interest.

Recall that s0=11+r0=11+∣C0∣/ΔF=∣L2∣−∣C2∣−∣C0∣∣L2∣−∣C2∣=1−∣C0∣∣L2∣−∣C2∣s_{0}=\frac{1}{1+r_{0}}=\frac{1}{1+|\mathcal{C}_{0}|/\Delta_{F}}=\frac{|\mathcal{L}_{2}|-|\mathcal{C}_{2}|-|\mathcal{C}_{0}|}{|\mathcal{L}_{2}|-|\mathcal{C}_{2}|}=1-\frac{|\mathcal{C}_{0}|}{|\mathcal{L}_{2}|-|\mathcal{C}_{2}|}. For A3′\mathcal{A}_{3}^{\prime}, we open at most

The approximation ratio will be bounded by an NLP as in our main case. It is simpler, as we need not consider the distinction between T1A\mathcal{T}_{1A} and T1BT_{1B}, or the value of gg. We do an interval search and get an upper-bound of 1.337 when b∈[0.508,3/4],rD∈[19/40,2/3]b\in[0.508,3/4],r_{D}\in[19/40,2/3], and s0∈[5/6,1]s_{0}\in[5/6,1].

Appendix F Details: Dichotomy result

For each i∈C2′′i\in\mathcal{C}_{2}^{\prime\prime}, let XiX_{i} be an indicator of the event that we open Si\mathcal{S}_{i} and close ii. (If Xi=0X_{i}=0, we close SiS_{i} and open ii.) The idea is to set each Xi=1X_{i}=1 independently with probability (1−η)q2(1-\eta)q_{2}.

With probability at least 1−exp⁡(−η3(1−η)βf(1/η)3c0)1-\exp\left(-\frac{\eta^{3}(1-\eta)\beta f(1/\eta)}{3c_{0}}\right), the algorithm opens at most p2∣C2′′∣+q2∣L2′′∣p_{2}|\mathcal{C}_{2}^{\prime\prime}|+q_{2}|\mathcal{L}_{2}^{\prime\prime}| facilities which are part of small stars.

Recall that small stars have at most c0/ηc_{0}/\eta leaves. The number of opened facilities which are part of small stars is

where Yi=Xi(∣Si∣−1)c0/ηY_{i}=\frac{X_{i}(|\mathcal{S}_{i}|-1)}{c_{0}/\eta}. Note that YiY_{i}’s take random values in $.Theexpectedvalueof. The expected value ofY=\sum_{i\in\mathcal{C}_{2}^{\prime\prime}}Y_{i}$ is

since each small star has at least 2 leaves. Using Chernoff’s bound, we have

To bound the expected connection cost, we need the following lemma.

Let i1i_{1} and i2i_{2} be any facilities in F1\mathcal{F}_{1} and F2\mathcal{F}_{2}, respectively. Let X,Y∈{0,1A,1B,2}X,Y\in\{0,1_{A},1_{B},2\} be the classes such that i1∈CXi_{1}\in\mathcal{C}_{X} and i2∈LYi_{2}\in\mathcal{L}_{Y}. Then the following are true:

The proof is quite similar to that of lemma 3.8.

Proof of (41): We only need to check the case i1∈C2′′i_{1}\in\mathcal{C}_{2}^{\prime\prime}. It is clear that

Proof of (42): We only need to check the case i2∈L2′′i_{2}\in\mathcal{L}_{2}^{\prime\prime}. It is clear that

Proof of (43): i1i_{1} and i2i_{2} are always opened independently

The expected connection cost of the solution returned by the algorithm is at most 1.337⋅(1+1−ββη)1.337\cdot\left(1+\frac{1-\beta}{\beta}\eta\right) times the cost of the bipoint solution.

Let f(1/η)=3c0η3(1−η)βln⁡η−2f(1/\eta)=\frac{3c_{0}}{\eta^{3}(1-\eta)\beta}\ln\eta^{-2}. Also let E1\mathcal{E}_{1} be the event “the connection cost is at most 1.3371⋅(1+1−ββη)(1+η)1.3371\cdot\left(1+\frac{1-\beta}{\beta}\eta\right)(1+\eta) times the cost of the bipoint solution” and E2\mathcal{E}_{2} be the event “the algorithm opens at most 4 extra facilities”. By Markov bound,

Note that at most 4 additional facilities in C2′∪L2′∪T0∪T1A∪T1B\mathcal{C}_{2}^{\prime}\cup\mathcal{L}_{2}^{\prime}\cup\mathcal{T}_{0}\cup\mathcal{T}_{1A}\cup\mathcal{T}_{1B} could be opened. By the choice of ff and lemma F.1,

which is strictly greater than zero when η\eta is small enough. ∎

F.2 Case 2

F.3 Case 3

If neither Case 1 nor Case 2 holds, we have ∣C2′′∣≤f(1/η)|\mathcal{C}_{2}^{\prime\prime}|\leq f(1/\eta) and ∣L2′∣+∣L2′′∣≥g(1/η)|\mathcal{L}_{2}^{\prime}|+|\mathcal{L}_{2}^{\prime\prime}|\geq g(1/\eta). Since ∣L2′′∣≤c0η∣C2′′∣|\mathcal{L}_{2}^{\prime\prime}|\leq\frac{c_{0}}{\eta}|\mathcal{C}_{2}^{\prime\prime}|, we can bound the number of leaves of large stars

The “budget” to open facilities in the class of large stars is

Suppose that we want to open each leaf in L2′\mathcal{L}_{2}^{\prime} with probability q2(1−c1η)q_{2}(1-c_{1}\eta) for some constant c1≥1c_{1}\geq 1 and open all the centers in C2′\mathcal{C}_{2}^{\prime}. Then the remaining budget which can be used to open other facilities in C2′′\mathcal{C}_{2}^{\prime\prime} is

To open all centers in C2′′\mathcal{C}_{2}^{\prime\prime}, we need to open at most q2∣C2′′∣≤q2f(1/η)q_{2}|\mathcal{C}_{2}^{\prime\prime}|\leq q_{2}f(1/\eta) additional facilities in C2′′\mathcal{C}_{2}^{\prime\prime}, apart from the usual p2∣C2′′∣p_{2}|\mathcal{C}_{2}^{\prime\prime}| ones. Thus, it suffices to require that R≥q2f(1/η)R\geq q_{2}f(1/\eta).

If ∣C2′∣≥f(1/η)−1+c0c1|\mathcal{C}_{2}^{\prime}|\geq\frac{f(1/\eta)}{-1+c_{0}c_{1}}, recall that ∣L2′∣≥c0η∣C2′∣|\mathcal{L}_{2}^{\prime}|\geq\frac{c_{0}}{\eta}|\mathcal{C}_{2}^{\prime}|, we have

Else ∣C2′∣<f(1/η)−1+c0c1|\mathcal{C}_{2}^{\prime}|<\frac{f(1/\eta)}{-1+c_{0}c_{1}}, recall that ∣L2′∣≥g(1/η)−c0f(1/η)η|\mathcal{L}_{2}^{\prime}|\geq g(1/\eta)-\frac{c_{0}f(1/\eta)}{\eta}, we can lower-bound RR as follows.

A simple calculation shows that we can choose

For any polynomial function f(1/η)f(1/\eta), let

If ∣C2′′∣≤f(1/η)|\mathcal{C}_{2}^{\prime\prime}|\leq f(1/\eta) and ∣L2′∣+∣L2′′∣≥g(1/η)|\mathcal{L}_{2}^{\prime}|+|\mathcal{L}_{2}^{\prime\prime}|\geq g(1/\eta), then there is an algorithm which returns a solution opening at most 44 additional facilities and having expected connection cost at most 1.337⋅(1+1−ββη)(1+η)1.337\cdot(1+\frac{1-\beta}{\beta}\eta)(1+\eta) times the cost of the bipoint solution.

We simply set c0=2c_{0}=2 and c1=1c_{1}=1. As discussed above, there are no extra opened facilities in C2′′∪L2′′\mathcal{C}_{2}^{\prime\prime}\cup\mathcal{L}_{2}^{\prime\prime}. Lemma F.2 also holds in this case and can be used to bound the expected connection cost. ∎

This implies an approximation algorithm which runs in O(nO(4/ϵ))O(n^{O(4/\epsilon)}) time for kk-median.

Appendix G A simple approach to the budgeted MAX-SAT problem

We present the algorithm and give a brief outline of the proof of its approximation guarantee. Consider an arbitrary CNF-SAT formula ϕ\phi, weight function ww, and budget constraint ∑jXj≤k\sum_{j}X_{j}\leq k as in the introduction. Given some ϵ>0\epsilon>0 (where we assume w.l.o.g. that ϵ\epsilon is small, say ϵ≤0.1\epsilon\leq 0.1), we aim to approximate this maximization problem to within (1−1/e−ϵ)(1-1/e-\epsilon). Motivated by , consider a LP relaxation with a variable yjy_{j} to indicate whether xjx_{j} is True, and a variable ziz_{i} to indicate whether clause ii is satisfied. Let P(i)P(i) be the set of variables that appear positively in clause ii, and N(i)N(i) be the set of variables that appear negated in clause ii. The LP relaxation is: maximize ∑iwizi\sum_{i}w_{i}z_{i} subject to: (i) ∑jyj≤k\sum_{j}y_{j}\leq k; (ii) ∀i\forall i, (∑j∈P(i)yj)+(∑j∈N(i)(1−yj))≥zi(\sum_{j\in P(i)}y_{j})+(\sum_{j\in N(i)}(1-y_{j}))\geq z_{i}; and (iii) 0≤yj,zi≤10\leq y_{j},z_{i}\leq 1.

Let {y∗,z∗}\{y^{*},z^{*}\} denote an optimal solution to the LP relaxation. Note that if we did not have the budget constraints (i), then this MAX SAT-problem can be approximated to within 3/43/4 . Also, as pointed out in , if we just do standard (independent) randomized rounding on the yj∗y^{*}_{j} values, we will get an (1−1/e)(1-1/e)–approximation (again, if we did not have the constraints (i)); this is achieved when the typical clause ii has a “large” number tt of literals, each j∈P(i)j\in P(i) has yj∗=1/ty^{*}_{j}=1/t, and each j∈N(i)j\in N(i) has yj∗=1−1/ty^{*}_{j}=1-1/t. We get a much-better-than-(1−1/e)(1-1/e)–approximation in cases that deviate significantly from this. However, randomized rounding will not preserve (i) with high probability. Our problem has a simple solution. If k≤1/ϵ3k\leq 1/\epsilon^{3}, say, then find an optimal solution by brute force in O(n1/ϵ3)O(n^{1/\epsilon^{3}}) time. Else, scale all the yj∗y^{*}_{j} by (1−ϵ)(1-\epsilon) to give us some margin in the budget, and then do independent rounding of the yj∗y^{*}_{j}. In other words, set each variable xjx_{j} to True independently with probability (1−ϵ)yj∗(1-\epsilon)y^{*}_{j}.

When k≥1/ϵ3k\geq 1/\epsilon^{3}, the algorithm produces a feasible solution to Budgeted MAX SAT problem (i.e., the number of variables that are set to True is at most kk) with probability at least 1−exp⁡(1−1/ϵ3)1-\exp\left(\frac{1-1/\epsilon}{3}\right).

Let XX be the number of variables that are set True. Then,

The expected number of satisfied clauses is at least (1−1/e−ϵ)OPT(1-1/e-\epsilon)OPT, where OPTOPT is the optimal number of satisfied clauses to the budgeted MAX SAT problem.

The claim follows by computing the expected number of satisfied clauses and observing that the approximation ratio is at least

Appendix H JMS with scaling

In the conference version of this paper we have claimed that a scaled version of the primal-dual JMS algorithm is a (1,1.953)-approximation algorithm for UFL. We called this scaled version JMS’ and derived a factor revealing LP to analyze it. This LP was an adaptation of the factor revealing LP from . Unfortunately we overlooked a subtlety in the interpretation of rj,ir_{j,i} variables present in this LP. This would not have had any effect on the numbers resulting from a standard analysis of JMS, but it turned out to be crucial for analyzing the scaled version JMS’. Below we formally describe the algorithm, its faulty analysis, and an instance showing that JMS’ is in fact not better than JMS and in particular it is not a (1,1.953)-approximation algorithm as we wrongly claimed in .

In this section, we review the JMS algorithm by . The more detailed description of the algorithm and its analysis can be found in . For completeness, we briefly describe the algorithm here. Each client has a budget, initially equal to zero. The final value of the budget represents the amount of money which client pays in the resulting solution. The budget of each client increases up to the moment of the first connection of the client. From this time the value of the budget will not be changed. The client can only be reconnected to a closer, newly open, facility and spend the difference in connection distance for the (part of the) opening cost of the newly open facility.

We use a notion of time. The algorithm starts at time 0. At this time, each client is defined to be unconnected (U:=JU:=\mathcal{J}), all facilities are unopened, and budget αj\alpha_{j} is set to 0 for every jj. At every moment, each client jj offers some money from its budget as a contribution to open an unopened facility ii. The amount of this offer is computed as follows: If jj is unconnected, the offer is equal to max⁡(αj−dij,0)\max(\alpha_{j}-d_{ij},0) (i.e., if the budget of jj is more than the cost that it has to pay to get connected to ii, it offers to pay this extra amount to ii); If jj is already connected to some other facility i′i^{\prime} , then its offer to facility ii is equal to max⁡{di′j−dij,0}\max\{d_{i^{\prime}j}-d_{ij},0\} (i.e., the amount that jj offers to pay to ii is equal to the amount jj would save by switching its facility from i′i^{\prime} to ii).

While U≠∅U\neq\emptyset, increase the time, and simultaneously, for every client j∈Uj\in U, increase the parameter αj\alpha_{j} at the same rate, until one of the following events occurs (if two events occur at the same time, we process them in an arbitrary order).

For some unopened facility ii, the total offer that it receives from clients is equal to the cost of opening ii. In this case, we open facility ii, and for every client jj (connected or unconnected) which has a nonzero offer to ii, we connect jj to ii and remove jj from UU. The amount that jj had offered to ii is now called the contribution of jj toward ii, and jj is no longer allowed to decrease this contribution.

For some unconnected client jj, and some open facility ii, αj=dij\alpha_{j}=d_{ij} . In this case, connect client jj to facility ii and remove jj from UU.

Suppose the UFL instance to be solved is being designed by an adversary. Consider an optimal solution to the instance being solved. The optimal solution opens a certain set of facilities and the clients get partitioned into groups served by a single facility in the optimal solution. In the analysis of the JMS algorithm we model the behavior of the algorithm on a single such group of clients served by a single facility in the optimal solution. If we manage to bound the cost incurred by these clients in the computed solution in terms of the cost these clients have in the optimal solution, and if we do so for every possible such group of clients, we obtain an estimate on the approximation ratio of the JMS algorithm.

Consider a group of kk clients that in the optimal solution use a single facility ff (with a slight misuse of the notation, we call this facility ff and we refer to its cost also by ff). Variables from the LP may be interpreted as follows: variable αj\alpha_{j} is the dual budget of client jj (at the end of the algorithm), which is the time when jj is connected for the first time. Variable rj,ir_{j,i} is the connection cost of a client jj just before client ii is being connected for the first time (time αi−ϵ\alpha_{i}-\epsilon). In the case when client jj is not connected in time αi−ϵ\alpha_{i}-\epsilon the value of rj,ir_{j,i} is equal to αj\alpha_{j}, which in this case equals αi\alpha_{i}. Variable dj=d(j,f)d_{j}=d(j,f) is the connection cost of jj in the optimal solution and ff (the opening cost of) is the facility used in the optimal solution. The analysis compares the cost of an algorithm on the considered set of clients to the cost of the optimal solution.

H.2 The JMS’ algorithm

We present a new algorithm as a variant of the JMS algorithm for UFL, and hence place our emphasis on differences.

A reasonable modification to the JMS algorithm would be to apply scaling to instances before running the algorithm. One could, for instance, alter the JMS algorithm by feeding it an instance with distances scaled up by a certain fixed factor. This seems to be a reasonable solution but we find it difficult to analyze in general, since the standard factor-revealing LP method does not capture some directions of scaling (i.e., we cannot benefit from the connections of some clients remaining “far” from open facilities, because they may get closer centers later by simply switching to facilities opened later). To overcome this problem, we give an algorithm in which clients are less eager to contribute to facility opening when they switch to closer facilities.

One may think that a client jj is supposed to pay a certain tax on the amount saved by switching to a closer facility, and only offers the rest as a contribution toward opening the new facility. This additional tax in a combination with scaled contribution of all, not yet connected clients, results in an algorithm for which we are able to prove an improved bound on the approximation ratio.

Each yet unconnected client scale the real value of its contribution by a factor of γ\gamma. This algorithm, denoted JMS’(γ\gamma), is formally described below.

Define UU to be the set of yet-unconnected clients; U:=JU:=\mathcal{J} initially. Let γ≥1\gamma\geq 1 be parameters of the JMS’ algorithm. In bold we mark the differences in the algorithm as compared to the standard JMS algorithm.

We use a notion of time. The algorithm starts at time 0. At this time, each client is defined to be unconnected (U:=JU:=\mathcal{J}), all facilities are unopened, and budget αj\alpha_{j} is set to 0 for every jj. At every moment, each client jj offers some money from its budget as a contribution to open an unopened facility ii. The amount of this offer is computed as follows: If jj is unconnected, the offer is equal to γ⋅\gamma\cdotmax⁡(αj−dij,0)\max(\alpha_{j}-d_{ij},0) (i.e., if the budget of jj is more than the cost that it has to pay to get connected to ii, it offers to pay γ\gamma times this extra amount to ii); If jj is already connected to some other facility i′i^{\prime} , then its offer to facility ii is equal to max⁡{di′j−dij,0}\max\{d_{i^{\prime}j}-d_{ij},0\} (i.e., the amount that jj offers to pay to ii is equal to the amount jj would save by switching its facility from i′i^{\prime} to ii.

While U≠∅U\neq\emptyset, increase the time, and simultaneously, for every client j∈Uj\in U, increase the parameter αj\alpha_{j} at the same rate, until one of the following events occurs (if two events occur at the same time, we process them in an arbitrary order).

For some unopened facility ii, the total offer that it receives from clients is equal to the cost of opening ii. In this case, we open facility ii, and for every client jj (connected or unconnected) which has a nonzero offer to ii, we connect jj to ii and remove jj from UU. The amount that jj had offered to ii is now called the contribution of jj toward ii, and jj is no longer allowed to decrease this contribution.

For some unconnected client jj, and some open facility ii, αj=dij\alpha_{j}=d_{ij} . In this case, connect client jj to facility ii and remove jj from UU.

H.3 Our incorrect analysis

When analyzing JMS’ in , we also used a factor revealing LP. In this LP, we interpret the variables rj,ir_{j,i} slightly differently than in Section H.1. In rj,ir_{j,i} was the connection cost of client jj precisely at time αi\alpha_{i} (when client ii is being connected for the first time). We analyzed this algorithm by the following factor-revealing LP.

It can happen that client ii contributes towards the opening of facility f′f^{\prime} to which jj has distance rj,j=rj,ir_{j,j}=r_{j,i}. Then the inequality αi≤di+dj+rj,i\alpha_{i}\leq d_{i}+d_{j}+r_{j,i} need not hold. Note that this issue follows from our new interpretation of the variables rj,ir_{j,i}. If we are using the interpretation of Section H.1 then the constraints are satisfied but the term ri,ir_{i,i} in the objective function does not necessarily represent the connection cost at time αi\alpha_{i} but is equal to αi\alpha_{i}, which might be strictly larger than this connection cost.

Consider the feasible solution to the factor-revealing LP for any kk shown in the following figure.

We interpret the variables as described in Section H.1. The distance in which client ii was connected first is denoted by cic_{i}. One can observe that in the above example client 11 was connected for the first time at distance c1=1c_{1}=1 with facility f′f^{\prime}, but α1=r1,1=2(k−1)+1k\alpha_{1}=r_{1,1}=\frac{2(k-1)+1}{k} as client 11 contributes γ(2(k−1)+1k−1)\gamma(\frac{2(k-1)+1}{k}-1) towards the opening of facility f′f^{\prime}. All the other clients (from 22 to kk) were connected in distance ci=0c_{i}=0 with facility ff, but αi=ri,i=2\alpha_{i}=r_{i,i}=2 as each client ii contributes 2γ2\gamma towards the opening of facility ff.

One can observe that in the example ri,i>cir_{i,i}>c_{i} which occurs with negative coefficient in the objective function, which implies that the cost of our algorithm in this example was underestimated. The real cost of our algorithm for this example is precisely expressed by

The instance from the previous paragraph can be extended by combining 2k2k copies of this instance that ”share“ the problematic facility f′f^{\prime}. Thereby we achieve that all facilities have cost 2γ(k−1)2\gamma(k-1). In the solution returned by JMS’(γ\gamma) clients 1(1)⋯1(2k)1^{(1)}\cdots 1^{(2k)} open together facility f′f^{\prime} and all others clients 2(l),…,k(l)2^{(l)},\dots,k^{(l)} from each star open facility f(l)f^{(l)}, for each l=1…2kl=1\dots 2k. Algorithm JMS’(γ\gamma) returns a solution with all facilities open and in the optimal solution all facilities except f′f^{\prime} are open. This proves that JMS’(γ\gamma) cannot achieve bi-factor better than (1,1+γ)(1,1+\gamma), if we insist on the facility factor to be one. Using the fact that γ≥1\gamma\geq 1 we show that JMS’(γ\gamma) does not perform better than JMS.