Re: o-1 Knapsack problem
- From: Andrey Goder <agoder@xxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 00:42:02 -0800
Radha wrote:
n objects x1...xn, each having weight wi and profit pi, are to be
placed into a sack with capacity M. Can somebody please help me write a
algorithm that determines which objects should be placed in the sack
inorder to maximize the profit.
Try all possible subsets, and pick the one with the most profit.
.
- Follow-Ups:
- Re: o-1 Knapsack problem
- From: Radha
- Re: o-1 Knapsack problem
- References:
- o-1 Knapsack problem
- From: Radha
- o-1 Knapsack problem
- Prev by Date: Re: permutation of L
- Next by Date: Re: CFG for L(G) and L(G')
- Previous by thread: o-1 Knapsack problem
- Next by thread: Re: o-1 Knapsack problem
- Index(es):
Relevant Pages
|