Description Usage Arguments Value References
View source: R/greedy_knapsack.R
Implementation of knapsack problem using greedy algorithm.
1 | greedy_knapsack(x, W)
|
x |
data.frame |
W |
integer (maximum weight fitting in the knapsack) |
Returns a list object containing value and elements information.
https://en.wikipedia.org/wiki/Knapsack_problem#0.2F1_knapsack_problem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.