Description Usage Arguments Value References
View source: R/brute_force_knapsack.R
brute_force_knapsack
1 | brute_force_knapsack(x, w, parallel = FALSE)
|
x |
A DataFrame with two columns (weight(w) and value(v)) |
w |
Sack max weight capacity |
parallel |
default = FALSE |
returns item with maximized value within knapsack weight limit
https://en.wikipedia.org/wiki/Knapsack_problem#Dynamic_programming_in-advance_algorithm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.