greedy_knapsack: greedy_knapsack

Description Usage Arguments Value References

View source: R/greedy_knapsack.r

Description

Knapsack Problem using the greedy approach

Usage

1

Arguments

x

value

W

weight

Value

A list giving total no of objects and the maximum weight it can hold

References

'https://en.wikipedia.org/wiki/Knapsack_problem' order data decrasely by value(i)/weight(i) Problem: value(i)/weight(i) is equal but value(i) is not equal should order decreasely by value(i) too. print(new_data)


menon1234/Lab06 documentation built on Nov. 4, 2019, 6:25 p.m.