The following optimization problem is called the knapsack problem:
with each x j equal to 0 or 1, with all (a j, c j, b) usually taken to be positive integers. The name is due to interpreting the problem as one in which a camper has a knapsack which can carry up to b pounds. The camper has a choice of packing up to n items, with x j = 1 if the item is packed and x j = 0 if the item is not packed. Item j weighs a j pounds. Each item has a “value” c j to the camper if it is packed. The camper wishes to choose that collection of items having the greatest total value subject to the weight condition. The knapsack problem arises in many applications such as selecting a set of projects and as a subproblem of other problems. It can be solved by dynamic programming or by integer-programming methods. If the x j are ordered such that c 1/a 1 ≥ c 2/a 2 ≥ ⃛ ≥ c n/a n and the integer restrictions on the variables are replaced by 0 ≤ x j≤ 1, then an optimal solution to the relaxed problem is to...
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Kluwer Academic Publishers
About this entry
Cite this entry
Gass, S.I., Harris, C.M. (2001). Knapsack problem . In: Gass, S.I., Harris, C.M. (eds) Encyclopedia of Operations Research and Management Science. Springer, New York, NY. https://doi.org/10.1007/1-4020-0611-X_500
Download citation
DOI: https://doi.org/10.1007/1-4020-0611-X_500
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-7923-7827-3
Online ISBN: 978-1-4020-0611-1
eBook Packages: Springer Book Archive