Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有不同尺寸(正方形)的盒子。我有一个大盒子(不是正方形)。我不能保证我所有的盒子都适合,但我需要尝试以非迭代的方式尽可能地适合而不重叠。什么算法允许这种非迭代的盒子包装?
这是Bin Packing Algorithm,演示,从 biggets 到最小尺寸开始并尝试搜索该位置。