"be consistent" | |
PerlMonks |
Re: Challenge: Twist On Bin Packingby eric256 (Parson) |
on Apr 07, 2006 at 15:43 UTC ( [id://541889]=note: print w/replies, xml ) | Need Help?? |
So you are looking for a solution of bins where all bins are full (i.e. no available items will fit) and then the solution with the most bins. BTW There are many solutions to even just your example:
I think that is where some of the confusion is, we are used to shuffling the items to make them fit best, but in this case we don't want a best fit we want most bins. Do you have a meteric in mind for which of the solutions I just provided is best? ___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|