greedy_knapsack: greedy_knapsack

Description Usage Arguments Value

View source: R/greedy_knapsack.R

Description

greedy_knapsack function to solve the knapsack problem

Usage

1

Arguments

x

, is the input weight

W

, is the input value

Value

list , returns a list that contain the maximum value and the list of elements chosen


Philhoels/AdvRLab6 documentation built on May 22, 2019, 2:16 p.m.