Math 2.0

Computer science Algorithms as mathematical objects Concept

Online algorithm and competitive analysis

Summary

An online algorithm receives its input one piece at a time and must act on each piece before it sees the next one. Competitive analysis measures such an algorithm by comparing its cost with the cost of an optimal offline algorithm that knows the whole input in advance. The worst ratio of the two costs, over all inputs, is the competitive ratio. Standard examples are paging, where the least-recently-used rule is kk-competitive for a cache of kk pages, and the ski rental problem.

Further reading

  1. Web https://en.wikipedia.org/wiki/Competitive_analysis_(online_algorithm)
  2. Web https://en.wikipedia.org/wiki/Online_algorithm
About this page
Tag6KWDEYZ88A
URIm2://6KWDEYZ88A
Kindconcept
WritingW0 stub
MSC68W27, 68W40, 68Q25
SpecializesAlgorithm
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Definitions