Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Online algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Definition == Because it does not know the whole input, an online algorithm is forced to make decisions that may later turn out not to be optimal, and the study of online algorithms has focused on the quality of decision-making that is possible in this setting. [[Competitive analysis (online algorithm)|Competitive analysis]] formalizes this idea by comparing the relative performance of an online and offline algorithm for the same problem instance. Specifically, the competitive ratio of an algorithm, is defined as the worst-case ratio of its cost divided by the optimal cost, over all possible inputs. The competitive ratio of an online problem is the best competitive ratio achieved by an online algorithm. Intuitively, the competitive ratio of an algorithm gives a measure on the quality of solutions produced by this algorithm, while the competitive ratio of a problem shows the importance of knowing the future for this problem. === Other interpretations === For other points of view on ''online inputs to algorithms'', see * [[streaming algorithm]]: focusing on the amount of memory needed to accurately represent past inputs; * [[dynamic algorithm]]: focusing on the time complexity of maintaining solutions to problems with online inputs. === Examples === Some ''online algorithms'': *[[Insertion sort]] *[[Perceptron]] *[[Reservoir sampling]] <!-- check: --> * [[Greedy algorithm]] * [[Adversary (online algorithm)|Adversary model]] * [[Metrical task systems]] * [[Odds algorithm]] * [[Page replacement algorithm]] * [[Algorithms for calculating variance]] * [[Ukkonen's algorithm]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)