greedy_knapsack: Greedy Heuristic

Description Usage Arguments Value References Examples

View source: R/greedy_knapsack.R

Description

Greedy Heuristic

Usage

1

Arguments

x

data.frame containing objects with weights w and values v as columns.

W

max weight of the knapsack

Value

a list with at least 50

References

https://en.wikipedia.org/wiki/Knapsack_problem#Greedy_approximation_algorithm

Examples

1
2

sofiejorgensen/knapsack documentation built on Oct. 16, 2020, 2:51 a.m.