24.12.2013 Views

Complexity of Online Algorithms - CSIS

Complexity of Online Algorithms - CSIS

Complexity of Online Algorithms - CSIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Paging Algorithm – Competitive Analysis<br />

Claim:<br />

• C LRU = k<br />

• Pro<strong>of</strong>:<br />

• Partition the input sequence into rounds R 0 , R 1 ... R t<br />

• such that each round R j results in exactly k misses by<br />

LRU.<br />

• In each round R j , all the k+1 pages must have been<br />

accessed.<br />

• Why?<br />

• So, the ratio <strong>of</strong> misses by LRU to optimal misses is at most<br />

k i.e. for any input sequence <br />

• f LRU () / f OPT ()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!