                                               Competitively Consistent Clustering



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

time t ∈ [T ],√with parameter η = 1/ log2 (α − δ − 1) =                 no clients, the fractional solution is 0, and no centers were

1/ log2 (2 + 2):                                                        added. The following events may happen at time step t.

              1 + η log ∆ X                     X

       Φt =                 ·       max{0, 1 −      xtj }                  • The fractional solution changes from xt−1 to xt .

                   ϵ

                              i∈S t            j∈Bi

                                                                           • Facility i such that j∈Bi xtj < (1 − ϵ) is dropped in

                                                                                                 P

                                  

                      X             ∆

                −η·        log2        .                  (3.2)              the first step.

                         t

                                    ri

                      i∈S

                                                                           • A new center/ball around j is added, and then (pos-

Let N1t be the total number of balls dropped due to the first                sibly) other centers/balls are dropped in the second

step of the algorithm until time t. Let N2t be the number of                 iterative step.

balls dropped until time t due to an addition of a new ball

in the second (iterative) step of the algorithm. We prove               The fractional solution changes: By our induction hy-

inductively that,                                                       pothesis and Invariant (ii) we have that for all i1 , i2 ∈ S t :

                             

                               log ∆

                                                                       di1 ,i2 ≥ ri1 + ri2 + δ · min{ri1 , ri2 }, and in particu-

      t       t       t

 ∆N1 + ∆N2 + ∆Φ ≤ O                     · ∥xt − xt−1 ∥1 , (3.3)         lar the balls are disjoint. The only term

                                 ϵ                                                                                   P that depends on

                                                                                                     (1+η log ∆)/ϵ ·

                                                                        the  fractional  solution is                  i∈S t max{0, 1 −

                                                                                   t

                                                                        P

where ∆N1t , ∆N2t and ∆Φt is the change in the values of                   j∈Bi jx   } in the potential function.    Hence,  Inequality

N1t , N2t and Φt at time step t. In particular, we show that the        (3.3) is maintained.

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

                                                                        Facility i such that j∈Bi xtj < 1 − ϵ is dropped: If this

                                                                                            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         event           then ∆N1t = 1, ∆N2t = 0, and max{0, 1 −

                                                                        P happens,t

finite and the algorithm terminates.                                      j∈Bi xj } ≥ ϵ. Thus, we have,  ∆N1t + ∆N2t + ∆Φt ≤

                                                                                                    

Before showing that the algorithm maintains these invari-               1 − (1 + η log2 ∆) + η log2 r∆i ≤ 0.

ants, we show why these imply Theorem 3.1.

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

Proof of Theorem 3.1. By Invariant (i) and the definition of            balls are dropped: In order to analyze this event we need

                          ct is at most α ·Dt ≤ α ·β ·OP T t )

ct (recall, the radius of B

B                                                                       the following lemma, which we prove shortly.

  i                         i

the algorithm maintains at all times an (α · β)-approximate                                  S      ct                    t

                                                                        Lemma 3.3. If j ̸∈        t B , and let rj = D be the

                                                                                                  i∈S    i

solution. By Invariant (ii) the balls are    Pdisjoint, and by          radius of the new added ball Bj . Then, there exists at most

Invariant (iii) we have for all i ∈ S t that j∈Bi xtj ≥ 1 − ϵ.

                                            Pn                          one i ∈ S t such that dij ≤ ri + rj + δ · min{ri , rj }. This

Since the fractional solution satisfies i=1 xti ≤ k ′ and

                                                                        ball (if exists) has radius ri > (α − δ − 1) · Dt . After

ϵ ≤ 1/2, the number of centers chosen by the algorithm is

          k′

                                                                        adding this new ball and possibly dropping at most one ball

at most 1−ϵ     ≤ (1 + 2ϵ) · k ′ . Finally, by Inequality (3.3),        all invariants (ii), (iii), (iv) are maintained.

   t    t      t

N1 +N2 +Φ −Φ0 ≤ O (P        log ∆/ϵ)·R. It is easy to verify that



Φ0 = 0 and Φt ≥ −η · i∈S t log2 (∆/ri ) ≥ −2k log ∆.                    Given Lemma 3.3 we prove that the potential argument

As the number of additions of centers is at most the total              (Inequality (3.3)) is satisfied and the algorithm terminates.

number of drops of centers plus the final number of centers             We observe that if indeed the main loop of the algorithm

(which is bounded by k), the total recourse is bounded as               terminates after a finite number of steps, then by the main

claimed.                                                                loop condition, Invariant (i) must be maintained.

Remark 3.2. Our analysis has an additional (constant)                   SincePby the LP constraints     we have for the new added

                                                                        ball j∈Bi xtj = j∈Bi xtji ≥ 1, the term (1+η log ∆)/ϵ ·

                                                                                            P

additive term that depends on the final number of centers.

However, a more careful inspection of our proof shows that                                             t

                                                                        P                    P

                                                                           i∈S t max{0, 1 −     j∈Bi xj } of the potential does not

the number drops is bounded by O (log ∆/ϵ) times the total              increases due to the addition of the new ball and possibly

decrease in the variables xti . This fact along

                                           P with the fact              the drop of a single ball. Next, we have two cases.

that the final number of centers plus η · i∈S t log2 (∆/ri )

is bounded by O (log ∆/ϵ) times the total increase in the               A ball of radius ri is added and no ball is dropped. In

variables can be used to avoid this additive term in the                this case ∆N2t = 0 and the change in theLHS of Inequal-

analysis.

                                                                        ity (3.3) is at most ∆Φ ≤ −η log2 r∆j ≤ 0. We note

Next, we consider different events that can happen at time t            that by invariants (iv) for the new added ball Bj we have

                                                                        P         tj

one-by-one and prove that all the invariants are maintained.               i∈Bj xi ≥ 1. As by Invariant (ii) the balls are disjoint,





                                                                    5

