0-1 Knapsack
Version 1.4.0.0 (2.92 KB) by
Petter
Solves the 0-1 knapsack problem with positive integer weights.
Uses dynamic programming to solve the problem, see for example http://en.wikipedia.org/wiki/Knapsack_problem .
Cite As
Petter (2026). 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 LinuxCategories
Find more on Particle Swarm in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
