Re: More printf problems 2
- Posted by Michael Packard <lgp at EXO.COM> Nov 13, 1997
- 760 views
On Wed, 12 Nov 1997, Arthur Adamson wrote: > In the same vein, in answer to Matt's item-sum question, I have just > completed a prog which will: > > 1. Given a pile of boxes of varying weights (random variation). > 2. Given a fleet of trucks of given carrying capacity (all the same). > 3. Sort the boxes into truck-loads with the weight approaching but not > exceeding the truck capacity. > > It runs fast (a few seconds for 500 boxes, 6 trucks) and finds > "good" answers in the Ralf sense. That I can see would be a useful program. Of course, you'd need to have the boxes varying sizes too to be totally useful. You NEVER have the right sized box for something. =) Michael We still need a boxing game.