in reply to Computer science Problem - single dimension bin packing
This sounds like the knapsack problem problem to me, which is indeed NP-hard. If you search CPAN for "knapsack", there's a few modules that may be of help.
That said, for many of these problems, it's only finding an optimal solution that's NP-hard (or worse). Finding a good solution may be much easier (speaking in terms of computational complexity), depending of course on the precise constraints on what constitutes a "good" solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Computer science Problem - single dimension bin packing
by ikegami (Patriarch) on Aug 14, 2014 at 16:18 UTC | |
|
Re^2: Computer science Problem - single dimension bin packing
by davis (Vicar) on Aug 14, 2014 at 16:14 UTC | |
by AppleFritter (Vicar) on Aug 14, 2014 at 16:19 UTC | |
by ikegami (Patriarch) on Aug 14, 2014 at 17:11 UTC | |
by AppleFritter (Vicar) on Aug 14, 2014 at 17:13 UTC | |
by davis (Vicar) on Aug 14, 2014 at 16:16 UTC |