next up previous
Next: Up: Previous:

KNAPSACK is NP-Complete

Proof: We will show that the KNAPSACK problem is NP-complete by polynomial-time restricting it in a way that makes it equal to the PARTITION problem, or PARTITION $\leq_P$ spec(KNAPSACK).

We can restrict KNAPSACK to PARTITION by allowing only instances in which s(u) = v(u) for all \(u \in U\) and \(B = K = 1/2 \sum_{u \in U} s(u)\).


next up previous
Next: Up: Previous: