in reply to Rectangle packing...

since you have such a small problem set, i believe you should solve this problem once (even by hand,) then code the results to a lookup table. my example shows the direction of each photo('L'andscape or 'P'ortrait), and the number (via repetition,) but not the location:

it's an interesting problem to solve computationally, but it seems best left as an excersize.

3.5x54x65x78x10
P
LL
PPL
PLP
PPPP
...

~Particle ;Þ

Replies are listed 'Best First'.
Re: Re: Rectangle packing...
by suaveant (Parson) on Apr 22, 2002 at 14:45 UTC
    Yeah... I've already started down that path... in that case I just have to work out something that finds the best combo for all the images I have to get them to fit in the least pages, which I know I can do... won't be fun, but will be a lot easier :)

                    - Ant
                    - Some of my best work - (1 2 3)