An algorithm for pavement usage calculation

Posted by student on Stack Overflow See other posts from Stack Overflow or by student
Published on 2010-06-13T18:34:05Z Indexed on 2010/06/13 18:42 UTC
Read the original article Hit count: 340

Filed under:
|

Given an area of specific size I need to find out how many pavement stones to use to completely pave the area. Suppose that I have an empty floor of 100 metre squares and stones with 20x10 cm and 30x10 cm sizes. I must pave the area with minimum usage of stones of both sizes. Anyone knows of an algorithm that calculates this?

(Sorry if my English is bad)

C# is preferred.

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about homework