TOPICS
Search

Competitive Ratio


The competitive ratio of an online algorithm measures its worst-case performance relative to an optimal algorithm that knows the entire input in advance. For a cost-minimization problem, let A(sigma) be the cost incurred by an online algorithm on a finite input sequence sigma, and let OPT(sigma) be the minimum cost achievable with advance knowledge of sigma. The online algorithm is c-competitive if

 A(sigma)<=cOPT(sigma)+beta,

where beta is a constant independent of sigma, though it may depend on the initial state. The competitive ratio is the infimum of the admissible values of c. Strict competitiveness requires beta=0 (Borodin and El-Yaniv 1998).

For a randomized online algorithm, the comparison uses the expected value of the cost. The resulting competitive ratio depends on the adversary model, including whether the adversary can adapt future inputs to the algorithm's random choices. Thus deterministic and randomized competitive ratios need not agree.

The deterministic k-server problem asks for an online algorithm whose competitive ratio is k on every metric space with at least k+1 points.


See also

Algorithm, k-Server Problem, Online Algorithm, Work Function Algorithm

Explore with Wolfram|Alpha

References

Borodin, A. and El-Yaniv, R. Online Computation and Competitive Analysis. Cambridge, England: Cambridge University Press, 1998.

Cite this as:

Weisstein, Eric W. "Competitive Ratio." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CompetitiveRatio.html

Subject classifications