| A | | B | | C | | D |

|------| |---| |---| |---|

Now above are the figures you gave A(rectangle) B,C,D(squares) right? suppose you have a larger rectangle F.

Here are some of the questions:

1. F will always change it's size and position?

2. A,B,C,D has to perfectly fit in F? or partially will do?

3. Do you need to fill F completely? or some open space will do?

4. overlap of A,B,C,D is ok? or there shouldn't be any overlap?

Final question, do you need logic for filling F? or you need logic for creating F also?

I may be able to think if you answer these questions.. thanks.

Jamanat