I'm wondering, are there any algorithms or theories in existence (that aren't patented/proprietary/protected) that would take a series of 3d rectangular prisms (or cubes but a cube is a prism) and stacks them in such a way as they form another cube or fit together in the best possible format?
I'm working on logistics software at work and this might be an interesting feature.
I'd also accept good articles that discuss the theory of this, if an algorithm isn't already available for me to look at and study.