Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Nimber

From Wikipedia, the free encyclopedia
Number used in combinatorial game theory
Not to be confused withNumber.
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This article'slead sectioncontains information that is not included elsewhere in the article. If this information is appropriate for the lead, it should also be included in the article's body. Relevant discussion may be found on thetalk page.(January 2019) (Learn how and when to remove this message)
icon
This article'slead sectionmay be too short to adequatelysummarize the key points. Please consider expanding the lead toprovide an accessible overview of all important aspects of the article.(January 2019)
(Learn how and when to remove this message)

Inmathematics, thenimbers, also calledGrundy numbers (not to be confused withGrundy chromatic numbers), are introduced incombinatorial game theory, where they are defined as the values of heaps in the gameNim. The nimbers are theordinal numbers endowed withnimber addition andnimber multiplication, which are distinct fromordinal addition andordinal multiplication.

Because of theSprague–Grundy theorem which states that everyimpartial game is equivalent to a Nim heap of a certain size, nimbers arise in a much larger class of impartial games. They may also occur inpartisan games likeDomineering.

The nimber addition and multiplication operations are associative and commutative. Each nimber is its ownadditive inverse. In particular for some pairs of ordinals, their nimber sum is smaller than either addend.[1] Theminimum excludant operation is applied to sets of nimbers.

Definition

[edit]

As a class,nimbers are indexed byordinal numbers, and form a subclass ofsurreal numbers, introduced byJohn Horton Conway as part of his theory ofcombinatorial games.[2] However, nimbers are distinct from ordinal and surreal numbers in that they follow distinctarithmetic rules, nim-addition and nim-multiplication. Other than that they are a proper class rather than a set, nimbers form afield under nim-addition and nim-multiplication.

As a set, finite nimbers can be putin one-to-one correspondence with finite ordinal numbers, which are thenatural numbers. Nonetheless, their arithmetic structures are notisomorphic; nimber arithmetic fundamentally differs from ordinary arithmetic operations on natural numbers.

Nimbers are often denoted using a star notation{*0, *1, *2, ..., *ω, *(ω+1), ...}.

Uses

[edit]

Nim

[edit]
Main article:Nim

Nim is a game in which two players take turns removing objects from distinct heaps. As moves depend only on the position and not on which of the two players is currently moving, and where the payoffs are symmetric, Nim is an impartial game. On each turn, a player must remove at least one object, and may remove any number of objects provided they all come from the same heap. The goal of the game is to be the player who removes the last object. The nimber of a heap is simply the number of objects in that heap. Using nim addition, one can calculate the nimber of the game as a whole. The winning strategy is to force the nimber of the game to 0 for the opponent's turn.[3]

Cram

[edit]
Main article:Cram (game)

Cram is a game often played on a rectangular board in which players take turns placing dominoes either horizontally or vertically until no more dominoes can be placed. The first player that cannot make a move loses. As the possible moves for both players are the same, it is an impartial game and can have a nimber value. For example, any board that is an even size by an even size will have a nimber of 0. Any board that is even by odd will have a non-zero nimber. Any2 ×n board will have a nimber of 0 for all evenn and a nimber of 1 for all oddn.

Northcott's game

[edit]

In Northcott's game, pegs for each player are placed along a column with a finite number of spaces. Each turn each player must move the piece up or down the column, but may not move past the other player's piece. Several columns are stacked together to add complexity. The player that can no longer make any moves loses. Unlike many other nimber related games, the number of spaces between the two tokens on each row are the sizes of the Nim heaps. If your opponent increases the number of spaces between two tokens, just decrease it on your next move. Else, play the game of Nim and make the Nim-sum of the number of spaces between the tokens on each row be 0.[4]

Hackenbush

[edit]
Main article:Hackenbush

Hackenbush is a game invented by mathematicianJohn Horton Conway. It may be played on any configuration of coloredline segments connected to one another by their endpoints and to a "ground" line. Players take turns removing line segments. An impartial game version, thereby a game able to be analyzed using nimbers, can be found by removing distinction from the lines, allowing either player to cut any branch. Any segments reliant on the newly removed segment in order to connect to the ground line are removed as well. In this way, each connection to the ground can be considered a nim heap with a nimber value. Additionally, all the separate connections to the ground line can also be summed for a nimber of the game state.

Addition

[edit]

Nimber addition (also known asnim-addition) can be used to calculate the size of a single nim heap equivalent to a collection of nim heaps. It is defined recursively byαβ=mex({αβ:α<α}{αβ:β<β}),{\displaystyle \alpha \oplus \beta =\operatorname {mex} \!{\bigl (}\{\alpha '\oplus \beta :\alpha '<\alpha \}\cup \{\alpha \oplus \beta ':\beta '<\beta \}{\bigr )},}where theminimum excludantmex(S) of a setS of ordinals is defined to be the smallest ordinal that isnot an element ofS.

For finite ordinals, thenim-sum is easily evaluated on a computer by taking thebitwiseexclusive or (XOR, denoted by) of the corresponding numbers. For example, the nim-sum of 7 and 14 can be found by writing 7 as 111 and 14 as 1110; the ones place adds to 1; the twos place adds to 2, which we replace with 0; the fours place adds to 2, which we replace with 0; the eights place adds to 1. So the nim-sum is written in binary as 1001, or in decimal as 9.

This property of addition follows from the fact that bothmex and XOR yield a winning strategy for Nim and there can be only one such strategy; or it can be shown directly by induction: Letα andβ be two finite ordinals, and assume that the nim-sum of all pairs with one of them reduced is already defined. The only number whose XOR withα isαβ isβ, and vice versa; thusαβ is excluded.ζ:=αβγ{\displaystyle \zeta :=\alpha \oplus \beta \oplus \gamma } On the other hand, for any ordinalγ <αβ, XORingζ with all ofα,β andγ must lead to a reduction for one of them (since the leading 1 inζ must be present in at least one of the three); sinceζγ=αβ>γ,{\displaystyle \zeta \oplus \gamma =\alpha \oplus \beta >\gamma ,} we must have eitherα>ζα=βγ,orβ>ζβ=αγ.{\displaystyle {\begin{aligned}\alpha >\zeta \oplus \alpha &=\beta \oplus \gamma ,\quad {\text{or}}\\[4pt]\beta >\zeta \oplus \beta &=\alpha \oplus \gamma .\end{aligned}}}Thusγ is included as either(βγ)β,orα(αγ);{\displaystyle {\begin{aligned}(\beta \oplus \gamma )\oplus \beta ,\quad {\text{or}}\\[4pt]\alpha \oplus (\alpha \oplus \gamma );\end{aligned}}}and henceαβ is the minimum excluded ordinal.

Nimber addition isassociative andcommutative, with0 as the additiveidentity element. Moreover, a nimber is its ownadditive inverse.[5] It follows thatαβ = 0if and only ifα =β.

Multiplication

[edit]

Nimber multiplication (nim-multiplication) is defined recursively by

αβ=mex({αβαβαβ:α<α,β<β}).{\displaystyle \alpha \otimes \beta =\operatorname {mex} \!{\bigl (}\{\alpha '\beta \oplus \alpha \,\beta '\oplus \alpha '\beta ':\alpha '<\alpha ,\beta '<\beta \}{\bigr )}.}

Nimber multiplication is associative and commutative, with the ordinal1 as the multiplicativeidentity element. Moreover, nimber multiplicationdistributes over nimber addition.[5][a]

Thus, except for the fact that nimbers form aproper class and not a set, the class of nimbers forms aring. In fact, it even determines analgebraically closed field ofcharacteristic 2, with the nimber multiplicative inverse of a nonzero ordinalα given by

α1=mex(S),{\displaystyle \alpha ^{-1}=\operatorname {mex} (S),}whereS is the smallest set of ordinals (nimbers) such that

  1. 0 is an element ofS;
  2. if0 <α′ <α andβ' is an element ofS, then(1(αα)β)(α)1{\displaystyle (1\oplus (\alpha '\oplus \alpha )\otimes \beta ')\otimes (\alpha ')^{-1}} is also an element ofS.

For all natural numbersn, the set of nimbers less than22n form theGalois fieldGF(22n) of order 22n. Therefore, the set of finite nimbers is isomorphic to thedirect limit asn → ∞ of the fieldsGF(22n). This subfield is not algebraically closed, since no fieldGF(2k) withk not a power of 2 is contained in any of those fields, and therefore not in their direct limit; for instance the polynomialx3 +x + 1, which has a root inGF(23), does not have a root in the set of finite nimbers.

Just as in the case of nimber addition, there is a means of computing the nimber product of finite ordinals. This is determined by the rules that

  1. The nimber product of a Fermat 2-power (numbers of the form22n) with a smaller number is equal to their ordinary product;
  2. The nimber square of a Fermat 2-powerx is equal to3x/2 as evaluated under the ordinary multiplication of natural numbers.

The smallest algebraically closed field of nimbers is the set of nimbers less than the ordinalωωω, whereω is the smallest infinite ordinal. It follows that as a nimber,ωωω istranscendental over the field.[6]

Addition and multiplication tables

[edit]

The following tables exhibit addition and multiplication among the first 16 nimbers.

This subset is closed under both operations, since 16 is of the form 22n.(If you prefer simple text tables, they arehere.)

Nimber addition (sequenceA003987 in theOEIS)
This is also theCayley table ofZ24 – or the table ofbitwiseXOR operations.
The small matrices show the single digits of the binary numbers.
Nimber multiplication (sequenceA051775 in theOEIS)
The nonzero elements form theCayley table ofZ15.
The small matrices are permuted binaryWalsh matrices.
Nimber multiplication ofpowers of two (sequenceA223541 in theOEIS)
Calculating the nim-products of powers of two is a decisive point in the recursive algorithm of nimber-multiplication.

See also

[edit]

Notes

[edit]
  1. ^Advances in computer games : 14th International Conference, ACG 2015, Leiden, the Netherlands, July 1-3, 2015, Revised selected papers. Herik, Jaap van den,, Plaat, Aske,, Kosters, Walter. Cham. 2015-12-24.ISBN 978-3319279923.OCLC 933627646.{{cite book}}: CS1 maint: location missing publisher (link) CS1 maint: others (link)
  2. ^Conway, John Horton (2000).On Numbers and Games (2nd ed.). A K Peters/CRC Press.ISBN 978-1568811277.
  3. ^Anany., Levitin (2012).Introduction to the design & analysis of algorithms (3rd ed.). Boston: Pearson.ISBN 9780132316811.OCLC 743298766.
  4. ^"Theory of Impartial Games"(PDF). Feb 3, 2009.
  5. ^abBrown, Ezra;Guy, Richard K. (2021). "2.5 Nim arithmetic and Nim algebra".The Unity of Combinatorics. Vol. 36 of The Carus Mathematical Monographs (reprint ed.).American Mathematical Society. p. 35.ISBN 978-1-4704-6509-4.
  6. ^Conway 1976, p. 61.
  1. ^These desired field properties motivate the definition of nimber multiplication: ifx′ <x thenx′ ⊕x ≠ 0. Likewise, ify′ <y theny′ ⊕y ≠ 0. We want nimber multiplication to be a field multiplication and, in particular, we want the product of two non-zero values to be non-zero; so we want(x′ ⊕x) ⊗ (y′ ⊕y) ≠ 0. We want nimber multiplication to distribute over nimber addition, so this last expression becomes(x′ ⊗y′) ⊕ (x′ ⊗y) ⊕ (xy′) ⊕ (xy) ≠ 0. This can be written asxy ≠ (x′ ⊗y′) ⊕ (x′ ⊗y) ⊕ (xy′). Finally, this last expression is satisfied if we definexy = mex{(x′⊗y′) ⊕ (x′⊗y) ⊕ (xy′) | ∀x′<x,y′<y}. It turns out that this expression also satisfies other criteria for defining a field.

References

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Nimber&oldid=1333095653"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp