SLIDE 3 Zeroing Game
- Variables x1,β¦,xn ο³ 0 (initially xi = 0)
- Players Z and A alternate to take turns
β Z: Select j where aj = maxi xi : xj := 0 β A: Select a1,β¦,an ο³ 0 and ο₯i ai = 1 : xi += ai
Theorem ο’i : xi ο£ Hn-1+1 ο£ ln n+2 Proof
- Consider a vector x(m) after mο³n rounds
- Sk = sum of k largest xi of x(m+1-k)
- Sn ο£ n (induction)
- Si ο£ 1+ Si+1οi/(i+1)
- S1 ο£ 1+S2 /2 ο£ 1+1/2+S2/3 ο£ 1+1/2+οοο+1/(n-1)+Sn/n ο£ Hn-1+1
Corollary For the halving game, Z : xi := xi/2 For the splitting game, Z : xi,xiβ := xi/2
3
[P. Dietz, D. Sleator, Two algorithms for maintaining order in a list, Proc. 19th ACM Conf. on Theory of Computing, 365-372, 1987]
x1 x2 x3 β β β β xn
def
ο’i : xi ο£2β(Hn-1+1)