Associate
- Joined
- 8 Oct 2006
- Posts
- 1,236
Hi all,
As usual i left things to the last minute, ive got a python program to hand it for tomorrow and really need some ideas to get me started if possible.
So basically, its a program that packs items into containers. A containers capacity is 20 units of weight, and each item of course is <= 20.
Each item is in turn to be allocated to the first container it will fit into.
The containers will be represented as a list, and a new container (20 units) will be added to the list if the item cannot be put into any of the currrent containers.
It should take 2 parameters, the list of container weights, and an item weight.
The output, is the number of the first container to accomodate the item, such as "Container 1" or "Container 2" etc etc.
Just looking for some help please, if you cant understand some of the problem, just let me know.
Also, if anyone could help anytime after 6pm today over msn, it would really be great. Please pm for addy.
Thanks,
Digi
As usual i left things to the last minute, ive got a python program to hand it for tomorrow and really need some ideas to get me started if possible.
So basically, its a program that packs items into containers. A containers capacity is 20 units of weight, and each item of course is <= 20.
Each item is in turn to be allocated to the first container it will fit into.
The containers will be represented as a list, and a new container (20 units) will be added to the list if the item cannot be put into any of the currrent containers.
It should take 2 parameters, the list of container weights, and an item weight.
The output, is the number of the first container to accomodate the item, such as "Container 1" or "Container 2" etc etc.
Just looking for some help please, if you cant understand some of the problem, just let me know.
Also, if anyone could help anytime after 6pm today over msn, it would really be great. Please pm for addy.
Thanks,
Digi
Last edited: