Description Usage Arguments Value
This function takes the values and weights provided in a data frame and finds the largest possible sum of values that is less than or equal to the inputed weight by ordering each element by value per weight.
1 | greedy_knapsack(x, W)
|
x |
data frame |
W |
positive numeric value |
The output will be a numerical value(the largest possible sum) and the corresponding numerical elements that make that sum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.