Abdolhamid Ghodselahi: Serving Online Requests with Mobile Servers

Preview:

Citation preview

Serving Online Requests with Mobile Servers

Abdolhamid Ghodselahi University of Freiburg, Germany

joint work withFabian Kuhn (University of Freiburg)

Presented at ISAAC 2015, Nagoya, JapanDecember 9-11, 2015

Our online problem:

๐‘› points are given

๐‘˜ mobile servers

Online requests

service cost = ๐Ÿ

service cost = ๐ŸŽ

service cost = ๐Ÿservice cost = ๐Ÿ‘

service cost = ๐Ÿservice cost = ๐ŸŽ

Goal: Minimize #movements

service cost = ๐ŸŽ

#movements = 1#movements = 2

๐’ฎ = 1๐’ฎ = 2๐’ฎ = 4๐’ฎ = 1๐’ฎ = 3๐’ฎ = 1

What if some algorithm moves no server at all?!

Feasible Configuration:

Any algorithm that solves the problem must satisfy the following condition at all time steps :

Problem condition: ๐’ฎ < ๐›ผ โˆ™ ๐’ฎโˆ— + ๐›ฝ

๐’ฎ โ‰” Current service cost of any algorithmโ€ข Service cost is not cumulative over time

๐’ฎโˆ— โ‰” Optimal current service cost =Minimum service cost among all configurations

๐›ผ โ‰ฅ 1 and ๐›ฝ โ‰ฅ 0 are two given parameters

Recap:

๐‘› points are given ๐‘˜ mobile servers Online requests

Requests need to be servedโ€ข At the requested pointโ€ข By a remote server

A request has to be served atall time steps after it is issuedโ€ข Reassignment is allowed

Problem condition must be satisfied at all time steps

Goal: Minimize #movements

service cost = ๐ŸŽ

service cost = ๐ŸŽ

service cost = ๐Ÿ

service cost = ๐Ÿ

Our Model VS. ๐‘˜-Server/Paging

Our Model

Requests are served

to serve However, some on the current service cost

๐‘˜-Server/Paging

Requests are served when they are issued

Servers serve No service cost

Known Results for ๐‘˜-Server & Paging Deterministic

โ€ข ๐‘˜-Server conjecture: Competitive factor is ๐‘˜[Manasse, McGeoch, & Sleator 1990]

โ€ข Competitive factor of 2๐‘˜ โˆ’ 1 for ๐‘˜-Server[Koutsoupias & Papadimitriou 1995]

โ€ข Any deterministic algorithm is ฮฉ ๐‘˜ -competitive[Sleator & Tarjan 1985]

โ€ข Least recently used (LRU) algorithm is ๐‘˜-competitive[Sleator & Tarjan 1985]

Randomized

โ€ข Competitive factor of ฮŸ log ๐‘˜ 2 log ๐‘› 3

[Bansal, Buchbinder, Madry, & Naor 2011]

Outline

1. Motivation & Model

2. Minimizing #Movements

a. Lower-Bound

3. Minimizing #Movements + Service Cost

a. Upper-Bound

b. Lower-Bound

4. Future Work

Any deterministic online algorithm is

ฮฉ ๐‘› -competitive

2. Minimizing #movements

Proof Sketch ๐’œ โˆถ Any deterministic online algorithm (ALG)

๐’ช โˆถ Any optimal offline algorithm (OPT)

Two cases:

๐‘˜ > ๐‘›/2 :

โ€ข Competitive factor is โ‰ฅ ๐‘˜

๐‘˜ โ‰ค ๐‘›/2 :

โ€ข Competitive factor is โ‰ฅ ๐‘› โˆ’ ๐‘˜

โ‰ฅ max ๐‘˜, ๐‘› โˆ’ ๐‘˜

โ‰ฅ ๐‘› 2 โˆˆ ฮฉ(๐‘›)

๐‘˜ โ‰ค ๐‘›/2 โˆถ Main Idea

large enough #requests

๐’ฎ๐’œ โ‰ฎ ๐›ผ โˆ™ ๐’ฎโˆ— + ๐›ฝ

ALG must move some server(s)

OPT moves to a point where#requests is large at all time steps

points without servers

๐‘› = 3 , ๐‘˜ = 1

Assume ๐›ผ = 1

Problem condition:โˆ€๐‘ก โˆถ ๐’ฎ๐’œ(๐‘ก) < ๐’ฎโˆ—(๐‘ก) + ๐›ฝ

Repeat for ๐‘› , ๐‘˜ = 1 โ†’โ‰ฅ ๐‘› โˆ’ 1 #movements

๐’ฎโˆ— = ๐›ฝ๐’ฎ๐’œ = 2๐›ฝ

๐’ฎ๐’œ = ๐’ฎโˆ— + ๐›ฝ

๐‘˜ โ‰ค ๐‘›/2 : Simple Example#Movements by ALG

๐›ฝ

๐›ฝ

๐’ฎโˆ— = ๐›ฝ๐’ฎ๐’œ = ๐›ฝ

๐’ฎ๐’œ < ๐’ฎโˆ— + ๐›ฝ

2๐›ฝ

2๐›ฝ

๐’ฎโˆ— = 3๐›ฝ๐’ฎ๐’œ = 4๐›ฝ

๐’ฎ๐’œ = ๐’ฎโˆ— + ๐›ฝ

๐’ฎโˆ— = 3๐›ฝ๐’ฎ๐’œ = 3๐›ฝ

๐’ฎ๐’œ < ๐’ฎโˆ— + ๐›ฝ

๐‘› = 3 , ๐‘˜ = 1

Assume ๐›ผ = 1

OPT knows the sequence in advance

Problem condition:โˆ€๐‘ก โˆถ ๐’ฎ๐’ช(๐‘ก) < ๐’ฎโˆ—(๐‘ก) + ๐›ฝ

Repeat for ๐‘› , ๐‘˜ = 1 โ†’โ‰ค 1 #movements

๐’ฎโˆ— = ๐›ฝ๐’ฎ๐’ช = 2๐›ฝ

๐’ฎ๐“ž = ๐’ฎโˆ— + ๐›ฝ

๐‘˜ โ‰ค ๐‘›/2 : Simple Example#Movements by OPT

๐›ฝ

๐›ฝ

๐’ฎโˆ— = ๐›ฝ๐’ฎ๐’ช = ๐›ฝ

๐’ฎ๐“ž < ๐’ฎโˆ— + ๐›ฝ

2๐›ฝ

2๐›ฝ

๐’ฎโˆ— = 3๐›ฝ๐’ฎ๐’ช = 3๐›ฝ

๐’ฎ๐’ช < ๐’ฎโˆ— + ๐›ฝ

๐‘˜ โ‰ค ๐‘› 2 โˆถ Reduction to any ๐‘˜, ๐‘›

โ‹ฏ

๐‘›

โ‹ฏ

๐‘˜ โˆ’ 1โ‹ฏ โ‹ฏ

๐‘˜ โˆ’ 1

๐‘›

โˆž

All algorithms can only move this server

โ‰ฅ ๐‘› โˆ’ ๐‘˜ #movements by ALG and โ‰ค 1 by OPT

3. Minimizing Combined CostThe objective is to minimize the

Current service cost+ #Movements

This modification in the objective helps us to be more competitive against OPT

A natural greedy algorithm (denoted by ๐’œ) is introduced which provides an almost tight bound

Minimizing combined cost is closer to an online variant of

mobile facility location problem [Friggstad & Salavatipour FOCSโ€™08]

The algorithm does nothing as long as ๐’ฎ๐’œ < ๐›ผ โˆ™ ๐’ฎโˆ— + ๐›ฝ

It greedily moves some server(s) as soon as ๐’ฎ๐’œ โ‰ฎ ๐›ผ โˆ™ ๐’ฎโˆ— + ๐›ฝ

Greedy Approach:

Decrease current service cost as much as possible

Maximal improvement = 6๐›ฝ

Greedy Algorithm

5๐›ฝ

2๐›ฝ

6๐›ฝ

8๐›ฝ

๐’ฎโˆ— = 7๐›ฝ๐’ฎ๐’œ = 14๐›ฝ

๐’ฎ๐’œ < 2๐’ฎโˆ— + ๐›ฝ

๐’ฎโˆ— = 7๐›ฝ๐’ฎ๐’œ = 15๐›ฝ

๐’ฎ๐’œ = 2๐’ฎโˆ— + ๐›ฝ

7๐›ฝ๐’ฎโˆ— = 7๐›ฝ๐’ฎ๐’œ = 9๐›ฝ

๐’ฎ๐’œ < 2๐’ฎโˆ— + ๐›ฝ

Our online algorithm is 1 + ๐œ€ -competitive

for every constant ๐œ€ > 0,

at the cost of an additional additive term

Results

Any deterministic online algorithm cannot get

a better competitive factor than almost similar

above upper-bound

Upper-Bound: Proof Sketch

Goal: Minimize the combined cost

๐’ฎ๐’œ < ๐›ผ โˆ™ ๐’ฎโˆ— + ๐›ฝ ๐‘€๐’œ โ‰ค ?

๐’ฎ๐’ช +๐‘€๐’ช โ‰ฅ ๐’ฎโˆ—

๐‘€๐’œ โ‰ค ๐œ€ โˆ™ ๐’ฎโˆ— + ฮŸ(๐‘˜ log ๐‘˜)

General Service Cost Function Recall:

๐œŽ๐‘ฃ ๐‘ฆ โ‰” 0, ๐‘ ๐‘’๐‘Ÿ๐‘ฃ๐‘’๐‘Ÿ ๐‘Ž๐‘ก ๐‘ฃ๐‘ฆ, ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’

Generalization:๐œŽ๐‘ฃ ๐‘ฅ, ๐‘ฆ โ‰” Service cost of ๐‘ฃ if ๐‘ฅ servers and ๐‘ฆ requests at ๐‘ฃ

The function has to satisfy some natural properties: Monotonicity (in ๐‘ฅ and ๐‘ฆ)

Effect of adding additional servers to a node ๐‘ฃ

โ€ข should become smaller (convexity in ๐‘ฅ)

โ€ข should not decrease if #requests gets larger

The upper-bound result holds for this generalization

Both lower-bound results even hold for the previous service cost

4. Future Work

With respect to minimizing the #movements:

โ€ข Study randomized online algorithms

With respect to minimizing the combined cost:

โ€ข Study the online variant of mobile facility location problem (OMFLP) in general metrics

OMFLP definition

our lower-bound already holds for any det. online algorithm that solves OMFLP

Thanks for your attention

Recommended