Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Escalation Dominance


October, 2004: Escalation Dominance

Dennis is a professor of computer science at New York University. His latest books include Dr. Ecco's Cyberpuzzles: 36 Puzzles for Hackers and Other Mathematical Detectives (W.W. Norton, 2002) and Database Tuning: Principles, Experiments, and Troubleshooting Techniques (Morgan Kaufman, 2002). He can be contacted at DrEccoddj.com.


Last Month's Solution


Baskerhound was on his way. Ecco's 10-year-old nephew Tyler skipped basketball practice to be sure to be there. Liane also found an armchair nearby to strum her guitar. What was it about this kidnapper that attracted people?

To Ecco, at least, it was the problems Baskerhound posed. As usual, they were shrouded in mystery.

"I can't tell you the real source for this game," Baskerhound began as he sat down in the most comfortable chair, an unlit Cuban cigar in his mouth. "But it may feel familiar if you've been reading between the lines in the news.

"The principle of escalation dominance is that whatever mischief the bad guys can do to the good ones, the good guys can do more to the bad guys. (This may obscure relative goodness, but we'll leave that to one side for the moment.)

"In our rendition, escalation dominance is played on a square checkerboard (though the square board may vary in size) having alternating red and black squares. So red squares are connected to one another by diagonals and similarly for black ones.

"The bad guys are the Red team. Their pieces (also colored red) have values 1 through n. The good guys are the Black team and they have black pieces with values k+1 to k+n. Assume that we choose n so that 2n is a square (for example, n=2,8,18,...). Red moves first and places a piece on an empty red square, then Black places a piece on an empty black square, and so on. Your goal is to choose k to be as small as possible while guaranteeing that Black wins. Winning can mean two things.

"In the Any Neighbor version of the game, Black wins if every red piece is next to (on a horizontally or vertically neighboring square) some black piece having a higher number. For a warm-up, consider a 2×2 square. n is 2, so Red has pieces with the values 1 and 2. What does k have to be? (Solution to warm-up: k=1 suffices, since that would give Black a 3, which would be next to both Reds; see Figure 1.) Now, here are my questions.

"1. Is there a k value that works for any arbitrary size under the Any Neighbor version? If so, what is the smallest such k? If not, how does k relate to n, assuming we want the smallest possible k? (Of course, k=n will always work. We want the smallest possible k.)

"Now, suppose that we change the rules a bit so that every red piece must have higher valued black pieces on at least half of its sides (so one for the corners and two for other squares). We call this the "Half Neighbors" version.

"2. Is there a k value that works for any arbitrary size under the Half Neighbors version, assuming that Red must place all his pieces down before Black places any pieces down? If so, what is the smallest such k? If not, how does k relate to n, assuming we want the smallest possible k?

"3. How does your answer to #2 change if Red and Black alternate moves with Red taking the first move?"

Ecco does not know how much better Red can do, but would recommend a strategy where Red starts off with small values.

When discussing your solutions to this puzzle in a few months, I will point to the best web sites proposed by readers that give the smallest k for the n=18 game and one that actually plays the game (the version of the game where players alternate moves) for Black while permitting a human player to play for Red using a browser. The game has to announce a k and then either meet that k or beat it if the Red player plays foolishly.

DDJ


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.