Skip to content
EntityQ786431· pop 16· linked from 143 articles

線上演算法

Sign in to save

algorith that can process its input piece-by-piece in a serial fashion, i.e., in the order that the input is fed to the algorithm, without having the entire input available from the start

Wikidata facts

Subclass of
algorithm
Show 2 more facts
topic's main category
Category:Online algorithms
different from
online and offline
Sources (4)

via Wikidata · CC0

Article · 中文

在電腦科學中,線上演算法是一種處理輸入資料的獨特形式,其演算過程中並不要求所有輸入資料在演算法開始運始之一刻即完備,反而可對逐步輸入的資料加以處理並在輸入完最後一項資料之後輸出運算結果。與之相對的稱為離線演算法,則假設輸入資料在運算開始前已完備。舉例:選擇排序是離線演算法,而插入排序則為線上演算法。 注意:插入排序始终生成一个最优的结果,也就是说一个正确排序的列表。然而对于很多问题,線上演算法的性能比不上离线算法(即无法取得最优的结果)。如果对于同一个问题的在线算法和最优化的离线算法的性能比率是有界的,那么这个在线算法被称作是competitive。 并非所有在线算法都有与之对应的离线算法。

Abstract from DBpedia / Wikipedia · CC BY-SA