1 00:00:00,012 --> 00:00:04,899 Welcome back. Tom Morley, Games without Chance. 2 00:00:04,899 --> 00:00:11,824 Actually that's not so bad. There's some game you play with these. 3 00:00:11,824 --> 00:00:16,547 I, I, it, it has chance in it, so we won't use it. 4 00:00:16,548 --> 00:00:26,035 We're looking now at examples from Nim and let's look at it. 5 00:00:26,035 --> 00:00:35,435 Now, Nim is an example of an impartial game, so what we're going to do is 6 00:00:35,435 --> 00:00:44,174 abbreviate impartial games like this. So what this means is the left player has 7 00:00:44,174 --> 00:00:50,714 the option of moving to a Nim heap size 0, 1, 3, or 7 and the right player has 8 00:00:50,714 --> 00:00:57,182 exactly the same options. The right player can, can move to a Nim 9 00:00:57,182 --> 00:01:05,125 heap size 0, size 1, size 3, or size 7. Now, my claim is, so we neither leave 0 on 10 00:01:05,125 --> 00:01:13,177 the table, leave 1 on the table, leave 3 on the table, or leave, let's see how many 11 00:01:13,177 --> 00:01:18,150 more do we need. Leave 7 on the table and then the other 12 00:01:18,150 --> 00:01:25,926 player can do so why is the, okay oh, all at once kind of proof like there in the 13 00:01:25,926 --> 00:01:28,490 camera. So, so that's the game. 14 00:01:28,490 --> 00:01:33,977 Now this is not by itself, not an interesting game, but you can be part of a 15 00:01:33,977 --> 00:01:38,719 larger, a larger Nim game with other stacks of coins on the table. 16 00:01:38,719 --> 00:01:44,520 Now, let's analyze this, in terms of analyzing this, my claim is, this is a 17 00:01:44,520 --> 00:01:48,242 disguised version of a Nim heap of size 2. Why? 18 00:01:48,242 --> 00:01:53,196 Let's take a look what you can do with a nim heap of size 2. 19 00:01:53,196 --> 00:01:58,472 With a nim heap of size 2, you can leave no coins on the table. 20 00:01:58,472 --> 00:02:05,714 That's star 0 or you can remove one coin, and leave one coin on the table and that's 21 00:02:05,714 --> 00:02:09,972 star 1. So that's, that's star 2. 22 00:02:09,972 --> 00:02:18,916 Now, this up here, these two moves don't do you any good, because they reverse. 23 00:02:18,916 --> 00:02:27,230 If, if you put down three coins, another player removes one, we're left back with 24 00:02:27,230 --> 00:02:31,409 star 2. If you put down 7 coins instead, one, two, 25 00:02:31,409 --> 00:02:37,881 three, four, five, six, seven, then the other player removes 5 is that right? 26 00:02:37,881 --> 00:02:43,386 Is that how you do arithmetic? Check it with your calculators. 27 00:02:43,386 --> 00:02:48,556 Okay, and then you're left with two. So these two moves are reversible. 28 00:02:48,556 --> 00:02:55,538 If you ever make those two moves, the other player can reverse, strike back to 29 00:02:55,538 --> 00:03:00,054 star 2, so this impartial game is actually star 2. 30 00:03:00,054 --> 00:03:04,710 It's actually the same as an n heap of size 2. 31 00:03:04,710 --> 00:03:11,507 Try one for yourself. How, what about this one, star 1, star 0, 32 00:03:11,507 --> 00:03:17,372 star 2, star 101. Try that, see what you can get. 33 00:03:17,372 --> 00:03:25,967 You should conclude that this is the same as an n heap of size three. 34 00:03:25,967 --> 00:03:33,314 Short module this time. You all come back now you hear.