Re: Reducing the Knapsack Problem to the Bin Packing Problem



Reducing the Bin Packing problem to the Knapsack problem seems to be
much easier. I would implement g(A, B, $) using f as follows:

Let W equal the sum of $(x), x in A. If f(A, $, $, B, W) = 1, then it
is possible to pack all the objects in A into the knapsack of size B
since the total worth of the items in the knapsack is W and W is the
sum of the sizes of the objects in A. This is equivalent to saying
that one can pack the objects in A into B bins.

Am I right?


.



Relevant Pages

  • Re: Rucksack - British English?
    ... metal frame. ... I don't think backpack had entered BrE at that time. ... pack", which does go on the back; since the gear includes pouches on ... after "knapsack." ...
    (alt.usage.english)
  • Re: Rucksack - British English?
    ... metal frame. ... I don't think backpack had entered BrE at that time. ... pack", which does go on the back; since the gear includes pouches on ... after "knapsack." ...
    (alt.usage.english)