Theorem 10, second claim — a randomized spin-block algorithm is -competitive
ProvedNonuniformCompetitive.SpinBlock.ratio_attainedcompetitive-analysisp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithmsspin-block
Let be the context-switch cost of the spin-block problem. There is a randomized on-line algorithm and a constant such that for every finite sequence of lock waits
that is, is -competitive against an oblivious adversary.
This is the attainment half of Theorem 10; together with the lower bound it shows that is the optimal randomized competitive factor.
Formalization Note The randomized algorithm is a probability distribution over deterministic on-line algorithms whose cost on each fixed input is a measurable function of the random outcome, so the expected cost is a genuine expectation. The hypothesis is the paper's "some large cost ".
Preamble
import Mathlib import Definitions.Def_NonuniformCompetitive_SpinBlock_Randomized
Formal statement
namespace NonuniformCompetitive.SpinBlock
/-- Theorem 10, second claim (p. 559): there is a randomized algorithm for the spin-block problem
that is `e/(e − 1)`-competitive against an oblivious adversary. -/
theorem ratio_attained (C : ℝ) (hC : 0 < C) :
∃ A : RandomizedAlg C, A.IsCompetitive (Real.exp 1 / (Real.exp 1 - 1)) := by sorry
end NonuniformCompetitive.SpinBlock
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), p. 559, Theorem 10, second claim (attainment); pp. 559–560, proof
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.