brute_force_knapsack: The brute-force approach to solving the knapsack problem

Description Usage Arguments Value Source

View source: R/brute_force.R

Description

The brute-force approach to solving the knapsack problem

Usage

1

Arguments

cx

A data.frame containing items with weights and values

W

The weight limit of the knapsack.

Value

The total value of the fitted items, fitted items, and the time to run the algorithm.

Source

https://en.wikipedia.org/wiki/Knapsack_problem


AdelaidaK/Lab6AdvancedR documentation built on Dec. 17, 2021, 7:41 a.m.