knapsack problem
Solve a simple knapsack problem (Goal is to maximize the profit)
knapsack(n, capacity, profit, size)
n
: number of itemscapacity
: total capacity of carrying weightprofit
: profit corresponding to each itemsize
: weight/size of each itemUseful links