0-1 Knapsack

Version 1.4.0.0 (2.92 KB) by Petter
Solves the 0-1 knapsack problem with positive integer weights.
7.1K 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 (2024). 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!
Version Published Release Notes
1.4.0.0

Updated the help description. Decreased the number of published files.

1.3.0.0

Added published demonstration file and fixed a bug

1.1.0.0

Fixed Wikipedia link

1.0.0.0