optimizing Subdivision of rectangular area into regular shaps



i want to know is there an algorithm to optimize the division of a rectangular surface area into a number of predefined shaps such that we choose the shaps that will get the minimum loss in area of the rectangular area

and if there is one please tell me its name
or where can i get it or how can i solve this problem if there is no one
.