Saying I have shapes like these (made of a finite number of elementary 1cm*1cm squares):
Is there any algorithm to apply so I can fill these shapes with the least amount fo rectangles (besides listing all the fillings I could do and take the one with less rectangles)?
And what if the shape as holes in it?
All I found so far are just "be smart", but I would like to be able to let a computer do that. Thanks for the tips!
Image from http://static.studyladder.com/cdn/course/b3/2b1e1e9d0ed0.jpg

Not really an answer (or maybe yes), but too long for a comment.
It is important the filling to be minimal? If not, you can do the following.
I have tried some examples (by hand) and the results seems good.