in reply to Re: Challenge: Twist On Bin Packing
in thread Challenge: Twist On Bin Packing
Starting with the first mug, fill it as close to the top as you can without over filling or without leaving any beer in the can. Move on to the second mug and repeat the process. The goal being to choose the grouping of cans such that you end up with the most number of mugs and not the least.
I am not sure if your algorithm works but given its simplicity I hope so. I will set something up to brute-force this weekend and compare the results to your approach.
Update: As you can see, this approach fails with a bin size of 10 and an input list of 1,1,1,2,2,3,4,6,7,7
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Challenge: Twist On Bin Packing
by moklevat (Priest) on Apr 07, 2006 at 16:12 UTC |