Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Knapsack details
Login with GitLab

Knapsack

0-1 Knapsack Problem
(269 downloads for this version - 280 downloads for all versions)
Details
Version
1.1.1
Author
Nimish Kapoor
Maintainer
Nimish Kapoor
Categories
License
Creation Date
March 8, 2018
Source created on
Scilab 6.0.x
Binaries available on
The maintainer of this module has not provided binaries.
Description
            Given weights and values of n items, put these items in a knapsack of capacity
Wt to get the maximum total value in the knapsack.

Download and Extract knapSack.zip

cd to the knapSack Folder

-->exec loader.sce

-->knapSack(No of Elements,Capacity,[Weight Array],[Value Array])

Example

-->knapSack(3,50,[10,20,30],[60,100,120])
 ans  =

   220.            
Files (1)
[35.33 kB]
Source code archive

News (0)
Comments (0)
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.