knapsackprobleem
The knapsackprobleem, known in English as the knapsack problem, is a classic optimization problem in combinatorial optimization. Given a set of items i with weights w_i and values v_i, and a knapsack with capacity W, the task is to select a subset of items whose total weight does not exceed W and whose total value is maximized. In Dutch literature the term knapsackprobleem is commonly used to refer to this problem.
The problem has several variants. In the 0/1 knapsack problem, each item can be chosen at most
Complexity and methods: The 0/1 version is NP-hard, and the decision version is NP-complete. A dynamic programming
Applications of the knapsackprobleem include resource allocation, budgeting, project selection, cargo loading, and portfolio optimization. It
Historically, the problem has been studied since the mid-20th century and remains a fundamental example in