Is there a proof that tiling an n*m rectangle with squares using Euclid's algorithm (that is always choose the biggest square that fits in the remaining space) results in a minimum sum of the sizes (length of one side) of the resulting squares?
Answer
Let's call "sum of the sizes (length of one side)" as SS. And we assume that m<n as for a square all is clear.
- It's not hard to prove that SS(m,n) of euclidean algo is m+n−gcd(m,n)
- We are to prove that it's the minimum of SS(m,n). We'll succeed in it if we prove that the biggest size of tiles for optimum tiling is m.
- If it's not true we can assign 4 distinctive squares for every corner correspondingly.
- Let's now count the perimeter of the rectangle. We consider only those squares which are adjacent to the border:
2(m+n)=∑agjacentli+∑cornerlj,
last sum contains the sizes of 4 squares assigned to the corners. Ok, then we get:
2(m+n)≤∑all squaresli+∑cornerlj≤∑all squaresli+2m,
as "corneric" squares are paired and every pair have total size ≤m
∑all squaresli≥2n≥n+m−gcd(n.m).
The covering is not optimal. Contradiction.
No comments:
Post a Comment