benjamin casey c s 329 e spring 2009 - boston … your partner gives you a non-zero nim-sum, it is...
TRANSCRIPT
![Page 1: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/1.jpg)
Benjamin CaseyC S 329 ESpring 2009
![Page 2: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/2.jpg)
The setup:
2 players take turns picking circles from each row (we call the rows “heaps”).
At each turn, at least 1 circle has to be picked. A player cannot pick from more than 1 row.
![Page 3: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/3.jpg)
Variants played since ancient times
resemblance to Chinese “picking stones”
Current name and theory developed by C. Bouton of Harvard in 1901
name taken from German nimm meaning “take”
![Page 5: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/5.jpg)
Player 1 takes 2 from heap 2
Player 2 takes 1 from heap 1
Player 1 is forced to take the last one
Player 2 wins!
![Page 6: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/6.jpg)
Theory completely solved for any number of heaps/objects by C. Bouton
Based upon binary digital sum of heap sizes
also known as “nim-sum”
![Page 7: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/7.jpg)
▪ Write the size of each heap in binary
▪ Add the sizes without carrying
▪ Simple rule of thumb:
Column w/ even # of 1’s = 0
Column w/ odd # of 1’s = 1
![Page 8: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/8.jpg)
1 0
1 1
= 0 1
1 0
1 0
= 0 0
![Page 9: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/9.jpg)
Winning strategy: finish each move such that the nim-sum is zero
If your partner gives you a non-zero nim-sum, it is always possible for you to make it into a zero nim-sum.
If your partner gives you a zero nim-sum, it is never possible for you to keep it at a zero nim-sum. You will have to change it into a non-zero nim-sum.
![Page 10: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/10.jpg)
= 101
010
011
100
010
011
= 000
001
![Page 11: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/11.jpg)
When the next move will result in heaps of size 1.
Normal play: Move such that an even number of heaps of size 1 remain. Here, you will lose with Normal play!
Misère play: Move such that an odd number of heaps of size 1 remain.
![Page 12: Benjamin Casey C S 329 E Spring 2009 - Boston … your partner gives you a non-zero nim-sum, it is alwayspossible for you to make it into a zero nim-sum](https://reader031.vdocuments.mx/reader031/viewer/2022030504/5ab0c0d97f8b9a1d168bb8aa/html5/thumbnails/12.jpg)