1 00:00:00,000 --> 00:00:03,420 SPEAKER 1: This is the iconic CS50 phone book tear. 2 00:00:03,420 --> 00:00:07,050 David J. Malan does it every year, but what does it actually mean? 3 00:00:07,050 --> 00:00:10,440 He does it to illustrate an efficient algorithm, a concept that's 4 00:00:10,440 --> 00:00:12,460 very important to computer science. 5 00:00:12,460 --> 00:00:15,990 Let's say you need to find a name in a phone book, an inefficient way 6 00:00:15,990 --> 00:00:19,470 to do this would be to check every page until you find the right one. 7 00:00:19,470 --> 00:00:21,180 That would take ages. 8 00:00:21,180 --> 00:00:24,962 An efficient way, however, would be going to the middle of the phone book 9 00:00:24,962 --> 00:00:26,670 and seeing if the name you're looking for 10 00:00:26,670 --> 00:00:28,950 is contained in one or the other half. 11 00:00:28,950 --> 00:00:31,350 Once you know which half you need, you can literally 12 00:00:31,350 --> 00:00:32,759 throw away the other half. 13 00:00:32,759 --> 00:00:35,940 You do that until you get to the name you need and ultimately 14 00:00:35,940 --> 00:00:39,780 end up saving tons of time, or in the case of CS, computing power. 15 00:00:39,780 --> 00:00:44,450 Check out CS50 Lecture 3 on YouTube to learn more about algorithms.