<?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="Greedy algorithm - Page 1 - Wikipedia">
<p>
<a accesskey="3" href="page.php?w=greedy_algorithm&amp;p=2">3.Next</a>
</p>
<p>A <b>greedy algorithm</b> is an <a href="page.php?w=algorithm">algorithm</a> which, at each step, makes the choice that is locally optimal, and subsequently does not reconsider past choices. Greedy algorithms are often used to solve <a href="page.php?w=combinatorial_optimization">combinatorial optimization</a> problems. If an optimization problem only depends on the partial solution of solving it for one subproblem, we can solve this problem by "greedily" considering only the locally optimal subproblem. In this sense, a greedy algorithm is a</p><p>
<a accesskey="3" href="page.php?w=greedy_algorithm&amp;p=2">3.Next</a>
</p>

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

</card>
</wml>
