image thumbnail

0-1 Knapsack

version 1.4.0.0 (2.92 KB) by Petter
Solves the 0-1 knapsack problem with positive integer weights.

6.7K Downloads

Updated 12 Feb 2009

View License

Uses dynamic programming to solve the problem, see for example http://en.wikipedia.org/wiki/Knapsack_problem .

Cite As

Petter (2021). 0-1 Knapsack (https://www.mathworks.com/matlabcentral/fileexchange/22783-0-1-knapsack), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!