|
|
|
|
|
|
|
|
CTK Exchange
mr_homm
Member since May-22-05
|
May-20-06, 11:59 AM (EST) |
|
"Rectangle on Chessboard"
|
Recently I was looking at this page, and I think I see a different approach to the proof. To start with, forget about rectangles. Take any compact shape A and slide it around on the chessboard, looking at the net (white - black) area it covers as a function of its position. For concreteness, let the origin of coordinates be at a grid point touching a white square in the first quadrant, and pick a specific point on the shape, such as its centroid, to get position coordinates. This is essentially the convolution (denoted by *) of two functions, 1A (defined to be 1 on A and 0 off A) and C (defined to be 1 on white squares and -1 on black squares). In fact, this (or rather the discrete version of this convolution) is how graphics programs apply smoothing to the pixels of an image. The result of B = 1A*C is a sort of "blurry chessboard", which has the same periodic structure as the original chessboard. This is obvious, because translating the shape A one square vertically or horizontally will reverse the sign of the net area, as black and white are interchanged; therefore the value of the convolution will also change sign with a period of 1 both vertically and horizontally. The amplitude max(B) of this convolution must be less than 1, since it represents the average value of C across the region A, and the max(C) is 1. This provides an alternate way to see that for ANY compact shape, the white area cannot exceed the black area by more than 1 square. If max(B) > 0, then there will be zero-crossings at unit intervals both vertically and horizontally, which will form a set of gridlines for this particular area A, dividing the plane into regions where B<0 and B>0. These gridlines need not coincide with those of the original chessboard, and they need not be straight, but might form the boundaries of a tesselation of "wavery squares." Then the net area in A can be zero only if the centroid of A lies on one of these gridlines. If max(B) = 0, then B is identically zero, then A can be translated infinit'simally in either the vertical or horizontal direction without affecting the net area. For e.g. vertical translation, this means that the net area swept by the upper and lower boundaries is identical. (Upper and lower boundaries means those sections of the boundary where the outward pointing normal has positive (resp. negative) vertical component.) Now specialize both these cases to a rectangle. In the max(B)>0 case, because the rectangle is symmetrical vertically and horizontally, the gridlines must lie exactly halfway between the centers of the chessboard squares, i.e. they coincide with the chessboard's own gridlines. In the max(B)=0 case, the net LINEAR amounts of black and white must be identical on the top and bottom sides of the rectangle. Since the signs of these will reverse when these sides sweep across a gridline, both top and bottom sides must smeet gridlines simultaneously. Hence the rectangle must be exactly an even number of squares high (or wide, in the case of horizontal translation.) --Stuart Anderson
|
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
alexb
Charter Member
1845 posts |
May-20-06, 05:43 PM (EST) |
|
2. "RE: Rectangle on Chessboard"
In response to message #0
|
>Now specialize both these cases to a rectangle. In the >max(B)>0 case, because the rectangle is symmetrical >vertically and horizontally, the gridlines must lie exactly >halfway between the centers of the chessboard squares, i.e. >they coincide with the chessboard's own gridlines. In the >max(B)=0 case, the net LINEAR amounts of black and white >must be identical on the top and bottom sides of the >rectangle. Since the signs of these will reverse when these >sides sweep across a gridline, both top and bottom sides >must smeet gridlines simultaneously. Hence the rectangle >must be exactly an even number of squares high (or wide, in >the case of horizontal translation.) I can't say that I understood this reasoning. My problem is this: I do not see how, in the last paragraph, you distinguish betweeb EW and NS directions. The impression is that what applies to one, applies to the other. It's not the matter of "vertical or horizontal", but rather of "vertical and horizontal". |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
mr_homm
Member since May-22-05
|
May-20-06, 09:06 PM (EST) |
|
3. "RE: Rectangle on Chessboard"
In response to message #2
|
Hi Alex, >I can't say that I understood this reasoning. My problem is >this: I do not see how, in the last paragraph, you >distinguish betweeb EW and NS directions. The impression is >that what applies to one, applies to the other. It's not the >matter of "vertical or horizontal", but rather of "vertical >and horizontal". That's because I forgot to put in a crucial step. Earlier I had already distinguished between the cases max(B)>0 and max(B)=0, and in a similar way I wanted to distinguish between the cases where the net length L = (white length - black length) on the upper and lower sides was L>0 or L=0. In the first case, the grid crossing argument applies and forces the rectangular height to be a multiple of 2 squares. In the second case, there is after all no sign change as the top and bottom sides of the rectangle sweep across a gridline, so the height need not be a multiple of 2. However, in that case, L=0 forces the rectangle width to be a multiple of 2. There is something strangely asymmetrical about this reasoning, in that the cases L>0 and L=0 are treated by quite different logic, and yet produce a conclusion that is symmetrical upon interchange of vertical and horizontal. It makes me feel that there must be a smoother approach, because (symmetrical problem statement) --> (asymmetrical reasoning) --> (symmetrical conclusion) just doesn't FEEL right to me. Also, now that you have brought it to my attention, the fact that the same dichotomy is used on the whole rectangle and on its edges seems to invite generalization to n-dimensional boxes on n-dimensional chessboards, perhaps proceeding by induction on the dimension. I'll think about that one some more later. Sorry for the initial lack of clarity; I had thought through this stage of the argument, but somehow overlooked actually writing it down. Thank you for not being telepathic, and thereby helping me to improve my expository skill. --Stuart Anderson |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
sfwc
Member since Jun-19-03
|
May-21-06, 12:15 PM (EST) |
|
4. "RE: Rectangle on Chessboard"
In response to message #0
|
>This provides an alternate >way to see that for ANY compact shape, the white area cannot >exceed the black area by more than 1 square. Suppose I take a shape consisting of the union of the closures of 2 of the black squares. This is certainly compact, but the difference of the black and white areas covered is 2. The problem comes earlier:>The amplitude max(B) of this convolution must be less than >1, since it represents the average value of C across the >region A, and the max(C) is 1. The convolution represents not the average value, but rather the integral of the value. The average is the integral divided by the area of integration. I do like the idea of visualising the function as a convolution, though. Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
mr_homm
Member since May-22-05
|
May-21-06, 11:29 PM (EST) |
|
5. "RE: Rectangle on Chessboard"
In response to message #4
|
>The convolution represents not the average value, but rather the >integral of the value. The average is the integral divided by the >area of integration.Of course you are right. I don't seem to be doing too well with the details lately . . . perhaps I should get in the habit of thinking more and posting less. Most embarrassing. Fortunately, this does not affect the main thread of the argument, which really only depends on the sign reversals, not on the particular value of the maximum. You do raise an interesting question though: for what class of shapes is it true that there is a uniform bound on the net area? My hunch is that convex shapes will turn out to have a maximum area that never exceeds 1.0. I'll see if I can come up with a concise proof, unless you happen to know of one already, in which case I will only bother about it if I think the proof can be improved in some way. Thank you for pointing out my mistake! --Stuart Anderson |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
|
|
mr_homm
Member since May-22-05
|
May-22-06, 02:04 PM (EST) |
|
8. "RE: Rectangle on Chessboard"
In response to message #7
|
>I am afraid I gave an incorrect value for the area balance. >It is in fact n + 1/2. But this may still be made >arbitrarily large. Well, that shoots down my hunch, but this outcome is actually more interesting (to me, at least), since in the context of convolution it'shows that some methods of smoothing are markedly superior to others on a given grid. Using rectangles of the same area, one aligned with the grid and one tilted 45 degrees, convolving with the aligned rectangle would produce much lower amplitude of periodic variation. Hence it is a "better" convolution smoother than the other: same area implies roughly the same computational cost, but the amplitude of variation is much smaller. This gives me an applicaton idea (which perhaps has already been implemented; I'll have to check): this means that there is a nearly ideal method of removing half-tone dots from photographs (supposing that one had a newsprint or magazine phote which was scanned into a graphic application). Using a very small rectangle (a 1 by 2 square would be minimal I think), half-tone could be removed while leaving the large scale features of the picture virtually unchanged. Of course, half-tone is usually in a hex grid, but this grid has (ignoring orientation) an equilateral triangle for its unit cell and so a small rhombus should provide an optimal covolution filter for removing half-tone. Perhaps this was obvious anyway, but I came upon the idea unexpectedly in this context. Just a lot of speculation for now. I'll see if anything comes of it. --Stuart Anderson |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
Copyright © 1996-2018 Alexander Bogomolny
|
|