Determine the maximum number of kings that can be placed on a
1
2
×
1
2
chessboard so that each king threatens exactly one other king.
Note: Each cell contains at most 1 king. Two kings threaten each other if they inhabit adjacent or diagonally adjacent cells.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I had a somewhat different approach. I like your arrangement, but I'm just not sure how, with your method, you would know that 56 is maximal.
Log in to reply
I actually tried another approach in which this pattern emerged.
I first tried this on an 8X8 chessboard.
First thing: To maximize the no. of kings, we have to initially place the Kings at the four corners.
Now, we are placing 2 Kings together. So, if we have to maximize the Kings, if we place the first two kings at say ( A 1 , B 1 ) , the next 2 ( at the bottom right corner ) should be ideally placed as ( H 1 , H 2 ) ... To maximize the gaps
The next two ( at the top right corner ) placed as ( G 8 , H 8 )
And, the next two ( at the top left corner ) placed as ( A 8 , A 7 )
Now, I stroke-off the unreachable cells, viz. ( A 2 , B 2 , C 2 , C 1 ) , ( G 1 , G 2 , G 3 , H 3 ) , ( F 8 , F 7 , G 7 , H 7 ) , ( B 8 , B 7 , B 6 , A 6 )
While Placing the next two Kings, what I noticed was:
Firstly, C1 & C2 are both inaccessible. So, I can place two Kings just beside these two squares, viz. D1 & D2
Also, A2 & B2 are also inaccessible. So, we can place two Kings just beside these two squares, viz. A3 & B3
The reason I was placing Kings beside already inaccessible squares is pretty obvious in itself: To Minimize the number the of Inaccessible squares, and thus Maximizing the no. of Kings
Only, after completing the arrangement in the 8X8 grid, I observed this pattern.
And, applied the same in our problem. Hope that clarifies how I was certain how this arrangement would definitely maximize the no. of Kings.
Log in to reply
Thanks, Soumya.
For myself, I start with a 13 by 13 board. First cover all of it except one square with 2 by 3 rectangles. (For example, one way to do this is to first cover all but the center square with four 6 by 7 rectangles. Then cut each 6 by 7 into a 6 by 3 and two 6 by 2 rectangles, and so on.)
Now place two kings in each 2 by 3 rectangle, such that they are not in the bottom-most row or the right-most column (i.e. either like this:
XX0
000
or like this:
XO
XO
OO)
Then none of the 56 kings are in the bottom-most row or the right-most column of the 13 by 13 board, which is to say they are on the required 12 by 12 board, and each threatens exactly one other king.
With this approach, I found it easy to also show that 56 is maximal.
1 0 1 0 1 1 0 1 0 1 0 1
1 0 1 0 0 0 0 1 0 1 0 1
0 0 0 0 1 1 0 0 0 0 0 0
1 1 0 0 0 0 0 1 1 0 1 1
0 0 0 1 0 1 0 0 0 0 0 0
1 1 0 1 0 1 0 1 1 0 1 1
0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 1 0 1 0 1
1 0 1 0 0 0 0 1 0 1 0 1
0 0 0 0 1 1 0 0 0 0 0 0
1 0 1 0 0 0 0 1 0 1 0 1
1 0 1 0 1 1 0 1 0 1 0 1
I think 56 is the answer, I've tried to come up with some way to measure the whole arrangement, but I could only do that for kings on the boundary (in corners and edges)--see note at the end. I've noticed that every empty square in the solutions below is next to at least 2 kings, which was not the case when there were only 54.
Problem Loading...
Note Loading...
Set Loading...
I maximized the value by separating the grid into paths and maximizing the no. of kings in each path. Firstly, the Kings will come in pairs.
Let us name grid as in chess board: A-L (Columns) and 1-12 (Rows)
Now, let us take the 2-square wide path between the 12X12 grid and the inner 8X8.
Let us start with columns A and B:
We have to put king in pairs, so we can put kings in (A1, B1)
next leaving a row (A3, B3) and continuing upto (A9, B9)
Now, we have two options: (A11, B11) or (A11, A12)
If, we put (A11, B11), then the Column C is completely inaccessible. That will definitely not maximize our solution
So, we put Kings in (A11, A12).
Continuing with the 11th and the 12th row, we put kings at:
(C11, C12)
(E11, E12)
(G11, G12)
(i11, i12)
Again, instead of putting at (K11, K12), we put kings at (K12, L12)
We continue this throughout the path between the 12X12 and the 8X8 grid
Now, a simple observation can show us that dude to the arrangement, the 1-square wide path between 8X8 grid and 6X6 grid.
In a similar way we will maximize the no. of Kings in the 2-square wide path between 6X6 grid and the 2X2 grid.
Obviously the inner most 2X2 grid will not have any Kings.