This is the package for lab 6 of course Advanced R Programming This package contain knapsack objects and three functions:
devtools::install_github('DucDuong92/Lab6R')
data("knapsack_objects")
brute_force_knapsack(x = knapsack_objects[1:8,], W = 3500)
brute_force_knapsack(x = knapsack_objects[1:16,], W = 3500, parallel = TRUE)
dynamic_knapsack(x = knapsack_objects[1:8,], W = 3500)
greedy_knapsack(x = knapsack_objects[1:8,], W = 3500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.