brute_force_knapsack: Kanpsack Bruteforce

Description Usage Arguments Details Value References

View source: R/brute_knapsack.R

Description

This is a brute force algorthm which check all possible combinations

Usage

1

Arguments

x

is a data frame represents the total items, containing the two columns w and v, w represents thw weight of item and v represnets the value

W

is an integer that represents the maximum weight of the container

parallel

It's for the code to run on multiple cores of a computer to excute the code faster

Details

Knapsack

Value

It return the list, which the total value of item in knapsack and their position in the data frame

References

https://en.wikipedia.org/wiki/Knapsack problem#0.2F1 knapsack problem


zahrajalilpour292/knapsack_package documentation built on Nov. 10, 2020, 1:28 a.m.