Knapsack problem: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Added some very simple descriptive text)
m (category)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Knapsack problems are ones where the goal is to maximize some value subject to a set of constraints. Though the [[/Continuous|continuous case]] is very simple, the discrete cases are NP-complete problems.
In a knapsack problem, the goal is to maximize some value subject to a set of constraints. Though the [[/Continuous|continuous case]] is very simple, the discrete cases are NP-complete.


See:
See:
Line 6: Line 6:
* [[Knapsack problem/0-1]]
* [[Knapsack problem/0-1]]
* [[Knapsack problem/Continuous]]
* [[Knapsack problem/Continuous]]

[[Category:Puzzles]]

Latest revision as of 22:23, 10 February 2013

In a knapsack problem, the goal is to maximize some value subject to a set of constraints. Though the continuous case is very simple, the discrete cases are NP-complete.

See: