Description Usage Arguments Value References
View source: R/brute_force_knapsack.R
Returns the maximum value given the capacity of knapsack by looking through every possible alternatives.
1 | brute_force_knapsack(x, W, parallel = FALSE)
|
x |
A |
W |
the maximum capacity of the knapsack. |
parallel |
|
A list
containing the maximum value and the elements.
en.wikipedia.org/wiki/Knapsack_problem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.