offline algorithm

created by haggai
(thing) by haggai (10.1 mon) (print)   (I like it!) Sat Feb 22 2003 at 15:00:54

Really only used in contrast to online algorithm, as much of computer science routinely does not even consider online algorithms. Whereas an online algorithm is required to give various outputs during an input stream, it is frequently measured against the optimal algorithm to solve the "offline version" of the same problem. In competitive analysis, one tries to construct an online algorithm that is only worse than the offline algorithm by at most some (preferably small) constant.

In fact, the "offline" algorithm is more of an "omniscient" algorithm, since a possibly infinite input stream may never really be considered offline. The optimal offline algorithm is simply assumed always to choose the optimal input (such that the end result is optimal).

This approach stems from the same considerations as the worst case or adversarial model ubiquitous in complexity theory.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.