knapsack_dynamic: Dynamic programming in in knapsack problem

Description Usage Arguments Value

View source: R/lab06.R

Description

Dynamic programming in in knapsack problem

Usage

1

Arguments

x

A dataframe with two columns: the values (v) and the weights (w) of each item to put in the knapsack.

W

A positive number representing the knapsack size.

Value

A list of two elements: a positive number with the maximum knapsack value and a vector of all the elements in the knapsack size.


josme478/lab06 documentation built on Nov. 4, 2019, 3:21 p.m.