<?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="Optimal binary search tree - Page 5 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=optimal_binary_search_tree&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=optimal_binary_search_tree&amp;p=6">3.Next</a>
</p>
<p>an element strictly greater than . These  probabilities cover all possible searches, and therefore add up to one.</p>

<p>The static optimality problem is the <a href="page.php?w=optimization_problem">optimization problem</a> of finding the binary search tree that minimizes the expected search time, given the  probabilities. As the number of possible trees on a set of  elements is , which is exponential in , <a href="page.php?w=brute-force_search">brute-force search</a> is not usually a feasible solution.</p>

<p><big> Knuth's dynamic programming algorithm </big></p><p>
<a accesskey="1" href="page.php?w=optimal_binary_search_tree&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=optimal_binary_search_tree&amp;p=6">3.Next</a>
</p>

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

</card>
</wml>
