<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Competitive analysis (online algorithm) - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=competitive_analysis_(online_algorithm)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=competitive_analysis_%28online_algorithm%29&amp;p=3">3.Next</a>
</p>
<p> Unlike traditional <a href="page.php?w=Best%2C_worst_and_average_case">worst-case analysis</a>, where the performance of an algorithm is measured only for "hard" inputs, competitive analysis requires that an algorithm perform well both on hard and easy inputs, where "hard" and "easy" are defined by the performance of the optimal offline algorithm.</p>

<p>For many algorithms, performance is dependent not only on the size of the inputs, but also on their values.  For example, sorting an array of elements varies in difficulty depending on the</p><p>
<a accesskey="1" href="page.php?w=competitive_analysis_(online_algorithm)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=competitive_analysis_%28online_algorithm%29&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
