Neutron star: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Mike Schwartz
→‎See also: add a new entry for "Pulsar in Triple Stellar System" -- from part of the web page about The National Radio Astronomy Observatory in Green Bank, West Virginia
en>Drbogdan
m Reverted 1 edit by 73.43.39.133 (talk) to last revision by Fourchannel. (TW)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Other uses}}
== Wenn Sie ein Traditionalist sind Hollister Online Shop Sale ==
'''Nim''' is a [[mathematical game|mathematical]] [[game of strategy]] in which two players take turns removing objects from distinct heaps. 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.


Variants of Nim have been played since ancient times.{{cn|date=April 2012}} The game is said to have originated in [[China]] (it closely resembles the Chinese game of "Jianshizi", or "picking stones"), but the origin is uncertain; the earliest European references to Nim are from the beginning of the 16th century. Its current name was coined by [[Charles L. Bouton]] of [[Harvard University]], who also developed the complete theory of the game in 1901, but the origins of the name were never fully explained. The name is probably derived from [[German language|German]] ''nimm'' meaning "take [imperative]", or the obsolete English verb ''nim'' of the same meaning.
Mit einem Reverse-Suche, können Sie auch herausfinden, dass die Hintergrundinformationen, wie denn das ist die einzelnen Familienmitglieder, Verwandte und Nachbarn. Sie können immer noch festzustellen, den Namen des oder gebührenfrei paycell Telefonnummer. <br><br>Die EU muss in der Lage sein, den Bürgern eine überzeugende Vision, wie ein globales Europa ist die Anpassung an neue Bedürfnisse und schützt ihre Interessen, die Reform ihrer wirtschaftlichen und sozialen Governance auf die Fortsetzung Wohlstand, Solidarität und Sicherheit für die nächste Generation zu gewährleisten und zu präsentieren wie die heutigen Bürger. Herausforderungen dieser Skala kann nur dann effektiv, indem sie das Beste aus der Partnerschaft zwischen den Mitgliedstaaten und der EU-Ebene durchgeführt werden. <br><br>'s distancetracking Schuhe oder tragbare Computer wie ist die Brille entwickelt Google Inc. Die Schuhe können jeden [http://www.buesser-metallbau.ch/about/section.asp?h=44-Hollister-Online-Shop-Sale Hollister Online Shop Sale] Schritt aufzeichnen, die Brille alles, was Sie sehen. Sie sagen Dinge wie Arent Sie. Geld verdienen durch Pressemitteilung schreiben ist nur möglich, wenn Sie lernen,. <br><br>Wenn Sie ein Traditionalist sind, hat Bass das Aussehen und das Gefühl des Weejun [http://www.paint-point.ch/energy/inc/config.asp?a=40-Abercrombie-Shop-Schweiz Abercrombie Shop Schweiz] in der Katherine II für Frauen und für Männer Logan (beide 79,99 $ zum Verkauf für einen erheblichen Preisnachlass an der Bass-Outlet-Store, aber oft) erhalten. Die ungefütterte Lederschuh hat in Burgund (im Bild), braun oder schwarz. <br><br>Ich habe einige Artikel über den besten Weg, beginnen Sie den ersten Meile zu lesen. Jetzt muss [http://www.buesser-metallbau.ch/about/section.asp?h=22-Hollister-Store-Lissabon Hollister Store Lissabon] ich mit Ihnen teilen. Dies hilft Ihnen, den Standort zu finden später, wenn es sein muss. Wenn Sie vor Ort Blitze oder Donner hören, finden Schutz so schnell wie möglich. <br><br>Langwierige ein Favorit für Bräute und Brautpaare. Die alten Griechen glaubten, dass das Tragen Perlen würden Harmonie in einer Ehe zu fördern und verhindern, dass Brautpaar aus Tränen. Fragen Sie Ihren Augenoptiker, um Ihnen einen Rahmen, der gut mit Ihrem Rezept arbeiten zu wählen. Ihr Rahmen sollte Ihr Gesicht und Persönlichkeit. <br><br>Birkenstock Schuhe der Frauen sind durch eine große Auswahl an Zubehör erweitert. Socken sind in verschiedenen Designs und Stilrichtungen, die mit Birkenstock-Schuh-Materialien zu kombinieren, um maximale Luftzirkulation und die Fähigkeit zu atmen bieten zur Verfügung. <br><br>Sie erinnern [http://www.paint-point.ch/energy/inc/config.asp?a=79-Abercrombie-Outlet-London Abercrombie Outlet London] in der Nähe von vor zwanzig Jahren jr Markwell Curtis Davis und ich wurden kauft Timberland für dunaway Holzfirma für Provision. Wir hatten dieses Land in canneyville zum Verkauf. "Die wichtige Botschaft aus dieser Aussage ist, dass die FDA hat schließlich beschlossen, Solarium aus risikoarmen, um Geräte mäßigesumzugliedern Dies ist ein wichtiger Schritt bei der Herstellung der Öffentlichkeit über die Gefahren von Sonnenbänken. Indoor Bräunungs schädigt die Haut und ist mit Hautkrebsarten, einschließlich Melanom eine potenziell tödliche Form von Hautkrebs.<ul>
 
  <li>[http://www.xinyindao.com/bbs/forum.php?mod=viewthread&tid=17769 http://www.xinyindao.com/bbs/forum.php?mod=viewthread&tid=17769]</li>
 
  <li>[http://www.shentu.pk/forum.php?mod=viewthread&tid=1219749 http://www.shentu.pk/forum.php?mod=viewthread&tid=1219749]</li>
 
  <li>[http://www.seee.com.cn/bbs/showtopic-1452984.aspx http://www.seee.com.cn/bbs/showtopic-1452984.aspx]</li>
 
  <li>[http://www.mihmusicbizservices.com/ http://www.mihmusicbizservices.com/]</li>
 
</ul>


Nim can be played as a ''[[misère]]'' game, in which the player to take the last object loses.  Nim can also be played as a ''normal play'' game, which means that the person who makes the last move (i.e., who takes the last object) wins.  This is called normal play because most games follow this convention, even though Nim usually does not.
== ist Ihr Körper versucht Nike Free Run 3.0 ==


Normal play Nim (or more precisely the system of [[nimber]]s) is fundamental to the [[Sprague–Grundy theorem]], which essentially says that in normal play every [[impartial game]] is equivalent to a Nim heap that yields the same outcome when played in parallel with other normal play impartial games (see [[disjunctive sum]]).
Renee, ein Verkaufsmanager bei Shiseido und ehemaliger Make-up-Künstler, hat sich in mein Haus gekommen, um mit mir zu arbeiten Wunder. Es gibt Tage, da kann ich nicht sagen, ob ich auf Make-up oder nicht, was für eine noncelebrity [http://www.maennerchor-therwil.ch/images/gelterkinden/deco/banner.asp?f=191-Nike-Free-Run-3.0 Nike Free Run 3.0] wie ich kann nicht eine gute Sache setzen. <br><br>Babykleidung muss den strengsten Standards für Chemikalien einhalten). So ist die Frage, wie Chemikalien in der Kleidung hat eine der Haftung für die Risikokontrolle der Branche mit den Verbrauchern offensichtlich erwarten Produkte keine Gefahr für ihre Gesundheit darstellen zu groß. <br><br>Brown Shoe Company, Inc. (NYSE: BWS) ist ein $ 2600000000, global, Schuh-Unternehmen, die Verbraucher und ihre Bedürfnisse an erste Stelle setzt, indem sie auf die strategische Familie, Healthy Living und Contemporary Fashion-Plattformen. Ich bin 20ib über Gewicht und ich beschlossen, es zu kaufen, da ich jeden zweiten Tag zu Fuß von meinem Arbeitsplatz zu Hause. Ich brauchte eine neue Schuhe und diese Schuhe sieht gut aus und geben gute Unterstützung. <br><br>Terrain ist vertikal mit einer Menge von großen Felsbrocken. Er ging in die höchste Lage und das ist, wo er gefunden wurde. Also, wenn Sie schwanger sind und erleben Geographic Zunge sind, ist Ihr Körper versucht, dir etwas sagen. Für Ihre Gesundheit und die Gesundheit Ihres Babys Sie brauchen, um die richtige Ernährung sofort zu bekommen!. <br><br>Eine andere Sache zu denken ist, dass man letztlich nicht derjenige, der zu sagen, was man bekommt sind sind. Sie können selbst einen Namen für eine buddhistisch, aber die Art, andere Menschen wahrnehmen Sie, sowohl durch wie Sie sich präsentieren und was andere von euch wissen, ist, was der sagt, was Sie sind. <br><br>Im Laufe der Jahre ging, wuchs Aspinall Beiträge. Obwohl er meist an das Geschäft Ende hat er auf ein paar Beatles-Songs zu spielen, darunter eine singende Stint auf den Refrain von "Yellow Submarine". Selbst wenn die Stichmuster und die angeschlossenen Zubehörteile sind [http://www.leu-ruesi.ch/pages/inc/Guest.asp?n=47-Nike-Outlet-Online Nike Outlet Online] in einem apt Weise gepflegt, auch wir nicht haben, um in Bezug auf die Haltbarkeit auf [http://www.mcaviglia.ch/test/pageflip/test/session.asp?a=128-Air-Max-Ltd-2-Weiß Air Max Ltd 2 Weiß] das Paar wir gekauft haben [http://www.cattledog-kelpie.ch/infragistics/Images/Large/config.asp?b=67-Dre-Beats Dre Beats] Sorgen. Sensing diesen sind die Männer-Schuhe, die in der Heimat des Belvedere kommen direkt nach viel Interesse an der Reihenfolge erstellt, dass sie in der Lage, für einen längeren Zeitraum eingesetzt werden sollen. <br><br>Stattdessen Drücken der Taste zeigt EFn alternative Rollen für sechs weitere Tasten auf der Rückseite der Kamera. Diese können individuell gestaltet werden und eine Bildschirmaufforderung macht es einfach, zu sehen, was jeder Taste zugeordnet. Gangnam Style-Kerl weltweit beliebtesten viralen Video bietet viele Möglichkeiten Kostüm inspiriert durch südkoreanische Sänger Psy. Versuchen rosa Shorts, ein weißes Hemd mit Kragen mit den hochgekrempelten Ärmeln, eine orange Weste und Sonnenbrille tortoiseshellrimmed für die unvergesslichen Pool-Look.<ul>
 
 
While all normal play impartial games can be assigned a nim value, that is not the case under the misère convention. Only [[Genus theory#Tame|tame games]] can be played using the same strategy as misère nim.
  <li>[http://218.28.134.108/forum.php?mod=viewthread&tid=102187 http://218.28.134.108/forum.php?mod=viewthread&tid=102187]</li>
 
 
A version of Nim is played—and has symbolic importance—in the [[French New Wave]] film ''[[Last Year at Marienbad]]'' (1961).
  <li>[http://414300.net/news/html/?520080.html http://414300.net/news/html/?520080.html]</li>
 
 
At the 1940 New York World's Fair [[Westinghouse]] displayed a machine, the Nimatron, that played Nim.<ref>{{cite book|last=Flesch|first=Rudolf|title=The Art of Clear Thinking|year=1951|publisher=Harper and Brothers Publishers|location=New York|page=3}}</ref> It was also one of the first ever electronic computerized games (1952). Herbert Koppel, Eugene Grant and Howard Bailer, engineers from the W.L. Maxon Corporation,  developed a machine weighing 50 pounds which played Nim against a human opponent and regularly won.<ref>{{Cite news |url=http://www.newyorker.com/archive/1952/08/02/1952_08_02_018_TNY_CARDS_000236053 |title=The Talk of the Town – It |first1=Eugene F. |last1=Grant |first2=Rex |last2=Lardner |date=August 2, 1952 |newspaper=[[The New Yorker]]}}</ref>
  <li>[http://web.zaiwww.com/news/html/?183993.html http://web.zaiwww.com/news/html/?183993.html]</li>
 
 
Nim is a special case of a [[poset game]] where the [[poset]] consists of disjoint [[Total order|chains]] (the heaps).
  <li>[http://deucethedealer.com/activity/p/274753/ http://deucethedealer.com/activity/p/274753/]</li>
 
 
== Game play and illustration ==
</ul>
 
The normal game is between two players and played with three heaps of any number of objects.  The two players alternate taking any number of objects from any single one of the heaps. The goal is to be the last to take an object. In misère play, the goal is instead to ensure that the opponent is forced to take the last remaining object.
 
The following example game is played between fictional players [[Bob and Alice]] who start with heaps of three, four and five objects. The winning strategy is for a player to  always leave an even total number of 1's, 2's, and 4's.  In the example, Bob implements this strategy.
 
Sizes of heaps  Moves
A B C
&nbsp;
3 4 5          Bob  takes 2 from A
1 4 5          Alice takes 3 from C
1 4 2          Bob  takes 1 from B
1 3 2          Alice takes 1 from B
1 2 2          Bob  takes entire A heap, leaving two 2s.
0 2 2          Alice takes 1 from B
0 1 2          Bob  takes 1 from C leaving two 1s. (''In misère play he would take 2 from C leaving (0, 1, 0).'')
0 1 1          Alice takes 1 from B
0 0 1          Bob  takes entire C heap and wins.
 
[[File:nim qc.jpg]]
 
== Mathematical theory ==
 
Nim has been mathematically solved for any number of initial heaps and objects, and there is an easily calculated way to determine which player will win and what winning moves are open to that player. In a game that starts with heaps of three, four, and five, the first player will win with optimal play, whether the misère or normal play convention is followed.
 
The key to the theory of the game is the [[Binary numeral system|binary]] [[digital sum in base b|digital sum]] of the heap sizes, that is, the sum (in binary) neglecting all carries from one digit to another. This operation is also known as "[[exclusive or]]" (xor) or "vector addition over [[finite field|'''GF'''(2)]]".  Within [[combinatorial game theory]] it is usually called the '''nim-sum''', as will be done here.  The nim-sum of ''x'' and ''y'' is written ''x''&nbsp;⊕&nbsp;''y'' to distinguish it from the ordinary sum, ''x''&nbsp;+&nbsp;''y''.  An example of the calculation with heaps of size 3, 4, and 5 is as follows:
 
[[Binary numeral system|Binary]]  [[Decimal]]
&nbsp;
  011<sub>2</sub>    3<sub>10</sub>    Heap A
  100<sub>2</sub>    4<sub>10</sub>    Heap B
  101<sub>2</sub>    5<sub>10</sub>    Heap C
  ---
  010<sub>2</sub>    2<sub>10</sub>    The nim-sum of heaps A, B, and C, 3 ⊕ 4 ⊕ 5 = 2
 
An equivalent procedure, which is often easier to perform mentally, is to express the heap sizes as sums of distinct [[Exponentiation|powers]] of 2, cancel pairs of equal powers, and then add what's left:
3 = 0 + 2 + 1 =    2  1      Heap A
4 = 4 + 0 + 0 = 4              Heap B
5 = 4 + 0 + 1 = 4      1      Heap C
---
2 =                2          What's left after canceling 1s and 4s
 
In normal play, the winning strategy is to finish every move with a Nim-sum of 0. This is always possible if the Nim-sum is not zero before the move. If the Nim-sum is zero, then the next player will lose if the other player does not make a mistake.  To find out which move to make, let X be the Nim-sum of all the heap sizes. Take the Nim-sum of each of the heap sizes with X, and find a heap whose size decreases. The winning strategy is to play in such a heap, reducing that heap to the Nim-sum of its original size with X.  In the example above, taking the Nim-sum of the sizes is X&nbsp;=&nbsp;3&nbsp;⊕&nbsp;4&nbsp;⊕&nbsp;5&nbsp;=&nbsp;2. The Nim-sums of the heap sizes A=3, B=4, and C=5 with X=2 are
: A ⊕ X = 3 ⊕ 2 = 1      [Since (011) ⊕ (010) = 001 ]
: B ⊕ X = 4 ⊕ 2 = 6
: C ⊕ X = 5 ⊕ 2 = 7
The only heap that is reduced is heap A, so the winning move is to reduce the size of heap A to 1 (by removing two objects).
 
As a particular simple case, if there are only two heaps left, the strategy is to reduce the number of objects in the bigger heap to make the heaps equal. After that, no matter what move your opponent makes, you can make the same move on the other heap, guaranteeing that you take the last object.
 
When played as a misère game, Nim strategy is different only when the normal play move would leave no heap of size two or larger. In that case, the correct move is to leave an odd number of heaps of size one (in normal play, the correct move would be to leave an even number of such heaps).
 
In a misère game with heaps of sizes three, four and five, the strategy would be applied like this:
 
A B C Nim-sum
&nbsp;
3 4 5 010<sub>2</sub>=2<sub>10</sub>  I take 2 from A, leaving a sum of 000, so I will win.
1 4 5 000<sub>2</sub>=0<sub>10</sub>  You take 2 from C
1 4 3 110<sub>2</sub>=6<sub>10</sub>  I take 2 from B
1 2 3 000<sub>2</sub>=0<sub>10</sub>  You take 1 from C
1 2 2 001<sub>2</sub>=1<sub>10</sub>  I take 1 from A
0 2 2 000<sub>2</sub>=0<sub>10</sub>  You take 1 from C
0 2 1 011<sub>2</sub>=3<sub>10</sub>  The normal play strategy would be to take 1 from B, leaving an even number (2)
                  heaps of size 1. For misère play, I take the entire B heap, to leave an odd
                  number (1) of heaps of size 1.
0 0 1 001<sub>2</sub>=1<sub>10</sub>  You take 1 from C, and lose.
 
The previous strategy for a misère game can be easily implemented (for example in [[Python (programming language)|Python]], below).
 
<source lang="python">
def nim(heaps, misere=True):
"""Computes next move for Nim in a normal or misère (default) game, returns tuple (chosen_heap, nb_remove)"""
X = reduce(lambda x,y: x^y, heaps)
if X == 0: # Will lose unless all non-empty heaps have size one
if max(heaps) > 1:
print "You will lose :("
for i, heap in enumerate(heaps):
if heap > 0: # Empty any (non-empty) heap
chosen_heap, nb_remove = i, heap
break
else:
sums = [t^X < t for t in heaps]
chosen_heap = sums.index(True)
nb_remove = heaps[chosen_heap] - (heaps[chosen_heap]^X)
heaps_twomore = 0
for i, heap in enumerate(heaps):
n = heap-nb_remove if chosen_heap == i else heap
if n>1: heaps_twomore += 1
# If move leaves no heap of size 2 or larger, leave an odd (misère) or even (normal) number of heaps of size 1
if heaps_twomore == 0:
chosen_heap = heaps.index(max(heaps))
heaps_one = sum(t==1 for t in heaps)
# misère (resp. normal) strategy: if it is even (resp. odd) make it odd (resp. even), else do not change
nb_remove = heaps[chosen_heap]-1 if heaps_one%2!=misere else heaps[chosen_heap]
return chosen_heap, nb_remove
</source>
 
== Proof of the winning formula ==
 
The soundness of the optimal strategy described above was demonstrated by C. Bouton.
 
'''Theorem'''. In a normal Nim game, the player making the first move has a winning strategy if and only if the nim-sum of the sizes of the heaps is nonzero. Otherwise, the second player has a winning strategy.
 
''Proof:'' Notice that the nim-sum (⊕) obeys the usual [[associativity|associative]] and [[commutativity|commutative]] laws of addition (+), and also satisfies an additional property, ''x''&nbsp;⊕&nbsp;''x''&nbsp;=&nbsp;0 (technically speaking, the nonnegative integers under ⊕ form an [[Abelian group]] of [[exponent of a group|exponent]] 2).
 
Let ''x''<sub>1</sub>,&nbsp;...,&nbsp;''x<sub>n</sub>'' be the sizes of the heaps before a move, and ''y''<sub>1</sub>,&nbsp;...,&nbsp;''y<sub>n</sub>'' the corresponding sizes after a move. Let ''s''&nbsp;=&nbsp;''x''<sub>1</sub>&nbsp;⊕&nbsp;...&nbsp;⊕&nbsp;''x<sub>n</sub>'' and ''t''&nbsp;=&nbsp;''y''<sub>1</sub>&nbsp;⊕&nbsp;...&nbsp;⊕&nbsp;''y<sub>n</sub>''. If the move was in heap ''k'', we have ''x<sub>i</sub>''&nbsp;=&nbsp;''y<sub>i</sub>'' for all ''i''&nbsp;≠&nbsp;''k'', and ''x<sub>k</sub>''&nbsp;&gt;&nbsp;''y<sub>k</sub>''. By the properties of ⊕ mentioned above, we have
 
    ''t'' = 0 ⊕ ''t''
      = ''s'' ⊕ ''s'' ⊕ ''t''
      = ''s'' ⊕ (''x''<sub>1</sub> ⊕ ... ⊕ ''x<sub>n</sub>'') ⊕ (''y''<sub>1</sub> ⊕ ... ⊕ ''y<sub>n</sub>'')
      = ''s'' ⊕ (''x''<sub>1</sub> ⊕ ''y''<sub>1</sub>) ⊕ ... ⊕ (''x<sub>n</sub>'' ⊕ ''y<sub>n</sub>'')
      = ''s'' ⊕ 0 ⊕ ... ⊕ 0 ⊕ (''x<sub>k</sub>'' ⊕ ''y<sub>k</sub>'') ⊕ 0 ⊕ ... ⊕ 0
      = ''s'' ⊕ ''x<sub>k</sub>'' ⊕ ''y<sub>k</sub>''
&nbsp;
(*) ''t'' = ''s'' ⊕ ''x<sub>k</sub>'' ⊕ ''y<sub>k</sub>''.
 
The theorem follows by induction on the length of the game from these two lemmas.
 
'''Lemma 1'''. If ''s'' = 0, then ''t'' ≠ 0 no matter what move is made.
 
''Proof:'' If there is no possible move, then the lemma is [[vacuous truth|vacuously true]] (and the first player loses the normal play game by definition).  Otherwise, any move in heap ''k'' will produce ''t''&nbsp;=&nbsp;''x<sub>k</sub>''&nbsp;⊕&nbsp;''y<sub>k</sub>'' from (*). This number is nonzero, since ''x<sub>k</sub>''&nbsp;≠&nbsp;''y<sub>k</sub>''.
 
'''Lemma 2'''. If ''s'' ≠ 0, it is possible to make a move so that ''t'' = 0.
 
''Proof:'' Let ''d'' be the position of the leftmost (most significant) nonzero bit in the binary representation of ''s'', and choose ''k'' such that the ''d''th bit of ''x<sub>k</sub>'' is also nonzero. (Such a ''k'' must exist, since otherwise the ''d''th bit of ''s'' would be 0.)
Then letting ''y<sub>k</sub>''&nbsp;=&nbsp;''s''&nbsp;⊕&nbsp;''x<sub>k</sub>'', we claim that ''y<sub>k</sub>''&nbsp;&lt;&nbsp;''x<sub>k</sub>'': all bits to the left of ''d'' are the same in ''x<sub>k</sub>'' and ''y<sub>k</sub>'', bit ''d'' decreases from 1 to 0 (decreasing the value by 2<sup>''d''</sup>), and any change in the remaining bits will amount to at most 2<sup>''d''</sup>−1. The first player can thus make a move by taking ''x<sub>k</sub>''&nbsp;−&nbsp;''y<sub>k</sub>'' objects from heap ''k'', then
''t'' = ''s'' ⊕ ''x<sub>k</sub>'' ⊕ ''y<sub>k</sub>''          (by (*))
  = ''s'' ⊕ ''x<sub>k</sub>'' ⊕ (''s'' ⊕ ''x<sub>k</sub>'')
  = 0.
 
The modification for misère play is demonstrated by noting that the modification first arises in a position that has only one heap of size 2 or more.  Notice that in such a position ''s'' ≠ 0, therefore this situation has to arise when it is the turn of the player following the winning strategy.  The normal play strategy is for the player to reduce this to size 0 or 1, leaving an even number of heaps with size 1, and the misère strategy is to do the opposite.  From that point on, all moves are forced.
 
== Other variations of Nim ==
 
=== The subtraction game ''S''(1,2,...,''k'') ===
 
In another game which is commonly known as Nim (but is better called the [[subtraction game]] ''S'' (1,2,...,''k'')), an upper bound is imposed on the number of objects that can be removed in a turn.  Instead of removing arbitrarily many objects, a player can only remove 1 or 2 or ... or ''k'' at a time.  This game is commonly played in practice with only one heap (for instance with ''k''&nbsp;=&nbsp;3 in the game ''Thai 21'' on [[Survivor: Thailand]], where it appeared as an Immunity Challenge).
 
Bouton's analysis carries over easily to the general multiple-heap version of this game.  The only difference is that as a first step, before computing the Nim-sums, we must reduce the sizes of the heaps [[modular arithmetic|modulo]] ''k''&nbsp;+&nbsp;1.  If this makes all the heaps of size zero (in misère play), the winning move is to take ''k'' objects from one of the heaps.  In particular, in ideal play from a single heap of ''n'' objects, the second player can win [[if and only if]]
: ''n''&nbsp;≡&nbsp;0&nbsp;(mod&nbsp;''k''+1) (in normal play), or
: ''n''&nbsp;≡&nbsp;1&nbsp;(mod&nbsp;''k''+1) (in misère play).
 
This follows from calculating the [[nim-sequence]] of ''S''(1,2,...,''k''),
: <math>0.123\ldots k0123\ldots k0123\dots = \dot0.123\ldots\dot{k}, \, </math>
from which the strategy above follows by the [[Sprague–Grundy theorem]].
 
=== The 21 game ===
 
The game "21" is played as a misère game with any number of players who take turns saying a number.  The first player says "1" and each player in turn increases the number by 1, 2, or 3, but may not exceed 21; the player forced to say "21" loses.  This can be modeled as a subtraction game with a heap of 21–''n'' objects.<br/>
The winning strategy for this game is to say a multiple of 4 and after that it is guaranteed that the other player will have to say 21, barring a mistake from the first player.<br/>
This game has a Sprague–Grundy value of zero, i.e., it is biased in favor of the second player as s/he can get to 4 first and then control the game from there, as no matter what, the first player will never be able to say a multiple of 4 as s/he is only allowed increments of either 1, 2 or 3.<br/>
The 21 game can also be played with different numbers, like "Add up to 5 and Lose on 34".<br/>
Proof (via a sample game of 21)-<br/><br/>
Player &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Number
  1          1
  2          4
  1        5,6 or 7
  2          8
  1        9,10 or 11
  2          12
  1        13,14 or 15
  2          16
  1        17,18 or 19
  2          20
  1          21
 
=== The 100 game ===
A similar version is the "100 game": two players start from 0 and alternatively add a number from 1 to 10 to the sum. The player who reaches 100 wins. The winning strategy is to reach a number in which the digits are subsequent (e.g. 01, 12, 23, 34,...) and control the game by jumping through all the numbers of this sequence. Once reached 89, the opponent has lost (he can only tell numbers from 90 to 99, and the next answer can in any case be 100).
 
=== A multiple-heap rule ===
 
{{See also|Wythoff's game}}
In another variation of Nim, besides removing any number of objects from a single heap, one is permitted to remove the same number of objects from each heap.
 
=== Circular Nim ===
 
{{See also|Kayles}}
Yet another variation of Nim is 'Circular Nim', where any number of objects are placed in a circle, and two players alternately remove one, two or three adjacent objects.  For example, starting with a circle of ten objects,
 
. . . . . . . . . .
 
three objects be taken in the first move
 
_ . . . . . . . _ _
 
then another three
 
_ . _ _ _ . . . _ _
 
then one
 
_ . _ _ _ . . _ _ _
 
but then three objects cannot be taken out in one move.
 
=== Grundy's game ===
 
In [[Grundy's game]], another variation of Nim, a number of objects are placed in an initial heap, and two players alternately divide a heap into two nonempty heaps of different sizes. Thus, six objects may be divided into piles of 5+1 or 4+2, but not 3+3.  Grundy's game can be played as either misère or normal play.
 
=== Greedy Nim ===
 
See [[Greedy Nim]].
 
== See also ==
 
* [[Dr. NIM]]
* [[Fuzzy game]]
* [[Nimber]]
* [[Nimrod (computing)]]
* [[Nim iDentor (call-id)]]
* [[Octal games]]
* [[Star (game theory)]]
* [[Subtract a square]]
* [[Zero game]]
* [[Android Nim]]
* [[Raymond Redheffer]]
* [[Last Year at Marienbad]]
 
== References ==
{{reflist}}
* W. W. Rouse Ball: ''Mathematical Recreations and Essays'', The Macmillan Company, 1947.
* John D. Beasley: ''The Mathematics of Games'', Oxford University Press, 1989.
* Elwyn R. Berlekamp, John H. Conway, and Richard K. Guy: ''[[Winning Ways for your Mathematical Plays]]'', Academic Press, Inc., 1982.
* C. L. Bouton: Nim, ''a game with a complete mathematical theory'', Annals of Mathematics 3 (1901–02), 35–39.
* Manfred Eigen and Ruthild Winkler: ''Laws of the Game'', Princeton University Press, 1981.
* Walter R. Fuchs: ''Computers: Information Theory and Cybernetics'', Rupert Hart-Davis Educational Publications, 1971.
* G. H. Hardy and E. M. Wright: ''An Introduction to the Theory of Numbers'', Oxford University Press, 1979.
* Edward Kasner and James Newman: [[Mathematics and the Imagination]], Simon and Schuster, 1940.
* M. Kaitchik: ''Mathematical Recreations'', W. W. Norton, 1942.
* Donal D. Spencer: ''Game Playing with Computers'', Hayden Book Company, Inc., 1968.
 
== External links ==
* 1952: 50-pound computer plays Nim- The New Yorker magazine "Talk of the Town" August, 1952.:[http://www.newyorker.com/archive/1952/08/02/1952_08_02_018_TNY_CARDS_000236053]
* 1958: Popular Electronics magazine Jan 1958, article "Win at NIM with Debicon" – an electrical circuit that shows lights to assist in winning a game.
* [http://www.kongregate.com/games/RicardoRix/nim?referrer=RicardoRix Nim Flash on Kongregate]
* [http://www.archimedes-lab.org/game_nim/nim.html Nim in JavaScript] – including its historical aspect at [[Archimedes-lab.org]].
* [http://www.fromnorway.net/yaylas/div/nim/index.htm Nim in JavaScript] IE7 and FF3 compatible
* [http://hammonda.co.uk/Nim/ Nim in JavaScript] using GWT
* [http://hwwmath.looiwenli.com/21 The 21 Game in JavaScript]
* [http://www.cut-the-knot.org/ctk/May2001.html The hot game of Nim] – Nim theory and connections with other games at [[cut-the-knot]]
* [http://www.cut-the-knot.org/nim_st.shtml Nim] and 2-dimensional [http://www.cut-the-knot.org/Games/SuperNim/SNim.shtml SuperNim] at [[cut-the-knot]]
* [http://sputsoft.com/blog/2009/04/the-game-of-nim.html The Game of Nim] at [http://sputsoft.com sputsoft.com]
* [http://illuminations.nctm.org/ActivityDetail.aspx?ID=140 Nim on NCTM's Illuminations]
* [http://jeu-marienbad.com Marienbad – Variant of Nim] HTML5 application
* [http://geekoverdose.wordpress.com/2012/05/06/the-take-game-an-artificial-intelligence-toy-problem/ Pick Stones] Python Source Code of a Marienbad Variant of Nim using [[Alpha beta pruning|Alpha-Beta Pruning]]
* [http://linkstore.ru/mfile/data/27399126.jsp NIM in Excel] Excel spreadsheet using basic formulas to determine best moves for a 3,4,5 start point.
* [http://nim.regginos.com/ Play NIM online] against computer opponents of different strength. Adjustable initial position.
 
[[Category:Mathematical games]]
[[Category:Combinatorial game theory]]
[[Category:Recreational mathematics]]
[[Category:Articles containing proofs]]
[[Category:Articles with example Python code]]
 
[[cs:Rozšířená forma#NIM]]

Latest revision as of 00:56, 10 January 2015

Wenn Sie ein Traditionalist sind Hollister Online Shop Sale

Mit einem Reverse-Suche, können Sie auch herausfinden, dass die Hintergrundinformationen, wie denn das ist die einzelnen Familienmitglieder, Verwandte und Nachbarn. Sie können immer noch festzustellen, den Namen des oder gebührenfrei paycell Telefonnummer.

Die EU muss in der Lage sein, den Bürgern eine überzeugende Vision, wie ein globales Europa ist die Anpassung an neue Bedürfnisse und schützt ihre Interessen, die Reform ihrer wirtschaftlichen und sozialen Governance auf die Fortsetzung Wohlstand, Solidarität und Sicherheit für die nächste Generation zu gewährleisten und zu präsentieren wie die heutigen Bürger. Herausforderungen dieser Skala kann nur dann effektiv, indem sie das Beste aus der Partnerschaft zwischen den Mitgliedstaaten und der EU-Ebene durchgeführt werden.

's distancetracking Schuhe oder tragbare Computer wie ist die Brille entwickelt Google Inc. Die Schuhe können jeden Hollister Online Shop Sale Schritt aufzeichnen, die Brille alles, was Sie sehen. Sie sagen Dinge wie Arent Sie. Geld verdienen durch Pressemitteilung schreiben ist nur möglich, wenn Sie lernen,.

Wenn Sie ein Traditionalist sind, hat Bass das Aussehen und das Gefühl des Weejun Abercrombie Shop Schweiz in der Katherine II für Frauen und für Männer Logan (beide 79,99 $ zum Verkauf für einen erheblichen Preisnachlass an der Bass-Outlet-Store, aber oft) erhalten. Die ungefütterte Lederschuh hat in Burgund (im Bild), braun oder schwarz.

Ich habe einige Artikel über den besten Weg, beginnen Sie den ersten Meile zu lesen. Jetzt muss Hollister Store Lissabon ich mit Ihnen teilen. Dies hilft Ihnen, den Standort zu finden später, wenn es sein muss. Wenn Sie vor Ort Blitze oder Donner hören, finden Schutz so schnell wie möglich.

Langwierige ein Favorit für Bräute und Brautpaare. Die alten Griechen glaubten, dass das Tragen Perlen würden Harmonie in einer Ehe zu fördern und verhindern, dass Brautpaar aus Tränen. Fragen Sie Ihren Augenoptiker, um Ihnen einen Rahmen, der gut mit Ihrem Rezept arbeiten zu wählen. Ihr Rahmen sollte Ihr Gesicht und Persönlichkeit.

Birkenstock Schuhe der Frauen sind durch eine große Auswahl an Zubehör erweitert. Socken sind in verschiedenen Designs und Stilrichtungen, die mit Birkenstock-Schuh-Materialien zu kombinieren, um maximale Luftzirkulation und die Fähigkeit zu atmen bieten zur Verfügung.

Sie erinnern Abercrombie Outlet London in der Nähe von vor zwanzig Jahren jr Markwell Curtis Davis und ich wurden kauft Timberland für dunaway Holzfirma für Provision. Wir hatten dieses Land in canneyville zum Verkauf. "Die wichtige Botschaft aus dieser Aussage ist, dass die FDA hat schließlich beschlossen, Solarium aus risikoarmen, um Geräte mäßigesumzugliedern Dies ist ein wichtiger Schritt bei der Herstellung der Öffentlichkeit über die Gefahren von Sonnenbänken. Indoor Bräunungs schädigt die Haut und ist mit Hautkrebsarten, einschließlich Melanom eine potenziell tödliche Form von Hautkrebs.

ist Ihr Körper versucht Nike Free Run 3.0

Renee, ein Verkaufsmanager bei Shiseido und ehemaliger Make-up-Künstler, hat sich in mein Haus gekommen, um mit mir zu arbeiten Wunder. Es gibt Tage, da kann ich nicht sagen, ob ich auf Make-up oder nicht, was für eine noncelebrity Nike Free Run 3.0 wie ich kann nicht eine gute Sache setzen.

Babykleidung muss den strengsten Standards für Chemikalien einhalten). So ist die Frage, wie Chemikalien in der Kleidung hat eine der Haftung für die Risikokontrolle der Branche mit den Verbrauchern offensichtlich erwarten Produkte keine Gefahr für ihre Gesundheit darstellen zu groß.

Brown Shoe Company, Inc. (NYSE: BWS) ist ein $ 2600000000, global, Schuh-Unternehmen, die Verbraucher und ihre Bedürfnisse an erste Stelle setzt, indem sie auf die strategische Familie, Healthy Living und Contemporary Fashion-Plattformen. Ich bin 20ib über Gewicht und ich beschlossen, es zu kaufen, da ich jeden zweiten Tag zu Fuß von meinem Arbeitsplatz zu Hause. Ich brauchte eine neue Schuhe und diese Schuhe sieht gut aus und geben gute Unterstützung.

Terrain ist vertikal mit einer Menge von großen Felsbrocken. Er ging in die höchste Lage und das ist, wo er gefunden wurde. Also, wenn Sie schwanger sind und erleben Geographic Zunge sind, ist Ihr Körper versucht, dir etwas sagen. Für Ihre Gesundheit und die Gesundheit Ihres Babys Sie brauchen, um die richtige Ernährung sofort zu bekommen!.

Eine andere Sache zu denken ist, dass man letztlich nicht derjenige, der zu sagen, was man bekommt sind sind. Sie können selbst einen Namen für eine buddhistisch, aber die Art, andere Menschen wahrnehmen Sie, sowohl durch wie Sie sich präsentieren und was andere von euch wissen, ist, was der sagt, was Sie sind.

Im Laufe der Jahre ging, wuchs Aspinall Beiträge. Obwohl er meist an das Geschäft Ende hat er auf ein paar Beatles-Songs zu spielen, darunter eine singende Stint auf den Refrain von "Yellow Submarine". Selbst wenn die Stichmuster und die angeschlossenen Zubehörteile sind Nike Outlet Online in einem apt Weise gepflegt, auch wir nicht haben, um in Bezug auf die Haltbarkeit auf Air Max Ltd 2 Weiß das Paar wir gekauft haben Dre Beats Sorgen. Sensing diesen sind die Männer-Schuhe, die in der Heimat des Belvedere kommen direkt nach viel Interesse an der Reihenfolge erstellt, dass sie in der Lage, für einen längeren Zeitraum eingesetzt werden sollen.

Stattdessen Drücken der Taste zeigt EFn alternative Rollen für sechs weitere Tasten auf der Rückseite der Kamera. Diese können individuell gestaltet werden und eine Bildschirmaufforderung macht es einfach, zu sehen, was jeder Taste zugeordnet. Gangnam Style-Kerl weltweit beliebtesten viralen Video bietet viele Möglichkeiten Kostüm inspiriert durch südkoreanische Sänger Psy. Versuchen rosa Shorts, ein weißes Hemd mit Kragen mit den hochgekrempelten Ärmeln, eine orange Weste und Sonnenbrille tortoiseshellrimmed für die unvergesslichen Pool-Look.