<?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="NP (complexity) - Page 10 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=NP_(complexity)&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=NP_%28complexity%29&amp;p=11">3.Next</a>
</p>
<p>time, and the subset sum problem is therefore in NP.</p>

<p>The above example can be generalized for any decision problem. Given any instance I of problem  and witness W, if there exists a verifier V so that given the ordered pair (I,&nbsp;W) as input, V returns "yes" in polynomial time if the witness proves that the answer is "yes" or "no" in polynomial time otherwise, then  is in NP.</p>

<p>The "no"-answer version of this problem is stated as: "given a finite set of integers, does every non-empty subset have a nonzero sum?". The verifier-based</p><p>
<a accesskey="1" href="page.php?w=NP_(complexity)&amp;p=9">1.Previous</a><br />
<a accesskey="3" href="page.php?w=NP_%28complexity%29&amp;p=11">3.Next</a>
</p>

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

</card>
</wml>
