randomised online algorithmsrahul/allfiles/shawn-tan-online.pdf · introduction online paging...

79
Introduction Online Paging Algorithms k-Server Problem Randomised Online Algorithms Shawn Tan November 16, 2011 Shawn Tan Randomised Online Algorithms

Upload: others

Post on 01-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Randomised Online Algorithms

Shawn Tan

November 16, 2011

Shawn Tan Randomised Online Algorithms

Page 2: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

Table of Contents

1 IntroductionAnalysis of Online Algorithms

2 Online Paging AlgorithmsDeterministic Online AlgorithmsRandomised Online Algorithms

Marker algorithmReciprocal algorithm

3 k-Server Problem

Shawn Tan Randomised Online Algorithms

Page 3: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

What is an Online Algorithm?

1 Receives inputs in parts or requests

2 Services or answers each request before going to the next one

3 Does not have overall view of entire request sequence

4 Examples of online algorithms:1 Memory paging2 Data structures3 Resource allocation

Shawn Tan Randomised Online Algorithms

Page 4: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

What is an Online Algorithm?

1 Receives inputs in parts or requests

2 Services or answers each request before going to the next one

3 Does not have overall view of entire request sequence4 Examples of online algorithms:

1 Memory paging2 Data structures3 Resource allocation

Shawn Tan Randomised Online Algorithms

Page 5: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

How do we analyse them?

Same method used for analysing offline algorithms cannot beused here!Competitve analysis is used:

Difficult to have absolute performance measure for onlinealgorithms

Compare against an optimal algorithm

Imagine comparing how fast you run compared to UsainBolt!

Shawn Tan Randomised Online Algorithms

Page 6: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

How do we analyse them?

Same method used for analysing offline algorithms cannot beused here!Competitve analysis is used:

Difficult to have absolute performance measure for onlinealgorithms

Compare against an optimal algorithm

Imagine comparing how fast you run compared to UsainBolt!

Shawn Tan Randomised Online Algorithms

Page 7: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

Adversarial Models

Algorithm A

Algorithm MIN

Adversary

request sequence

collude

compare

Shawn Tan Randomised Online Algorithms

Page 8: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

Adversarial Models

Algorithm A

Algorithm MIN

Adversary

request sequence

colludecompare

Shawn Tan Randomised Online Algorithms

Page 9: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server ProblemAnalysis of Online Algorithms

Types of adversaries:

Oblivious Online Adversary Knows about the algorithm used to performtask, but not results of randomisation.

Adaptive Online Adversary Knows past answers to requests, but notresults of randomisation.

Adaptive Offline Adversary Knows everything, including randomisationresults.

Shawn Tan Randomised Online Algorithms

Page 10: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Table of Contents

1 IntroductionAnalysis of Online Algorithms

2 Online Paging AlgorithmsDeterministic Online AlgorithmsRandomised Online Algorithms

Marker algorithmReciprocal algorithm

3 k-Server Problem

Shawn Tan Randomised Online Algorithms

Page 11: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Deterministic Online Algorithms for Paging

Some examples of algorithms with fixed rules for paging are:

LRU Least Recently Used

FIFO First in, First out

LFU Least Frequently Used

Shawn Tan Randomised Online Algorithms

Page 12: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Some Notations

We use the symbol C when we compare the ratio of the cost of analgorithm with the optimal. As in:

CostA(ρ) ≤ CADVA ×CostMIN(ρ) + b

Shawn Tan Randomised Online Algorithms

Page 13: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Worst-case analysis

Lemma

Worst-case number of misses for any deterministic online algorithm is N,where N is the length of the request sequence.

Consider an Adaptive Offline Adversary who knows at any moment, whichof the k + 1 pages is not in the cache, and simply makes that the nextrequest. This results in the algorithm doing a page swap at every request.

Shawn Tan Randomised Online Algorithms

Page 14: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Worst case analysis

Lemma

For the offline paging algorithm MIN, worst-case number of misses is Nk

Partition some request sequence into rounds such that there are only kdistinct requests per round.

a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸one round

, e, . . . , b, . . . , a, . . . , d

Then for every round, MIN only misses once.

Shawn Tan Randomised Online Algorithms

Page 15: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower-bound for Deterministic Online Algorithms

Theorem

Let A be a deterministic online algorithm for paging. Then CA ≥ k

Proof.

From the first result, we know that we can construct a series of requeststhat causes A to miss on every request. Then A misses more than ktimes per round.From the second result, we know that the MIN only misses once a round.The result follows since A misses at least k more times a round comparedto MIN.

Shawn Tan Randomised Online Algorithms

Page 16: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

The Yao’s Minimax theorem tells us,

infRCoblR = sup

PinfACPA

Shawn Tan Randomised Online Algorithms

Page 17: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

The Yao’s Minimax theorem tells us,

infRCoblR = best deterministic algorithm under worst case request sequence

Shawn Tan Randomised Online Algorithms

Page 18: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

Construct a request sequence such that each request is uniformly chosenat random from the set of pages such that the current page is not thesame as the previous (k choices).We know that MIN faults once in a round.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸, e, . . .

Shawn Tan Randomised Online Algorithms

Page 19: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

Construct a request sequence such that each request is uniformly chosenat random from the set of pages such that the current page is not thesame as the previous (k choices).We know that MIN faults once in a round.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸one round

, e, . . .

Shawn Tan Randomised Online Algorithms

Page 20: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

Construct a request sequence such that each request is uniformly chosenat random from the set of pages such that the current page is not thesame as the previous (k choices).We know that MIN faults once in a round.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸length?

, e, . . .

Shawn Tan Randomised Online Algorithms

Page 21: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

Construct a request sequence such that each request is uniformly chosenat random from the set of pages such that the current page is not thesame as the previous (k choices).We know that MIN faults once in a round.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸kHk

, e, . . .

Shawn Tan Randomised Online Algorithms

Page 22: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸probability of missing a page?

, e, . . .

We know that for each request, there are k possibilities, and that there isonly 1 item not in the cache, so the probability for missing is 1

kSince MIN only misses once per round, we have the result.

Shawn Tan Randomised Online Algorithms

Page 23: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸1k per request

, e, . . .

We know that for each request, there are k possibilities, and that there isonly 1 item not in the cache, so the probability for missing is 1

k

Since MIN only misses once per round, we have the result.

Shawn Tan Randomised Online Algorithms

Page 24: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Lower bound for Randomised Paging Algorithms

Theorem

Let R be a randomised algorithm for paging. Then CoblR ≥ Hk where Hk

is the kth Harmonic number

Proof.

. . . , b, a, . . . , b, . . . , c , . . . , d︸ ︷︷ ︸E(misses) = kHk/k = Hk

, e, . . .

We know that for each request, there are k possibilities, and that there isonly 1 item not in the cache, so the probability for missing is 1

kSince MIN only misses once per round, we have the result.

Shawn Tan Randomised Online Algorithms

Page 25: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c d

0 0 0 0

a, c , e, b

Randomly selects page to evict, marks the location, and brings in newpage.Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 26: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c d

1 0 0 0

a

, c , e, b

Randomly selects page to evict, marks the location, and brings in newpage.Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 27: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c d

1 0 1 0

a, c

, e, b

Randomly selects page to evict, marks the location, and brings in newpage.Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 28: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c e

1 0 1 1

a, c , e

, b

Randomly selects page to evict, marks the location, and brings in newpage.

Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 29: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c e

1 1 1 1

a, c , e, b

Randomly selects page to evict, marks the location, and brings in newpage.

Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 30: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Marker Algorithm

a b c e

0 0 0 0

a, c , e, b

Randomly selects page to evict, marks the location, and brings in newpage.Resets just after a miss, before bringing in new page.

Shawn Tan Randomised Online Algorithms

Page 31: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

A page is considered marked if its location was marked.

A clean page is an unmarked page that was unmarked in theprevious round.

A stale page is a currently unmarked page that was marked in theprevious round.

dI = |SOPT − SM | at the beginning of the phase

dF = |SOPT − SM | at the end of the phase

Let the number of requests to clean items be c

Shawn Tan Randomised Online Algorithms

Page 32: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

A page is considered marked if its location was marked.

A clean page is an unmarked page that was unmarked in theprevious round.

A stale page is a currently unmarked page that was marked in theprevious round.

dI = |SOPT − SM | at the beginning of the phase

dF = |SOPT − SM | at the end of the phase

Let the number of requests to clean items be c

Shawn Tan Randomised Online Algorithms

Page 33: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Number of misses made by OPT is at least c − dI

Number of misses made by OPT is at least dF

So we have,

No. of misses ≥ max{c − dI , dF} ≥c − dI + dF

2

Shawn Tan Randomised Online Algorithms

Page 34: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Number of misses made by OPT is at least c − dI

Number of misses made by OPT is at least dF

So we have,

No. of misses ≥ max{c − dI , dF} ≥c − dI + dF

2

Shawn Tan Randomised Online Algorithms

Page 35: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Number of misses made by OPT is at least c − dI

Number of misses made by OPT is at least dF

So we have,

No. of misses ≥ max{c − dI , dF} ≥c − dI + dF

2

Shawn Tan Randomised Online Algorithms

Page 36: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Summing over all rounds, we have,

. . . +c − dI + dF

2+

c − dI + dF

2+ . . .

and the terms dF and dI telescope for consecutive rounds. So we havethe number of misses a round for the offline algorithm is at least c

2

Shawn Tan Randomised Online Algorithms

Page 37: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Summing over all rounds, we have,

. . . +c

− dI + dF

2+

c

− dI + dF

2+ . . .

and the terms dF and dI telescope for consecutive rounds. So we havethe number of misses a round for the offline algorithm is at least c

2

Shawn Tan Randomised Online Algorithms

Page 38: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

There are c to clean items and k − c requests to stale items.

To maximise number of misses, let requests to clean items comefirst.

Then expected number of requests to stale pages at time i of theround given by

0 ∗ si − cisi

+ 1 ∗ cisi

=cisi≤ c

k − i + 1

Shawn Tan Randomised Online Algorithms

Page 39: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Then the expected cost is given by,

c︸︷︷︸clean

+k−c∑i=1

c

k − i + 1︸ ︷︷ ︸stale

= c + c(Hk − Hc) ≤ cHk

OPT incurs at least c2 , while Marker incurs at most cHk . From this, we

obtain the result.

Shawn Tan Randomised Online Algorithms

Page 40: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Analysis of Marker Algorithm

Theorem

The Marker algorithm is 2Hk -competitive.

Proof.

Then the expected cost is given by,

c︸︷︷︸clean

+k−c∑i=1

c

k − i + 1︸ ︷︷ ︸stale

= c + c(Hk − Hc) ≤ cHk

OPT incurs at least c2 , while Marker incurs at most cHk . From this, we

obtain the result.

Shawn Tan Randomised Online Algorithms

Page 41: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

The Reciprocal algorithm

The Reciprocal algorithm evicts a page from the cache with probability

pi =1/w(xi )∑

x∈SRi

1/w(x)

where SRi is the pages in the algorithm R’s cache at the time i . w(x) is

the weight incurred when a page is brought into the cache.

Shawn Tan Randomised Online Algorithms

Page 42: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 43: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 44: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 45: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 46: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 47: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Competitive Analysis of Reciprocal algorithm

Making use of a potential function,

SRi = items in cache of Reciprocal

SADVi = items in cache of Adaptive Online Adversary

Φi =∑x∈SR

i

w(x)− k∑

x∈SRi −S

ADVi

w(x)

∆Φi = Φi − Φi−1

Xi = f Ri︸︷︷︸

brought in item cost

−k f ADVi︸ ︷︷ ︸

evicted item cost

−∆Φi

Shawn Tan Randomised Online Algorithms

Page 48: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 49: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 50: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 51: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 52: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 53: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Looking at,i∑

j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

Adversary

Brings x into the cache, and evicts x ′

f ADVi = w(x ′)

∆Φ ≥ −kw(x ′) = −kf ADVj , ADV only deducts from the ‘bank’

Reciprocal

Just before Reciprocal does anything, |SRi − SADV

i | ≥ 1. Substituting,

E[∆Φ] = w(x)− k∑y∈SR

i1/w(y)

+ k|SR

i − SADVi |∑

y∈SRi

1/w(y)

Since f Ri = w(x)Then we have that Reciprocal also only deducts from

the ‘bank’

Shawn Tan Randomised Online Algorithms

Page 54: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Theorem

The Reciprocal algorithm is k-competitive against any adaptive onlineadversary.

Proof.

i∑j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

From the contributions of the adversary and Reciprocal:E[∑

Xi ] ≤ 0

Terms of ∆Φ telescope

Φ0 and Φn are bounded∑i

(E[f R

i ]− kE[f ADVi ]

)≤ some constant b

Which gives us our result.

Shawn Tan Randomised Online Algorithms

Page 55: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Theorem

The Reciprocal algorithm is k-competitive against any adaptive onlineadversary.

Proof.

i∑j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

From the contributions of the adversary and Reciprocal:E[∑

Xi ] ≤ 0

Terms of ∆Φ telescope

Φ0 and Φn are bounded∑i

(E[f R

i ]− kE[f ADVi ]

)≤ some constant b

Which gives us our result.

Shawn Tan Randomised Online Algorithms

Page 56: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Theorem

The Reciprocal algorithm is k-competitive against any adaptive onlineadversary.

Proof.

i∑j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

From the contributions of the adversary and Reciprocal:E[∑

Xi ] ≤ 0

Terms of ∆Φ telescope

Φ0 and Φn are bounded∑i

(E[f R

i ]− kE[f ADVi ]

)≤ some constant b

Which gives us our result.

Shawn Tan Randomised Online Algorithms

Page 57: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Theorem

The Reciprocal algorithm is k-competitive against any adaptive onlineadversary.

Proof.

i∑j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

From the contributions of the adversary and Reciprocal:E[∑

Xi ] ≤ 0

Terms of ∆Φ telescope

Φ0 and Φn are bounded

∑i

(E[f R

i ]− kE[f ADVi ]

)≤ some constant b

Which gives us our result.

Shawn Tan Randomised Online Algorithms

Page 58: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Deterministic Online AlgorithmsRandomised Online Algorithms

Theorem

The Reciprocal algorithm is k-competitive against any adaptive onlineadversary.

Proof.

i∑j=1

Xj =i∑

j=1

f Rj − kf ADV

j −∆Φj

From the contributions of the adversary and Reciprocal:E[∑

Xi ] ≤ 0

Terms of ∆Φ telescope

Φ0 and Φn are bounded∑i

(E[f R

i ]− kE[f ADVi ]

)≤ some constant b

Which gives us our result.

Shawn Tan Randomised Online Algorithms

Page 59: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Table of Contents

1 IntroductionAnalysis of Online Algorithms

2 Online Paging AlgorithmsDeterministic Online AlgorithmsRandomised Online Algorithms

Marker algorithmReciprocal algorithm

3 k-Server Problem

Shawn Tan Randomised Online Algorithms

Page 60: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

The k-Server Problem

a

b

c

d

e

b

c

d

e

Shawn Tan Randomised Online Algorithms

Page 61: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

The k-Server Problem

a

b

c

d

e

a

b

c

e

cda

Shawn Tan Randomised Online Algorithms

Page 62: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Why is it important?

Generalised version of paging problem

Resource allocation problems:

Motion of two-headed disksMaintenance of data structures

However, it is still an open problem.

Shawn Tan Randomised Online Algorithms

Page 63: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Why is it important?

Generalised version of paging problem

Resource allocation problems:

Motion of two-headed disksMaintenance of data structures

However, it is still an open problem.

Shawn Tan Randomised Online Algorithms

Page 64: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Why is it important?

Generalised version of paging problem

Resource allocation problems:

Motion of two-headed disksMaintenance of data structures

However, it is still an open problem.

Shawn Tan Randomised Online Algorithms

Page 65: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Why is it important?

Generalised version of paging problem

Resource allocation problems:

Motion of two-headed disksMaintenance of data structures

However, it is still an open problem.

Shawn Tan Randomised Online Algorithms

Page 66: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary I

Theorem

Let R be a randomised online algorithm that manages k servers in anymetric space. Then CaonR ≥ k.

Shawn Tan Randomised Online Algorithms

Page 67: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

R a b c d

B1 b c d e

B2 a c d e

B3 a b d e

B4 a b c e

e, d , a, c

Shawn Tan Randomised Online Algorithms

Page 68: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

R a b c e

B1 b c d e

B2 a c d e

B3 a b d e

B4 a b c e

e,

d , a, c

Shawn Tan Randomised Online Algorithms

Page 69: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

R d b c e

B1 b c d e

B2 a c d e

B3 a b d e

B4 a b c d

e, d ,

a, c

Shawn Tan Randomised Online Algorithms

Page 70: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

R d b a e

B1 b c a e

B2 a c d e

B3 a b d e

B4 a b c d

e, d , a,

c

Shawn Tan Randomised Online Algorithms

Page 71: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

R d c a e

B1 b c a e

B2 a c d e

B3 c b d e

B4 a b c d

e, d , a, c

Shawn Tan Randomised Online Algorithms

Page 72: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

Theorem

Let R be a randomised online algorithm that manages k servers in anymetric space. Then CaonR ≥ k.

Proof.

There are k algorithms B1, . . . ,Bk such that

CostR(ρADV ) =k∑

j=1

CostBj (ρADV )

≥ k minj

CostBj (ρADV )

And we have the result.

Shawn Tan Randomised Online Algorithms

Page 73: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Lower bound against Adaptive Online Adversary

Theorem

Let R be a randomised online algorithm that manages k servers in anymetric space. Then CaonR ≥ k.

Proof.

There are k algorithms B1, . . . ,Bk such that

CostR(ρADV ) =k∑

j=1

CostBj (ρADV )

≥ k minj

CostBj (ρADV )

And we have the result.

Shawn Tan Randomised Online Algorithms

Page 74: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms

Page 75: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms

Page 76: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms

Page 77: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms

Page 78: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms

Page 79: Randomised Online Algorithmsrahul/allfiles/shawn-tan-online.pdf · Introduction Online Paging Algorithms k-Server Problem Analysis of Online Algorithms What is an Online Algorithm?

IntroductionOnline Paging Algorithms

k-Server Problem

Summary

Adversary Models

Oblivious AdversaryAdaptive Online AdversaryAdaptive Offline Adversary

Deterministic lower-bound k-competitive

Randomised lower-bound Hk -competitive

Marker against oblivious adversary 2Hk -competitiveReciprocal against adaptive online adversary k-competitive

k-Server Problem

Lower-bound k-competitive against adaptive online adversary

Shawn Tan Randomised Online Algorithms