There's a game for iOS, Unblock Me, that takes a given grid/board and subdivides that grid into blocks of different sizes and shapes.
Could someone give me a push as to what the algorithm to accomplish such a task would look like? Given a grid, subdivide the grid into smaller pieces, like the blocks in Unblock Me but also include squares as well as rectangles. I still want to figure it out myself but I'm having some trouble getting started.
EDIT:
Also ideally the solution would leave no empty space within the original grid, it would have been subdivided in such a way that all spots are being used given a certain # of subdivisions.