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.