Watcher
Level: Smitemaster
Rank Points: 902
Registered: 02-04-2003
IP: Logged
File: Invariants Demo.hold (1 KB) Downloaded 185 times. License: Other From: Unspecified
|
Invariants of Tar Cutting (+8)
One thing that I'm sure you will all know, is that some tar blobs cannot be removed entirely, but always leave something behind. The simplest example is of course the 2x2 tar blob, which is uncuttable, but there are other examples. One such example is any rectangular tar blob with an even number of squares along both sides. Such a blob can be reduced no further than to a 2x2 blob.
This post is intended to explain why this happens, and to provide a more general method for determining whether a tar blob can be removed entirely.
Attached is a one room hold, which I designed by using the ideas explained here. It's provided as an example of what you can use this for.
Now, I'll only consider what happens when Beethro cuts tar. In other words, I'll be looking only at tar blobs in rooms without tar mothers. Tar babies will also be ignored; if any tar babies are formed during cutting, the relevant squares of tar are simply considered to have disappeared. Also, I'll ignore the possibility of "double-stabbing" by Beethro and a mimic for now. Finally, it's possible to cut a tar blob into two separate blobs; in this case, the two new blobs will be considered part of the same blob.
Now consider the point right between four squares in DROD. I'll call such a point a corner. A corner is considered to be enclosed by tar if all the four squares next to it contain tar. Note that if there is no tar in a room, the room contains 0 enclosed corners. Also, since all tar squares must be adjacent to at least on enclosed corner (this is just a different way of stating the tar baby formation rules), there will be no tar in a room containing 0 enclosed corners.
Now suppose that a square of tar (call it X) is cuttable. This means that it is an edge square. Suppose further that the edge is on the south side of the square. This implies that the square just S of X does not contain tar. Further, the squares just W, NW, N, NE, and E of X must contain tar. The squares SW and SE of X may or may not contain tar. In any case, all this means that the SW and the SE corners of X will not be enclosed by tar, but the NW and NE corners will be. Even more important, if Beethro cuts square X, the NW and NE corners will no longer be enclosed. Further, no other corners will be affected by the cutting. (If they are enclosed, they will stay that way.) In other words, the number of enclosed corners in the blob is decreased by 2. Similar things happens if the edge of square X is on the west, north or east side.
The above can be summarised as: Whenever Beethro cuts a square of tar, the number of enclosed corners is decreased by 2. This implies that the parity of the number of enclosed corners is invariant. (For those unfamiliar with the terms: "Parity" means whether a number is even or odd. "Is invariant" is a fancy way of saying "does not change".) Since a room with no tar has 0 enclosed corners, a tar blob containing an odd number of enclosed corners cannot be removed! This is the reason that rectangular tar blobs with sides of even length cannot be removed; they contain an odd number of enclosed corners.
Now consider what happens when you checkerboard-color the corners. This means that every corner is assigned one of two colors (I'll just use black and white) in such a way that any two adjacent corners have different colors. (It's just the same as the way the floor squares in any DROD room is colored.) As was observed above, every time Beethro cuts tar, 2 corners enclosed by tar will no longer be enclosed. Now observe that the two corners must be adjacent, meaning that they will have different colors. So every time Beethro cuts tar, one black and one white corner will no longer be enclosed. This implies that the number of enclosed white corners minus the number of enclosed black corners is invariant! This number can be called the value of a tar blob. It should be noted that the number of corners enclosed by a tar blob can be reduced no further than its value (or minus its value, if the value is negative).
Now, about mimics. In most cases, it doesn't matter that Beethro and a mimic cut tar simultaneously. However, if Beethro and the mimic (or two mimics, for that matter) cut two squares of tar that share a corner, the cutting will remove 3 enclosed corners, thus changing the parity. Further, the corners removed will be either 2 white and 1 black, or 1 white and 2 black, thus changing the value as well. Therefore, neither the parity nor the value of a tar blob are invariant if a mimic is employed carefully. This is why it can be necessary to use a mimic in order to remove a tar blob.
Yeah, this was rather long, but I hope that some of you can use it for something.
____________________________
Today the refrigerator, tomorrow the world!
|