Deterministic 2n/(n+1) lower bound for list update #
No deterministic online list-update strategy over an n-element universe has competitive ratio
smaller than 2n / (n + 1) = 2 - 2/(n + 1), with any additive constant. This is the standard
"cruel adversary" bound for deterministic list accessing. It is credited to Karp and Raghavan as
reported in Irani, Two Results on the List Update Problem (the paper's text was not
inspected here); see also Borodin and El-Yaniv, Online Computation and Competitive Analysis,
Chapter 1. The argument:
- Cruel adversary (
cruelRequests): always request the item at the end of the online strategy's current list (List.getLastD). Whatever rearrangement the strategy then makes, it pays at leastnper request (idxOf_le_inversions_add), somrequests cost it at leastm * n(le_cost_cruelRequests). - Two static schedules: the offline schedule that keeps the initial arrangement
s₀, and the one that reverses it on the first request and then stays put. Each request's positions ins₀and its reversal add up ton + 1(idxOf_reverse_add_idxOf), and reversing costs at mostn (n - 1) / 2. So the cheaper of the two schedules costs at most(m (n + 1) + n (n - 1) / 2) / 2, on every request sequence of lengthm. - Ratio violation: for
p (n + 1) < 2 n q(a rational ratiop / q < 2n / (n + 1)) and any additive constantb, takingmlarge enough givesp * OPT + b < q * ALG(exists_ratio_violation_of_lt).
The bound uses only two static offline schedules. The textbook proof averages over all n!
static arrangements, which gives the same constant. For n ≥ 2 no deterministic strategy is
(1, b)-competitive (not_isCompetitive_one). Move-to-front is (2, 0)-competitive
(CslibFrontier.DataStructure.ListUpdate.MoveToFront), so 2 is the optimal integer ratio.
Main definitions #
Cslib.DataStructure.ListUpdate.cruelRequests: the adaptive request sequence against a deterministic strategy.
Main results #
idxOf_getLastD_add_one: the last item of an arrangement is at positionn.le_cost_cruelRequests: the cruel adversary forces cost≥ nper request.scheduleCost_static_le,sum_idxOf_add_sum_idxOf_reverse: cost of static offline schedules.exists_ratio_violation_of_lt,not_isCompetitiveFrom_of_lt,not_isCompetitive_of_lt,not_isCompetitiveAnyInit_of_lt,not_isCompetitive_one: no deterministic strategy achieves a ratio below2n / (n + 1).
References #
The last item of a nonempty duplicate-free list sits at position length - 1.
The cruel adversary: n requests, each for the last item of the strategy's current list.
Against the cruel adversary every deterministic strategy pays at least n per request.
The static schedule that moves to τ on the first request and then stays put is valid.
The static schedule to τ costs the inversions between s₀ and τ plus the positions of
the requests in τ.
Each request's positions in s₀ and in its reversal add up to n + 1.
Deterministic lower bound for list update: for every deterministic online strategy
over a universe of n ≥ 1 items, every initial arrangement s₀, every rational ratio
p / q < 2n / (n + 1) (i.e. p (n + 1) < 2 n q) and every additive constant b, there are a
request sequence and a valid offline schedule with p * OPT + b < q * ALG.
No deterministic online list-update strategy is (c, b)-competitive from an initial
arrangement s₀ when c (n + 1) < 2 n.
No deterministic online list-update strategy is (c, b)-competitive when
c (n + 1) < 2 n.
No deterministic online list-update strategy is (c, b)-competitive across arbitrary initial
arrangements when c (n + 1) < 2 n.
Over at least two items, no deterministic online list-update strategy is (1, b)-competitive
for any additive constant b.