I am searching an Algorithm for design a 2D map with a fixed tile set
I must resolve a problem such as Windows 8 UI
I means I have a set of rectangle tiles of different size, NO FRACTIONAL.
I have to compose a rectangle, using these tiles randomly.
The size of the map could be 10x10 as example.
Tiles size could be 1x1, 2x2, 4x2, 3x3, and so on
But the tiles could have some constraint:
-Some tiles could be used more than one but them have a max occurrence limit.
-Some tiles are mandatory.
-Some tiles have position constraints:
--some tiles are allowed only near a border (left, right, top, bottom)
--some tiles could be positioned only at [(x1,y1) or (x2,y2) or ...]
I think that is a "well known problem", at list without the constraint
Someone remember the name of a design pattern about it
or any other info to help me to find information about this algorithm?
Thank you
Riccardo