Reputation: 9151
This is more an algorithm question than programming, but it's implemented in programming so I'm asking it here.
I have a set of given objects with different known dimensions and need to figure out the max of objects that can be put inside another volume of known dimensions. What algorithms exist to explore this problem other than a combinatorial brute-force approach?
Also, if I assume they are not arranged, how many will fit?
Another way to look at it:
Upvotes: 2
Views: 8840
Reputation: 258618
This is a classic CS problem - read the wiki entry on Knapsack problem.
Upvotes: 3