请输入您要查询的百科知识:

 

词条 Kayles
释义

  1. Rules

  2. History

  3. Analysis

  4. Applications

  5. Computational complexity

  6. See also

  7. References

{{inadequate lead|date=January 2019}}{{About|the combinatorial game|the lawn game|Bowling|and|Skittles (sport)}}

Kayles is a simple impartial game in combinatorial game theory. Using the notation of octal games, Kayles is denoted 0.77.

Rules

Kayles is played with a row of tokens, which represent bowling pins. The row may be of any length. The two players alternate; each player, on his or her turn, may remove either any one pin (a ball bowled directly at that pin), or two adjacent pins (a ball bowled to strike both). Under the normal play convention, a player loses when he or she has no legal move (that is, when all the pins are gone). The game can also be played using misère rules; in this case, the player who cannot move wins.

History

Kayles was invented by Henry Dudeney.[1][2] Richard Guy and Cedric Smith were first to completely analyze the normal-play version, using Sprague-Grundy theory.[3][4] The misère version was analyzed by William Sibert in 1973, but he did not publish his work until 1989.[5]

The name "Kayles" is an Anglicization of the French quilles, meaning "bowling".

Analysis

Most players quickly discover that the first player has a guaranteed win in normal Kayles whenever the row length is greater than zero. This win can be achieved using a symmetry strategy. On his or her first move, the first player should move so that the row is broken into two sections of equal length. This restricts all future moves to one section or the other. Now, the first player merely imitates the second player's moves in the opposite row.

It is more interesting to ask what the nim-value is of a row of length . This is often denoted ; it is a nimber, not a number. By the Sprague–Grundy theorem, is the mex over all possible moves of the nim-sum of the nim-values of the two resulting sections. For example,

because from a row of length 5, one can move to the positions

Recursive calculation of values (starting with ) gives the results summarized in the following table. To find the value of on the table, write as , and look at row a, column b:

Kayles nim-values through
01234567891011
0+ 0 1 2 3 1 4 3 2 1 4 2 6
12+ 4 1 2 7 1 4 3 2 1 4 6 7
24+ 4 1 2 8 5 4 7 2 1 8 6 7
36+ 4 1 2 3 1 4 7 2 1 8 2 7
48+ 4 1 2 8 1 4 7 2 1 4 2 7
60+ 4 1 2 8 1 4 7 2 1 8 6 7
72+ 4 1 2 8 1 4 7 2 1 8 2 7

At this point, the nim-value sequence becomes periodic[5] with period 12, so all further rows of the table are identical to the last row.

Applications

{{Expand section|date=July 2016}}

Because certain positions in Dots and Boxes reduce to Kayles positions,[6] it is helpful to understand Kayles in order to analyze a generic Dots and Boxes position.

Computational complexity

Under normal play, Kayles can be solved in polynomial time using the Sprague-Grundy theory.[3]

Node Kayles is a generalization of Kayles to graphs in which each bowl “knocks down” (removes) a desired vertex and all its neighboring vertices. (Alternatively, this game can be viewed as two players finding an independent set together.) Schaefer (1978)[7] proved that deciding the outcome of this game is PSPACE-complete. The same result holds for a partisan version of node Kayles, in which, for every node, only one of the players is allowed to choose that particular node as the knock down target.

See also

  • Combinatorial game theory
  • Octal games
  • Dawson's Kayles
  • Nimber

References

1. ^{{citation|first=H. E. |last=Dudeney|title=The Canterbury puzzles|isbn=0-486-42558-4|pages=118–119, puzzle 73|publisher=Dover|year=2002}}. Originally published in 1908.
2. ^Conway, John H. On Numbers and Games. Academic Press, 1976.
3. ^R. K. Guy and C. A. B. Smith, The G-values of various games, Proc. Cambridge Philos. Soc., 52 (1956) 514–526.
4. ^T.E. Plambeck, Daisies, Kayles and the Sibert-Conway decomposition in misere octal games {{Webarchive|url=https://web.archive.org/web/20100714132904/http://www.plambeck.org/oldhtml/mathematics/games/misere/MISEREPA.PDF |date=2010-07-14 }}, Theoret. Comput. Sci (Math Games) (1992) 96 361–388.
5. ^{{cite |author=Plambeck, Thane |title=Kayles |url=http://www.plambeck.org/oldhtml/mathematics/games/misere/077/index.htm |access-date=2008-08-15 |archive-url=https://web.archive.org/web/20081012123544/http://www.plambeck.org/oldhtml/mathematics/games/misere/077/index.htm |archive-date=2008-10-12 |dead-url=yes |df= }}
6. ^E. Berlekamp, J. H. Conway, R. Guy. Winning Ways for your Mathematical Plays. Academic Press, 1982.
7. ^{{cite journal|last1=Schaefer|first1=Thomas J.|title=On the complexity of some two-person perfect-information games|journal=Journal of Computer and System Sciences|date=1978|volume=16|issue=2|pages=185–225|doi=10.1016/0022-0000(78)90045-4|url=http://www.sciencedirect.com/science/article/pii/0022000078900454}}

2 : Combinatorial game theory|Mathematical games

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 21:59:07