Wednesday, August 17, 2011

What is the algorithm for the next-fit?

This is for bin packing right? I'm pretty sure "next-fit" is a straightforward algorithm where you run through the elements, if it fits in the last bin, put it there, otherwise open a new bin. Fast, but probably not the most effective.

No comments:

Post a Comment