greedy_knapsack: Greedy Knapsack

Description Usage Arguments Value References

View source: R/greedy_knapsack.R

Description

Implementation of knapsack problem using greedy algorithm.

Usage

1

Arguments

x

data.frame

W

integer (maximum weight fitting in the knapsack)

Value

Returns a list object containing value and elements information.

References

https://en.wikipedia.org/wiki/Knapsack_problem#0.2F1_knapsack_problem


senseiyukisan/732A94-Lab6 documentation built on Oct. 18, 2020, 5:39 a.m.