Lab6R: This is the package for R lab 6 This package contain 3 function:
Use brute force approach to solve the knapsack problem. The result is a list that contain the maximum value and the list of elements chosen
The same with the previous function, but use dynamic approach to solve the problem
The same with the first function, but use greedy approach to solve the problem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.