<?xml version="1.0" encoding="windows-1252"?>
<node id="40308" title="Re: Packaging Algorithm" created="2000-11-07 01:57:45" updated="2005-07-21 01:21:58">
<type id="11">
note</type>
<author id="20087">
extremely</author>
<data>
<field name="doctext">
There isn't an answer to this one. There are some strategies
for doing this with restrained box sizes but the general
case you describe isn't actually solvable. At least no one
has yet. (of course, there may be some genius out there
that just broke NP-complete problems too but...)
&lt;p&gt;I've not heard of anyone solving this or any related 2d
or 3d problem.
&lt;p&gt;The balance problem, aka tape-sides is a good simpler
example. Given a set of weights (or a set of song lengths)
divide them into two sets that have the least difference
in weight (length)
&lt;p&gt;There are a lot of nice strategies but they all have nasty
cases that don't work.  Exaustively trying every case is
the only hope. The best bet is to minimize the cases you
have to exhaust. Force everything to inch(cm) boundries,
move boxes on the same. Pack things around the largest
volume item, etc.
&lt;p&gt;Really, not to discourage you too much, it might be a
good idea to start on something a bit simpler, like curing
cancer. =)
&lt;p&gt;&lt;i&gt;-- &lt;br&gt;
$you = new YOU;&lt;br&gt;
honk() if $you-&gt;love(perl)&lt;/i&gt;</field>
<field name="root_node">
40304</field>
<field name="parent_node">
40304</field>
</data>
</node>
