English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Use the first fit (FF) bin packing algorithms to pack the following weights into bins that can hold no more than 8 lbs.

5 lbs, 7lbs, 1 lbs,2 lbs, 4 lbs, 5 lbs, 1 lbs, 1 lbs, 3 lbs, 6 lbs, 2 lbs,

2007-03-03 04:01:40 · 1 answers · asked by Eugene D 1 in Science & Mathematics Mathematics

1 answers

[5,1,2] [7,1] [4,1,3] [5,2] [6]

The 5, 7, 4, 5, and 6 will each have to go into a bin of their own. After that, it hardly matters how you fit the rest in. This is a simple scan the list, drop the item in the first bin that will hold it.

2007-03-03 04:16:53 · answer #1 · answered by Philo 7 · 0 0

fedest.com, questions and answers