What is the proper problem name / algorithm for this problem description in computer science theory?

后端 未结 2 2122
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 13:58

The problem is that I have X items of varying weighted values that must go into Y containers. The containers are of differing sizes (e.g. hold differing maximum weights). The to

2条回答
  •  遇见更好的自我
    2021-02-13 14:26

    If you map X to pictures of varying heights; and map Y to columns, then the solution given here should work for you too. It is a worst-fit bin packing solution with pre-sorting and additional item swapping coded in Python with examples.

提交回复
热议问题