3 ms·
You might start with a greedy solution, i.e. take the biggest items first. Then explore other options as your google-fu hones in on good search terms for the pr
by verdverm 4y ago
You might start with a greedy solution, i.e. take the biggest items first. Then explore other options as your google-fu hones in on good search terms for the problem.
Bin packing is a good search tree to go down, but you have a layout problem as well.
The Algorithm Design Manual as a large index of problems and algos that can help in finding analogies to your given problem.