Skip to content

to find the optimal weight of bag of 20 kg having highest significance,, This program use random list depends upon the choice of user

Notifications You must be signed in to change notification settings

ZeeshanKhalid2k01/Knapsack-Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knapsack-Problem

To find the optimal weight of bag of 20 kg having highest significance,, This program use random list depends upon the choice of user

How to run the program

Use any python compiler

For Easiness first give (3-10) value as input

Because this program does alot of Binary comparisons, therefore the program goes through alot of decisions. And it is helpfull to new user to enter such these small values to visualize the comparison tasks

NOTE:

After processing phase, if input is bigger. The program still needs some time to generate Output

Output:

Given in the file named Knapsack.docs