knapsack-package: Solves knapsack problems using different methods

Description Details Author(s) References Examples

Description

The knapsack packages provides three different functions for solving the well-known discrete optimization problem called the knapsack problem. The three functions are brute force search, dynamic programming and greedy heuristics, which can be used to add objects (where each object has a weight w and value v) to the knapsack and maximize the value without exceeding the limited weight W of the knapsack. Also, the knapsack package contains a data set with 2000 knapsack objects, to be optimized by one of the three functions.

Details

The DESCRIPTION file: This package was not yet installed at build time.

Index: This package was not yet installed at build time.
SHOW SOME FUNCTIONS

Author(s)

Sofie Jörgensen, Henrik Olofsson

Maintainer: Sofie Jörgensen <sofjo281@student.liu.se>, Henrik Olofsson <henol528@student.liu.se>

References

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

Examples

1
2
3
4
5

sofiejorgensen/knapsack documentation built on Oct. 16, 2020, 2:51 a.m.