1 00:00:00,000 --> 00:00:02,790 2 00:00:02,790 --> 00:00:04,790 SPEAKER 1: Well at the end of the day, computers 3 00:00:04,790 --> 00:00:08,180 are using what is their input, really just electricity, right? 4 00:00:08,180 --> 00:00:12,080 Probably the only thing all of us do every day or every couple of days 5 00:00:12,080 --> 00:00:16,190 with our laptop or desktop or phone is either make sure it's still plugged 6 00:00:16,190 --> 00:00:18,860 in or to plug it in so as to charge it. 7 00:00:18,860 --> 00:00:20,840 So the only physical input to our devices 8 00:00:20,840 --> 00:00:22,692 these days is electricity in some form. 9 00:00:22,692 --> 00:00:25,400 And we don't have to get into the nuances of what electricity is, 10 00:00:25,400 --> 00:00:29,690 but I think it's about electrons flowing into the device so as to charge it. 11 00:00:29,690 --> 00:00:32,390 So it suffices for our purposes to know that there's 12 00:00:32,390 --> 00:00:35,870 some physical input to the device, these computers and phones that we use, 13 00:00:35,870 --> 00:00:36,780 but that's it. 14 00:00:36,780 --> 00:00:40,460 And so if we harness this electricity, maybe we 15 00:00:40,460 --> 00:00:42,690 can start to represent information with it. 16 00:00:42,690 --> 00:00:45,980 For instance, here is a light bulb, this old ghost lights in the theater here 17 00:00:45,980 --> 00:00:47,310 that's currently off. 18 00:00:47,310 --> 00:00:49,370 But it has the ability to turn on. 19 00:00:49,370 --> 00:00:52,710 We just need to plug it in or throw on a switch. 20 00:00:52,710 --> 00:00:55,550 And if that's the case, what's really quite 21 00:00:55,550 --> 00:00:58,105 compelling about the metaphor of using lights 22 00:00:58,105 --> 00:01:00,230 is that right now this light bulb is currently off. 23 00:01:00,230 --> 00:01:02,180 But as soon as I allow electricity to flow 24 00:01:02,180 --> 00:01:06,560 as by plugging it in or maybe throwing a switch, now it's of course, on. 25 00:01:06,560 --> 00:01:09,620 And if I unplug it or throw the switch again, it's off. 26 00:01:09,620 --> 00:01:12,170 Or if I plug it back in, it's on. 27 00:01:12,170 --> 00:01:14,990 And the implication of this very simple idea 28 00:01:14,990 --> 00:01:18,560 is that we can take a physical device, like a single light bulb 29 00:01:18,560 --> 00:01:22,160 and by plugging it in or unplugging it, we can represent information. 30 00:01:22,160 --> 00:01:23,220 What did I just do? 31 00:01:23,220 --> 00:01:25,632 I represented the light bulb being off or on. 32 00:01:25,632 --> 00:01:27,590 But we can just call off and on something else. 33 00:01:27,590 --> 00:01:30,240 We can call them zeros and ones. 34 00:01:30,240 --> 00:01:32,360 And so this really is the germ of an idea 35 00:01:32,360 --> 00:01:36,620 that gave us computers and with it, their use of the binary system. 36 00:01:36,620 --> 00:01:39,830 If at the end of the day all they have is physical input is electricity, 37 00:01:39,830 --> 00:01:43,760 well, let's just use that to harness and keep track of information. 38 00:01:43,760 --> 00:01:47,270 Let's store a little bit of electricity when we want to represent a one 39 00:01:47,270 --> 00:01:49,940 and let's let go of that electricity in some sense 40 00:01:49,940 --> 00:01:53,040 when we want to represent a zero instead. 41 00:01:53,040 --> 00:01:56,030 And so because the input to computers is so simple 42 00:01:56,030 --> 00:01:59,690 thus gives us the zeros and ones that we now use. 43 00:01:59,690 --> 00:02:02,060 But we seem to have created a problem for ourselves. 44 00:02:02,060 --> 00:02:07,640 If we only have one light bulb or one switch, if it's off, it might be zero. 45 00:02:07,640 --> 00:02:09,710 If it's on, it might be a one. 46 00:02:09,710 --> 00:02:12,110 But how do I count higher than one? 47 00:02:12,110 --> 00:02:14,390 That problem still fundamentally remains. 48 00:02:14,390 --> 00:02:16,760 Well, I could, of course, use more light bulbs. 49 00:02:16,760 --> 00:02:17,990 So let me ask this. 50 00:02:17,990 --> 00:02:22,220 If we were to use three light bulbs, how high could we count? 51 00:02:22,220 --> 00:02:26,690 So with one light bulb, we can count from zero to one, two possibilities. 52 00:02:26,690 --> 00:02:29,060 But with three light bulbs, how high could we count? 53 00:02:29,060 --> 00:02:31,790 Well, let me go ahead and ask this question here on the screen. 54 00:02:31,790 --> 00:02:34,430 In just a moment, you'll see on your side 55 00:02:34,430 --> 00:02:40,200 this particular question via which you can respond on your device. 56 00:02:40,200 --> 00:02:43,640 How high can you count with three light bulbs? 57 00:02:43,640 --> 00:02:46,010 So instead of one, I give you three. 58 00:02:46,010 --> 00:02:49,190 Each of which can be on or off. 59 00:02:49,190 --> 00:02:51,710 How high can we perhaps count? 60 00:02:51,710 --> 00:02:54,990 So you'll see on the screen here the answers coming in. 61 00:02:54,990 --> 00:02:57,560 We have a lot of folks thinking 60 plus percent 62 00:02:57,560 --> 00:03:00,710 that it's 8 is the highest you can count. 63 00:03:00,710 --> 00:03:02,030 A lot of you think it's 7. 64 00:03:02,030 --> 00:03:05,030 And some of you also think it might be 3 or 2. 65 00:03:05,030 --> 00:03:07,760 So that's actually an interesting range of answers. 66 00:03:07,760 --> 00:03:10,050 And let's see what might actually be the case. 67 00:03:10,050 --> 00:03:14,060 Well, let me cut back over to three actual light bulbs here, all of which 68 00:03:14,060 --> 00:03:14,690 are off. 69 00:03:14,690 --> 00:03:17,480 And most naively, I think if we were to turn these light bulbs 70 00:03:17,480 --> 00:03:20,750 on if they currently represent zero, obviously I could turn one on 71 00:03:20,750 --> 00:03:21,800 and we could call it one. 72 00:03:21,800 --> 00:03:24,920 Then I could turn the second one on, and call it two. 73 00:03:24,920 --> 00:03:27,950 Turn on the third one, and now with all three on, we could say now, 74 00:03:27,950 --> 00:03:29,195 we're representing three. 75 00:03:29,195 --> 00:03:31,070 But we're not really being clever enough just 76 00:03:31,070 --> 00:03:33,380 yet if we're only counting as high as three 77 00:03:33,380 --> 00:03:36,350 because I'm just turning them on in this story left to right. 78 00:03:36,350 --> 00:03:38,240 But what if we were a little more clever. 79 00:03:38,240 --> 00:03:41,810 Maybe we turn them on right to left, or maybe we kind of permuted them 80 00:03:41,810 --> 00:03:43,010 in different directions. 81 00:03:43,010 --> 00:03:45,830 That is we took into account not just how many bulbs are on 82 00:03:45,830 --> 00:03:50,450 or how many fingers are in the air but rather the pattern of on 83 00:03:50,450 --> 00:03:52,583 and off light bulbs that we've created. 84 00:03:52,583 --> 00:03:53,750 So let's just count this up. 85 00:03:53,750 --> 00:03:56,750 So let me somewhat systematically turn some of these bulbs on here 86 00:03:56,750 --> 00:03:57,920 albeit virtually. 87 00:03:57,920 --> 00:03:59,570 Here might be one. 88 00:03:59,570 --> 00:04:01,130 Here might be two. 89 00:04:01,130 --> 00:04:02,217 Here might be three. 90 00:04:02,217 --> 00:04:04,050 But then we're kind of done with that story. 91 00:04:04,050 --> 00:04:05,633 So how might we do it a little better? 92 00:04:05,633 --> 00:04:07,010 Well, start again at zero. 93 00:04:07,010 --> 00:04:08,480 Here might be one. 94 00:04:08,480 --> 00:04:10,370 Why don't we call this two? 95 00:04:10,370 --> 00:04:12,620 Why don't we call this three? 96 00:04:12,620 --> 00:04:14,720 Why don't we call this four? 97 00:04:14,720 --> 00:04:19,220 Call this five, this six, and this seven. 98 00:04:19,220 --> 00:04:22,100 Now, it's fine if you didn't quite see what pattern I was following. 99 00:04:22,100 --> 00:04:26,870 But take my word for it that was a unique pattern of light bulbs 100 00:04:26,870 --> 00:04:28,370 eight total times. 101 00:04:28,370 --> 00:04:31,648 I started at off, off, off, and I ended at on, on, on. 102 00:04:31,648 --> 00:04:33,440 But along the way, there were indeed eight. 103 00:04:33,440 --> 00:04:34,673 But how high can I count? 104 00:04:34,673 --> 00:04:37,340 Well, it kind of depends on what number you start counting from. 105 00:04:37,340 --> 00:04:41,630 And just as we thus far have been doing, computer scientists do all the time. 106 00:04:41,630 --> 00:04:43,910 Computer scientists, and in turn computer programs 107 00:04:43,910 --> 00:04:47,090 typically start counting from zero just because it makes sense 108 00:04:47,090 --> 00:04:49,880 because when everything is off, you might as well call that zero. 109 00:04:49,880 --> 00:04:53,870 So if we start counting at zero, and we have eight possible patterns 110 00:04:53,870 --> 00:04:56,390 that we just saw pictorially, well, that would 111 00:04:56,390 --> 00:04:58,400 allow us to count as high as seven. 112 00:04:58,400 --> 00:05:01,550 So from zero to seven, so seven is the highest 113 00:05:01,550 --> 00:05:03,210 we can count with three light bulbs. 114 00:05:03,210 --> 00:05:06,870 So those of you who propose that seven was the answer, 36% of you 115 00:05:06,870 --> 00:05:08,490 were indeed correct. 116 00:05:08,490 --> 00:05:13,590 57% of you who said eight are correct if you assume we start counting at one, 117 00:05:13,590 --> 00:05:16,218 and that's fine, but at least in the computing world now, 118 00:05:16,218 --> 00:05:18,510 we'll generally by convention start counting from zero. 119 00:05:18,510 --> 00:05:22,970 But you are correct to say that there's eight such possibility. 120 00:05:22,970 --> 00:05:24,000