brute_force_knapsack: Title brute_force_knapsack

Description Usage Arguments Value

Description

this function is guaranteed to give a correct answer in all situations. The function enumerates all different combinations by using a binary representation of the numbers 1 to 2n and include all elements of that is equal to 1 in the binary representation.

Usage

1

Arguments

x

Data frame which consists the value and the weight for each object.

W

The knapsack size.

parallel

Gives the opportunity to use parallel programming,if parallel=TRUE.

Value

The functoin returns a list containing two named objects:


stasinak/Adv_R6 documentation built on May 14, 2019, 4:03 a.m.