Description Usage Arguments Value
View source: R/brute_force_knapsack.R
brute_force_knapsack function to solve the knapsack problem
1 | brute_force_knapsack(x, W, parallel = FALSE)
|
x |
, is the input weight |
W |
, is the input value |
parallel, |
using parallel processing or not |
list , returns a list that contain the maximum value and the list of elements chosen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.