20
A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor (Technion)

A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Embed Size (px)

Citation preview

Page 1: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

A polylog competitive algorithm for the k-server problem

Nikhil Bansal (Eindhoven)

Niv Buchbinder (Open Univ., Israel)

Aleksander Madry (MIT)

Seffi Naor (Technion)

Page 2: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

The k-server Problem

1 2 3

Move Closest Sever Algorithm

Page 3: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

The Paging/Caching Problem

Set of pages {1,2,…,n} , cache of size k<n.Request sequence of pages 1, 6, 4, 1, 4, 7, 6, 1, 3, …

a) If requested page already in cache, no penalty.b) Else, cache miss. Need to fetch page in cache (possibly) evicting some other page.

Goal: Minimize the number of cache misses.

Paging: K-server on the uniform metric.(Server on location p = page p in cache)

1 n. . .

Page 4: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Previous Results: Paging

Paging (Deterministic) [Sleator Tarjan 85]:

• Any deterministic algorithm >= k-competitive.

• LRU is k-competitive (also other algorithms)

Paging (Randomized):

• Rand. Marking O(log k) [Fiat, Karp, Luby, McGeoch, Sleator, Young 91].

• Lower bound Hk [Fiat et al. 91], tight results known.

Page 5: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

K-server conjecture

[Manasse-McGeoch-Sleator ’88]:

There exists k competitive algorithm on any metric space.

Initially no f(k) guarantee.Fiat-Rababi-Ravid’90: exp(k log k) …Koutsoupias-Papadimitriou’95: 2k-1

Chrobak-Larmore’91: k for trees.

Page 6: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Randomized k-server Conjecture

There is an O(log k) competitive algorithm for any metric.

Uniform Metric: log k

Polylog for very special cases (uniform-like)

Line: n2/3 [Csaba-Lodha’06]

exp(O(log n)1/2) [Bansal-Buchbinder-Naor’10]

Depth 2-tree: No o(k) guarantee

Page 7: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Our Result

Thm: There is an O(log2 k log3 n) competitive* algorithm for k-server on any metric with n points.

* Hiding some log log n terms

Page 8: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Our Approach

Hierarchically Separated Trees (HSTs) [Bartal 96].

Any Metric space

Problems on HST often reduced to Uniform metrics.[Bartal-Blum-Burch-Tomkins 97, Kleinberg-Tardos 01, …]

Allocation Problem (uniform metrics): [Cote-Meyerson-Poplawski’08]

(We work with a weaker “fractional” allocation problem)

O(log n)

Page 9: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Outline

• Introduction• HSTs + Allocation Problem• Fractional view of Randomized Algorithms• Fractional Allocation Problem

Page 10: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Designing Algorithm on HST

d+1 level HST

Page 11: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Allocation Problem

Page 12: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Allocation to k-server

Page 13: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Outline

• Introduction• Allocation Problem• Fractional view of Randomized Algorithms• Fractional Allocation Algorithm

Page 14: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Fractional View of Randomized Algorithms

To specify a randomized algorithm:

i) Prob. distribution on states at time t.

ii) How it changes at time t+1.

Fractional view: Just specify some marginals.

Eg. Paging, actual algorithm = distribution over k-tuples

but, Fractional: p1,…,pn s.t. p1 + …+ pn = k

Cost: If p1,…,pn changes to q1,…,qn , pay i |pi – qi|

Suffices: Fractional Paging -> Randomized Paging (2x loss)

Page 15: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Fractional Allocation Problem

Page 16: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

A gap example

Allocation Problem on 2 points

Requests alternate on locations.Left: (1,1,…,1,0) Right: (1,0,…,0,0)

Any integral solution must pay (T) over T steps.

Claim: Fractional Algorithm pays only T/(2k) . Left: 0 servers w/p 1/k, and k servers w/p 1-1/k Right: has 1 server w/p 1.

No move cost. Hit cost of 1/k on left requests.

Left Right

Page 17: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Main Steps

Page 18: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

A word about Fractional Allocation

Page 19: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Concluding Remarks

Removing dependence of depth on aspect ratio.

Thm: HST -> Weighted HST with O(log n) depth.

Extend Allocation to weighted star.

Main question: Can we remove dependence on n.

1. Metric -> HST

2. But even on HST (lose depth of HST)

1 2 4 8

Page 20: A polylog competitive algorithm for the k-server problem Nikhil Bansal (Eindhoven) Niv Buchbinder (Open Univ., Israel) Aleksander Madry (MIT) Seffi Naor

Thank you