Questions: Online Algorithms and Competitive Analysis

4 questions to test your understanding

Score: 0 / 4
Question 1 Multiple Choice

In the ski rental problem, skis cost $B to buy and $1/day to rent. What is the optimal deterministic strategy and its competitive ratio?

ARent for B-1 days, then buy on day B; competitive ratio 2 - 1/B
BBuy immediately on day 1; competitive ratio B
CRent forever; competitive ratio is unbounded
DAlternate between renting and buying; competitive ratio sqrt(B)
Question 2 True / False

For the paging problem with cache size k, no deterministic online algorithm can achieve a competitive ratio better than k.

TTrue
FFalse
Question 3 Short Answer

Randomized online algorithms can achieve strictly better competitive ratios than deterministic ones against an oblivious adversary. Explain why, using the paging problem as an example.

Think about your answer, then reveal below.
Question 4 True / False

The competitive ratio of an online algorithm can be improved by allowing the algorithm to see a constant number of future requests (lookahead).

TTrue
FFalse