Skip to content
#

knapsack

Here are 163 public repositories matching this topic...

There is a robot for a library.A sample input file is given below. The first 10 rows represent the adjacency matrix. Then, each room’s name is followed by weight and number of pages of books in 5 rooms. Knapsack algorithm is for maximaxing the total number of pages (it can pick total of 5 kilograms of books from 5 rooms )and Prim algorithm is used.

  • Updated Jun 5, 2019
  • Java

Improve this page

Add a description, image, and links to the knapsack topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the knapsack topic, visit your repo's landing page and select "manage topics."

Learn more