Tuesday, December 08, 2009

I Just Like Saying Hyper Rooks

The following question was submitted by Rich (let me know if you want a link to somewhere?).

Consider an NxN chess board. What is the minimum number of Rooks (Castles) that it would take to dominate the board? Now consider an NxNxN hyper chess board. What is the minimum number of hyper rooks that it would take to dominate the board (NB Hyper Rooks can move up, down and across - ie in all 3 dimensions)?


The following image contains the answer as it was sent to me by Rich. I can't get the formulae to show in the comment section, so this is my best solution. So consider this a spoiler alert!

7 comments:

  1. I assume that by "dominate" you mean cover every square? It definitely takes N rooks to dominate an NxN chess board. For 2x2x2 it only takes 2. For 3x3x3, it only takes 3. However, I think it takes more than 4 for a 4x4x4 board. The other two worked with guys just along the diagonal of the cube.

    ReplyDelete
  2. Scratch that, can't do 3x3x3 with just 3 guys...

    ReplyDelete
  3. I think I can do it for (the NxNxN board):

    N=1, 1 rook
    N=2, 2 rooks
    N=3, 5 rooks
    N=4, 10 rooks
    N=5, 17?

    Anyway, that last one is a guess with (N-1)^2+1 rooks, based on the pattern from the first three...

    ReplyDelete
  4. Abe,

    I think you can do it with less. I don't know if this will come out easily in words or not, but here goes.

    A 1x1x1 and 2x2x2 cube are the exception to what I'm thinking and I agree that the N=1, is 1 and N=2 is 2.

    With every other cube, try this.
    Top layer: put a rook on the NorthWest (NW) and SouthEast (SE) corner.
    Bottom layer: put a rook alternate corners, NE and SW.
    This covers the outside rim of the top and bottom layers and also covers the corners of every other layer.

    1 - - - -
    ! o o o !
    ! o o o !
    ! o o o !
    ! - - - 2 on the top

    - - - - 3
    ! o o o !
    ! o o o !
    ! o o o !
    4 - - - - on the bottom

    Now you are left with the middle portion of the inner layers.

    First Inner Layer: start one in and one over in the NW corner with rook #5 and place one diagonally on that same layer until you reach one block from the SE corner, (it has already been covered by the rook on either the top or bottom).

    So if you are working with a 5x5x5, you'll place two on the top, two on the bottom, and now you're left with a 3x3 grid on layers 2,3,4.

    Place rooks like this:

    o o o o o
    o 5 o o o
    o o 6 o o
    o o o 7 o
    o o o o o on the 2nd layer down.

    o o o o o
    o o o 8 o
    o 9 o o o
    o o 10 o o
    o o o o o on the 3rd layer down.

    o o o o o
    o o 11 o o
    o o o 12 o
    o 13 o o o
    o o o o o on the 4th layer down.

    The middle layers are kind of a Sudoku approach. Each layer must have a rook on each row and column with no doubles. This covers all of the squares on each of the inner layers but not the corners. The corners are covered by the top and bottom layers.

    Hence, every NxNxN (3 or greater) will have 4 total rooks on the top and bottom layers with (N-2)^2 rooks in the middle layers.

    5x5x5: 4 rooks for the top and bottom plus (5-2)^2. 4+(3^2), 4+9=13.

    6x6x6: 4+4^2=20

    So I think the formula is:

    4+(n-2)^2

    ReplyDelete
  5. Yes, I agree. Good work.

    ReplyDelete
  6. Indeed, good work pilot, however there is a better solution, forget about the 4 rooks in corners and consider the 2x2x2 solution and you will get the minimum! (NB I've emailed the answers to Mike, but is his prerogative as to when they are posted. Having only recently emailed them, is my fault if they are late!)

    ReplyDelete
  7. Hey Rich, I don't think I can get your answer into the comments section. I was thinking I would take a picture of it and insert it into the post itself. It may be my only way to get the formulas you used...

    ReplyDelete

Leave your answer or, if you want to post a question of your own, send me an e-mail. Look in the about section to find my e-mail address. If it's new, I'll post it soon.

Please don't leave spam or 'Awesome blog, come visit mine' messages. I'll delete them soon after.

Enter your Email and join hundreds of others who get their Question of the Day sent right to their mailbox


Preview | Powered by FeedBlitz


The Lamplight Manor Puzz 3-D
Are you looking for a particular puzzle, riddle, question, etc? Or do you want to find the answer today rather than wait till tomorrow!
Google