1 00:00:00,000 --> 00:00:02,730 2 00:00:02,730 --> 00:00:06,250 SPEAKER: And so we can do this just for fun with these little cardboard bricks 3 00:00:06,250 --> 00:00:06,750 here. 4 00:00:06,750 --> 00:00:10,490 For instance, if I want to build a pyramid of height 4, how do I do it? 5 00:00:10,490 --> 00:00:12,940 Well, I can build a pyramid of height 3. 6 00:00:12,940 --> 00:00:15,580 Let me go ahead and build a pyramid of height 3. 7 00:00:15,580 --> 00:00:18,040 How do I build a pyramid of height 3? 8 00:00:18,040 --> 00:00:19,600 Well, I build a pyramid of height 2. 9 00:00:19,600 --> 00:00:20,475 And then I add to it. 10 00:00:20,475 --> 00:00:23,440 Well, OK, how do I build a pyramid of height 2? 11 00:00:23,440 --> 00:00:25,270 Well, you build a pyramid of height 1. 12 00:00:25,270 --> 00:00:26,163 How do I do that? 13 00:00:26,163 --> 00:00:27,580 Well, you just put the brick down. 14 00:00:27,580 --> 00:00:29,620 And so here's where things kind of bottom out. 15 00:00:29,620 --> 00:00:31,780 And it's no longer a cyclical argument. 16 00:00:31,780 --> 00:00:34,030 You eventually just do some actual work. 17 00:00:34,030 --> 00:00:38,260 But in my mind, I have to remember all of the instructions you just gave me, 18 00:00:38,260 --> 00:00:39,530 or I gave myself-- 19 00:00:39,530 --> 00:00:43,210 I had to build a pyramid of height 4, no; 3, no; 2, no; 1-- 20 00:00:43,210 --> 00:00:44,630 now I'm actually doing that. 21 00:00:44,630 --> 00:00:46,390 So here's the pyramid of height 1. 22 00:00:46,390 --> 00:00:49,090 How do I now build the pyramid of height 2? 23 00:00:49,090 --> 00:00:50,710 Well, rewind in the story. 24 00:00:50,710 --> 00:00:54,310 To build a pyramid of height 2, you build a pyramid of height 1. 25 00:00:54,310 --> 00:00:56,270 And then you add one more layer. 26 00:00:56,270 --> 00:01:01,420 So I think to add one more layer, I essentially need to do this. 27 00:01:01,420 --> 00:01:03,170 Now, I have a pyramid of height 2. 28 00:01:03,170 --> 00:01:06,460 But wait a minute, the story began with, how do I build a pyramid of height 3? 29 00:01:06,460 --> 00:01:09,070 Well, you take a pyramid of height 2, which I have here, 30 00:01:09,070 --> 00:01:10,790 and you add an additional layer. 31 00:01:10,790 --> 00:01:12,730 So I've got to build this additional layer. 32 00:01:12,730 --> 00:01:17,320 I'm going to go ahead and give myself the layer, the layer, the layer. 33 00:01:17,320 --> 00:01:21,340 And then I'm going to put the original pyramid of height 2 on top of it. 34 00:01:21,340 --> 00:01:23,980 And voila, it's a pyramid of height 3 now. 35 00:01:23,980 --> 00:01:25,032 Well, how did I get here? 36 00:01:25,032 --> 00:01:26,740 Well, let me keep rewinding in the story. 37 00:01:26,740 --> 00:01:28,600 The very first question I asked myself was, 38 00:01:28,600 --> 00:01:30,370 how do you build a pyramid of height 4? 39 00:01:30,370 --> 00:01:32,440 Well, the answer was build a pyramid of height 3. 40 00:01:32,440 --> 00:01:32,940 Great. 41 00:01:32,940 --> 00:01:33,470 That's done. 42 00:01:33,470 --> 00:01:35,510 Then add one additional layer. 43 00:01:35,510 --> 00:01:38,410 And if I had more hands, I could do this a little more elegantly. 44 00:01:38,410 --> 00:01:40,490 But let me go ahead and just lay this out. 45 00:01:40,490 --> 00:01:43,450 Here's the new level of height 3. 46 00:01:43,450 --> 00:01:47,170 And now I'm going to go of a width 4. 47 00:01:47,170 --> 00:01:52,370 Now I'm going to go and put the pyramid of height 3 on top of it until, voila, 48 00:01:52,370 --> 00:01:56,110 I have this form here of Mario's pyramid. 49 00:01:56,110 --> 00:02:00,160 So it's a bit cyclical, in that every time I asked myself 50 00:02:00,160 --> 00:02:02,523 to build a pyramid of a certain height, I kind of 51 00:02:02,523 --> 00:02:04,690 punted and said, no, build a pyramid of this height. 52 00:02:04,690 --> 00:02:05,770 No, build a pyramid of this height. 53 00:02:05,770 --> 00:02:07,340 No, build a pyramid of this height. 54 00:02:07,340 --> 00:02:13,060 But the magic of that algorithm was that there was constantly this, 55 00:02:13,060 --> 00:02:16,960 do a little more, work build a layer, do a little more work, build a layer. 56 00:02:16,960 --> 00:02:21,490 And it's in that implicit building of layer after layer after layer 57 00:02:21,490 --> 00:02:25,680 that the pyramid itself, the end goal, actually emerges. 58 00:02:25,680 --> 00:02:27,000