                                                Competitively Consistent Clustering



the LP constraints and

                    P markov   inequality we have for                   3.3. A rounding algorithm for fully dynamic k-median

                             t

                                  P        tj

the new added ball     i∈Bj xi =    i∈Bj xi   ≥ 1 −

                                                                        With the setup from previous sections, our algorithm for

1/γ , then the term (1 − 1/γ − 1/α)−1 · (1 + η · log (∆)) ·

              n                           o         2                   k-median is very simple to describe and to analyze. Given

                                        t

P                              P

   i∈At  max    0, (γ − 1)/γ −        x

                                 j∈Bi j     of the potential            a fractional solution for the problem formulation in Ap-

does not increases due to the addition of the new ball and              pendix A.3, we run the rounding algorithm from Section 3.2,

possibly the drop of a single ball. Next, we have two cases.            with facility costs fi = 0 for all i ∈ M . The bound in Theo-

                                                                        rem 1.1 for the fully dynamic k-median problem is obtained

A ball of radius rj is added and no ball is dropped. In                 by combining the guarantee on the fractional solution along

this case ∆N2t = 0 and the change in the LHS of Inequality              with the following theorem that we prove.

(3.5) is at most ∆Φ ≤ −η · log2 (∆/rj ) ≤ 0.                            Theorem 3.7 (Dynamic k-median rounding). Let xt be a

                                                                        fractional solution to the dynamic k-median problem that

A ball of radius rj is added a single ball i with ri >                  maintains a solution that is a β-approximation at any time,

21/η ·rj is dropped. The LHS of Inequality (3.5) increases              uses at most k ′ centers, and its total fractional recourse is

by at most ∆N2t +∆Φ ≤ 1−η·log2 (∆/rj)+η·log2 (∆/ri ) =                 R. Then there is an algorithm that maintains an integral

1 − η · log2 (ri/rj ) ≤ 1 − η · log2 21/η ≤ 0.                          solution with at most α·k ′ centers that is (α·β)-approximate

                                                                        at any time, and its total recourse is O (log(∆)) · R, where

Proof of Lemma 3.6. For the client j, we have dij > α · Rjt             α = 11.

for all i ∈ S t . The new added ball Bj is of radius rj = γ·Rjt .

Let i ∈ At be any client such that dij ≤ ri + rj + δ ·

min{ri , rj }, and let i′ be the associated facility of i. We           Proof. The approximation and recourse guarantees are im-

have 2ri +(1+δ)rj ≥ ri +ri +rj +δ ·min{ri , rj } ≥ dii′ +               mediate from Theorem 3.4, and it remains to show that the

dij ≥ di′ j > α · Rjt = αγ rj , where the second inequality             algorithm never holds more than O(k) centers.

follows by the guarantee that facility i′ is at distance at

most ri from client i, and the guarantee on dij . The third             Inspecting the proof of Theorem 3.4, by Invariant (ii) the

Inequality is by the triangle inequality. The last inequality           balls Bj arePdisjoint, and by Invariant (iii) we have for all

holds because di′ j > α · Rjt .                                         i ∈ F t that j∈Bi xtj ≥ 1/α. Since the fractional solution

                                                                                  Pn

                                                                        satisfies i=1 xti ≤ k ′ , the number of centers chosen by

Thus, for such a ball it must be that ri > ( αγ −(1+δ))/2 · rj =        the algorithm is at most α · k ′ .

21/η · rj (recall that η = 1/ log((α−γ(1+δ))/2γ )). Next,

assume to the contrary that there are two balls Bi1 , Bi2

such that di1 ,j ≤ ri1 + rj + δ · min{ri1 , rj } and di2 ,j ≤           4. Experiments

ri2 + rj + δ · min{ri2 , rj }. Then                                     We evaluate our three clustering algorithms experimentally

                                                                        on UCI Machine Learning repository datasets: Glass Identi-

 di1 ,i2 ≤ di1 ,j + di2 ,j                                              fication (German, 1987), Wine Quality (Cortez et al., 2009),

 ≤ ri1 + ri2 + 2rj + δ · min{ri1 , rj } + δ · min{ri2 , rj }            and Airfoil Self-Noise (Brooks et al., 2014). Due to space

 ≤ ri1 + ri2 + (2 + 2δ) · rj                                            considerations, we defer details of our experimental setup

                   4 + 4δ                                               and the plots of our experiments to Appendix D. We ob-

 ≤ ri1 + ri2 + α             · min{ri1 , ri2 }.                         serve that our algorithm indeed maintains an objective value

                /γ − (1 + δ)

                                                                        within the predicted bound, and in fact significantly out-

The first inequality follows by the triangle inequality. The            performs the worst-case bound predicted by the theorem.

second inequality follows by our assumption. The third                  In the case of facility location and k-median, our objective

and fourth inequality follow by our above observation that              value is almost the same as the best possible objective value.

ri1 > 21/η · rj and ri2 > 21/η · rj . Finally, this is strictly         On all of our data sets, our algorithm’s recourse seems to

less than ri1 + ri2 + δ · min{ri1 , ri2 } by our specific setting       be ≪ T , and even seems bounded by a constant in many

of the parameters. This contradicts the induction hypothesis            cases. This justifies our focus on competitive recourse, as

that Invariant (ii) held before ball Bj was added.                      opposed to absolute recourse. Interestingly, in many cases

                                                                        (especially for k-center), our online algorithm’s recourse is

After adding the new ball of radius rj , and dropping at                lower than the offline fractional optimum recourse. Note

most one ball that violates Invariant (ii), the new balls               that this is possible because our algorithms is using resource

satisfy Invariant (ii). Finally, because j ∈ At by the LP               augmentation, while the fractional optimum is not. Finally,

                                                       t

constraints, by Markov’s Inequality (since rj = γ · Rjj )               we observe that in our experiments for both k-center and

P         t

              P         tj

   i∈Bj xi =     i∈Bj xi ≥ 1 − /γ and therefore Invariant               k-median, even though our algorithm is allowed to open

                                  1



(iv) is maintained.                                                     (1 + ϵ) centers, they tend to use no more than k centers.



                                                                    8

