Sixth lab of the course Advanced R Programming!
The package contains three different functions for solving the so-called knapsack problem, which is considered NP-hard.
It is basically an optimization problem where a knapsack of limited weight has to be filled with a number of items of different value and weight, aiming to have the highest total value at the end.
It is an open (Millennium Prize) problem, whether it is or is not possible to solve these problem in polynomial time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.