<?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="Time complexity - Page 10 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=time_complexity&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=time_complexity&amp;p=11">3.Next</a>
</p>
<p>take logarithmic time, as the time taken for reading an input of size  is of the order of .</p>

<p>An example of logarithmic time is given by dictionary search. Consider a <a href="page.php?w=Dictionary_%28data_structure%29">dictionary</a>  which contains  entries, sorted in <a href="page.php?w=alphabetical_order">alphabetical order</a>. We suppose that, for , one may access the th entry of the dictionary in a constant time. Let  denote this th entry. Under these hypotheses, the test to see if a word  is in the dictionary may be done in logarithmic</p><p>
<a accesskey="1" href="page.php?w=time_complexity&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=time_complexity&amp;p=11">3.Next</a>
</p>

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

</card>
</wml>
