in reply to Rectangle packing...
I'll leave the ... as an exercise for others :))if($picture->size() eq "8x10") { # it's the only one that'll fit on 8.5x11 $picture->print(); return; } ...
Seriously, that's an interesting problem; I'm looking forward to seeing the answers.
Edit:Did a bit of searching on google, with no luck until I followed the advice below and tried "two dimensional knapsack". But I did come across a commercial library, altough that looks targeted at much more generalized versions of the problem than yours...
--
Mike
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Rectangle packing...
by RMGir (Prior) on Apr 22, 2002 at 15:16 UTC | |
Re: Re: Rectangle packing...
by Anonymous Monk on Apr 23, 2002 at 01:32 UTC |