<?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="Subset sum problem - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Subset_sum_problem&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subset_sum_problem&amp;p=3">3.Next</a>
</p>
<p>in which all inputs are positive.<br/>
* The variant in which inputs may be positive or negative, and . For example, given the set , the answer is yes because the subset  sums to zero. <br/>
* The variant in which all inputs are positive, and the target sum is exactly half the sum of all inputs, i.e.,  .  This special case of SSP is known as the <a href="page.php?w=partition_problem">partition problem</a>.</p>

<p>SSP can also be regarded as an <a href="page.php?w=optimization_problem">optimization problem</a>: find a subset whose sum is at most</p><p>
<a accesskey="1" href="page.php?w=Subset_sum_problem&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Subset_sum_problem&amp;p=3">3.Next</a>
</p>

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

</card>
</wml>
