knapsack problem
knapsack problem
[′nap‚sak ‚präb·ləm]knapsack problem
(application, mathematics)The 0/1 knapsack problem restricts the number of each items tozero or one.
Such constraint satisfaction problems are often solved usingdynamic programming.
The general knapsack problem is NP-hard, and this has led toattempts to use it as the basis for public-key encryptionsystems. Several such attempts failed because the knapsackproblems they produced were in fact solvable bypolynomial-time algorithms.