                                                Competitively Consistent Clustering



Analysis: We prove inductively on the steps of the algo-                Remark 3.5. Our analysis has an additional (constant)

rithm that the algorithm maintains the following invariants:            additive term that depends on the final fractional solution.

                                                                        However, a more careful inspection of our proof shows that

 (i) Each j ∈ C t , mini∈S t dij ≤ α · Rjt .                            the number balls dropped is bounded by O (log ∆) times

                                                                        the total decrease in the variables xti . This fact along with

 (ii) For all j1 , j2 ∈ At : dj1 ,j2 ≥ rj1 + rj2 + δ ·

      min{rj1 , rj2 }. In particular the balls around the clients       P fact tthat the final number of facilities plus O(log ∆) ·

                                                                        the

      in At are disjoint.                                                  i∈F xi is bounded by O (log ∆) times the total increase

                                                                        in the variables xti can be used to avoid this additive term

(iii) For all j ∈ At , we have i∈Bj xti ≥ 1/α = 1/11.

                                 P

                                                                        in the analysis.

                                           t

(iv) For all j ∈ At , we have i∈Bj xij ≥ 1 − 1/γ = 1/10.

                                 P

                                                                        Next, we consider different events that can happen at time

                                                                        step t one-by-one and prove that all the invariants are main-

In addition, we use the following potential function at time            tained. The invariants are clearly satisfied initially when

t ∈ [T ].                                                               there are no clients, the fractional solution is 0, and no

                           −1                                       facilities were added. The following events may happen.

                     1     1

           1− γ − α             · (1 + η · log2 (∆)) 

                                                                       • The fractional solution changes.

                                                     

                                   1    X 

                                                                           • Client j such that i∈Bj xti < 1/α is dropped.

           X                                                                                 P

     t                                         t

   Φ =       ·      max 0, 1 − −             xj      

                                  γ             

                i∈At                    j∈Bi

              X             

                             ∆                                             • A new ball around client j is added, and then (possibly)

          −       η · log2       .                                           other clients/balls are dropped.

                             ri

             i∈At

                                                        (3.4)

                                                                        The fractional solution changes: By our induction and

Let N1t be the total number of balls dropped due to the first           Invariant (ii) we have that for all i1 , i2 ∈ S t : di1 ,i2 ≥

step of the algorithm until time t. Let N2t be the number of            ri1 +ri2 +δ·min{ri1 , ri2 }, and in particular the balls are dis-

                                                                                                              −1

balls dropped due to an addition of a new ball in the second                         n term (1 − /γ −P/α) · (1       o + η · log2 (∆)) ·

                                                                        joint. Only the            1     1

(iterative) step of the algorithm. We prove inductively that,           P

                                                                                max    0, (γ − 1)/γ   −          x t

                                                                                                                       depends on the

                                                                           i∈At                            j∈Bi j

 ∆N1t + ∆N2t + ∆Φt ≤ O (log ∆) · ∥xt − xt−1 ∥1 , (3.5)                  fractional solution and Inequality (3.5) is maintained.

where ∆N1t , ∆N2t and ∆Φt is the change in the values of

                                                                        Client  i (and its corresponding facility) such that

N1t , N2t and Φt at time step t. In particular, we show that the        P         t    1

RHS of the above equation as well as ϕ are finite. Therefore,

                                                                                x

                                                                          j∈Bi j < α is dropped: If this event happens, then

                                                                            t

                                                                        ∆N1 = 1, ∆N2t = 0, and max{0, 1 − 1/γ − j∈Bi xtj } ≥

                                                                                                                P

the number of balls that are dropped due to an addition of a

new ball at time step t in the second iterative step, ∆N2t , is         1 − 1/γ − 1/α. Thus, we have,

finite and the algorithm terminates. We show first that these

                                                                         ∆N1t + ∆N2t + ∆Φt

invariants imply Theorem 3.4.                                                                                                            

                                                                                 1 − 1/γ − 1/α                                       ∆

                                                                         ≤1−                   (1 + η · log2 (∆)) + η · log2

                                                                                 1 − 1/γ − 1/α                                       ri

                   P By Invariant (i), the total service

Proof of Theorem 3.4.

cost is at most α · j∈C t Rjt .                                          ≤ 0.

                                                               t

Since ij , the facility associated with clientPj ∈ A ,

is of minimal cost in Bj , we have fij ≤               i∈Bj fi ·

                                                                        A new ball around j is added, and then (possibly) other

  t

      P        t

                          P              t

xi /( i∈Bj xi ) ≤ α · i∈Bj fi · xi , where the final in-                balls are dropped: In order to analyze this event we need

                                                                        the following lemma, which we prove shortly.

equality  is by Invariant (iii) that we maintain for all j ∈ At ,

           t                                                            Lemma 3.6. Suppose the algorithm adds a client j such that

P

    i∈Bj xi ≥ /α. By Invariant (ii) the balls Bj are dis-

                 1



joint, andPhence the total cost of opening facilities is at             dij > α · Rjt for all i ∈ S t , and let rj = γ · Rjt be the radius

most α · i∈F fi xti . Therefore, our solution is an (α · β)-            of the new added ball Bj around j. Then, there exists at most

approximation.                                                          one client i ∈ At such that dij ≤ ri + rj + δ · min{ri , rj },

                                                                        and if such client exists then ri > 21/η · rj . After adding this

Finally, by Inequality (3.5) N1t + N2t + Φt − Φ0 ≤                      new client/ball and possibly dropping at most one client/ball

            PT

O (log ∆) · t=1 ∥xt − xt−1 ∥1 . It is easy to verify that               all invariants (ii), (iii), (iv) are maintained.

Φ 0

        and Φt ≥ − (1 − 1/γ − P  1/α)−1 · (1 + η · log (∆)) ·

P = 0P           t                       t

                                                      2

   i∈At   j∈Bi xi ≥ −C log ∆       i∈F xi , where C is some             Given Lemma 3.6, we only need to prove that the po-

constant. Thus, the total recourse is bounded.                          tential argument (Inequality (3.5)) is satisfied. Since by



                                                                    7

