0-1 Knapsack

Version (2.92 KB) by Petter
Solves the 0-1 knapsack problem with positive integer weights.
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

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

Added published demonstration file and fixed a bug

Fixed Wikipedia link