Description brute_force_knapsack function dynamic_knapsack function greedy_knapsack fucntion

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.