>> Давид: Ласкаво просимо, мене звати Девід Мала, і це є CS50. І це не ваш типовий школі інформатики звичайно. Цей курс дещо особливе. І це не тому, що я навчаю його. це тому, що це один з, ми хотіли б думати, ті рідкісні курси, які насправді стискає ваш мозок так багато і розклад настільки, що до кінця семестру ви щиро вважають, розумніший. Таким чином, це було так, як я відчував, коли я сама взяла цей курс у 1996 році. Я був основним уряду на той час тут живуть у будинку Матер. І, I. [Пожвавлення] як і інші, інші п'ять там. Отже, я був урядовим основних на той момент. І я був уряд основні тому що я завжди любив історію. Я любив конституційного права у вищій школі. Так от, я відправився в цьому році шлях першокурсників робити, що я роблю краще, робити те, що я знав, що я любив. І я завжди була трохи Комп'ютерники, я завжди балакав з комп'ютерами. Але, я, може бути, ні парадоксально, оглядаючись назад, я завжди розглядав хлопці, які брали інформатики в моїй школі, друзі мої, як реальні вундеркіндів. І все ж, нарешті, зробили, на другому курсі мені скористатися цією невеликою курс під назвою "CS50, які фактично налякав мене своїм року першокурсник. І я був помічником користувач в даний момент. Отже, я, звичайно, вже кваліфікованих, принаймні, бути серед тих, ці вундеркінди, хто я висміював у середній школі. Але, мені стало страшно. Існує, він цю репутацію в той час і, можливо, до цих пір в частині, що було страшно звичайно. Було багато роботи. Важко було і тим не менш, це одна з тих речей, де, боже мій, кора набагато гірше, ніж свої зуби. Я опинився на другому курсі, в перший раз, на самому справі знаходження домашні розваги. І я кажу це не лише крок цей курс для вас. Це був справжній реалізації для мене. Тепер, я думаю, в один момент, я не заперечую, лінії істинного geekdum, де я дійсно використовуються з нетерпінням очікуємо в п'ятницю ввечері, тому що може згорнутися калачиком на очах у маленької MacBook і працювати на множинах CS50 проблема. Таким чином, у цей момент, я думаю, ясно перетнути лінію. І наша мета цього курсу полягає не в свою чергу, всіх вас у тому, що людина, але, щоб тільки сказати, що є дещо що особливого в цьому, звичайно, дещо особливе комп'ютерні науки в цілому особливо в ці дні. І ще пристосуватися, ми всі отримали в технології, тим більше ми іграшки носити в кишені, які самі комп'ютери. Я маю на увазі, мій iPhone насправді високопродуктивні комп'ютера, ніж мій ноутбук був у коледжі. Ви можете зробити багато речей акуратним з такими речами. І ось, більшість з нас у цій кімнаті, ймовірно, просто використовувати чужі програми, кошти інших людей, вирішення інших людей на проблеми, оскільки ми йдемо до Itunes, ми завантажити програму з магазину додатків і Білга ми можемо зробити щось дійсно здорово. Але, в кінці цього семестру, ви можете бути людина, що робити проблем. Ви можете бути особа рішення деякої проблеми, будівлі, ок, що частина програмного забезпечення, що інструмент, який теж, один тільки мене забавляє, розважає вас. Наприклад, обмеження, скажімо, ваш ITunes бібліотеку з квартири чітко програма, яка вже існує, або ви можете знайти трансфер графіки легше, наприклад. Таким чином, справді, одна з перших речей, які я зробив після того, CS50 знову, вона, ймовірно, в цей момент в п'ятницю увечері і суботу, то ця можливість на час, коли Гарвард був працює автобусів. І до цього дня, вони все одно надрукували графіки. Але в цьому не було коштів онлайн дізнатися, коли наступний трансфер був. Тепер, я не думав, тому що, хоча я жив у Матер я не був серед тих, хто зазвичай займає трансфер. Але у мене було багато друзів у Pfoho наприклад. І один з них запитав мене, я думаю, в одній точці. [Пожвавлення] Добре Pfoho краще, ніж очевидно Матер. Так, один з моїх друзів на зразок мене думати що я можу написати невелику програму, щоб така допомога моїх друзів перевірити трансфер графіки. І таким чином народився ніяково імені трансфер хлопчик, цей шматок лексики, яка залишилася в протягом деякого кількості років принаймні у деяких з старшокласників. У той час це була ця маленька програма командного рядка близькі за духом Dos. Він працював у середовищі UNIX. Таким чином, це було не дуже сексуальний взагалі. Ви просто ввели пара команд і він розповідав вам, коли шатли були. Ну, в ці дні, це трохи складніше. І це насправді являв саме типи проектів, які студенти даного курсу в кінцевому підсумку зробити за строками закінчення. Так от, це версія 4, в 15 років, з Shuttleboy. Здається, Карти Google в даний час існує досить повільно. Але для тих з вас, хто має отримати звідси після уроків і перейти, скажімо, від Меморіального залу і повинні йти, скажімо, Quad. Ну, ви можете залишити в 2 хвилин, якщо на це насправді не працює для вас просто, або у Вас є багато інших варіантів, як хотілося б. І, найближчим часом, ми можемо крок це від CS50, це буде та ж можливість по SMS. Ви можете Shuttleboy текст по телефону. Ви називаєте Shuttleboy. телефонний номер CS50 в цьому році, ну, це дивно, що є, 617-BUG-CS50. Так, що буде дебютувати в найближчим часом. Так що не називати його просто ще тому, що я отримав догану за, зараз він прямує в мобільний телефон нашій системі навчання голову хлопця. Таким чином, ви просто отримаєте його, якщо у вас є питання про човникових графік зараз. Але, що незабаром буде реалізований. Таким чином, інші речі, насправді, що ми самі провели це літо насправді в рамках підготовки в цьому семестрі був цілий букет інших проблем, які ми хотіли б вирішити. Наприклад, є багато речей, що відбувається в кампусі на той чи інший день. І справді, інакше кажучи, є багато речей відбувається в кампусі, що я, звичайно, ніколи не скористатися. І хоча зараз я переповнений, скільки те, що відбувається, на території кампуса, я до сих пір здається, ніколи не знайти час. Але, стін, навіть там, лекції в CS50. Ось де є, так це було, це була програма, яку ми написали для агрегування всіх подій на території кампуса. І це було те, що інші студенти в цьому ж звичайно, вирішувати самостійно. І ми працювати з іншими організаціями на території кампуса, щоб дійсно зробити це статися. Але справа в тому, щоб CS50 цей термін, що всі ці невеликі програми, які ми зараз працюємо чи це 1 або 1 на загальну усі новини Гарвардського університету в одному місці, всі новини Google, всі ці речі доведеться, що називаються API, інтерфейси програмування додатків. І це тільки фантазії говорити даючи можливість іншим людям, в цьому залі, насправді щось робити з тими самими даними. Таким чином, за термінами закінчення, якщо ви вирішите для здійснення остаточного проекту, пов'язаного з новини або події, або карти, а ми, принаймні, звичайно, буде робити все, що легше у цьому році надати вам інтерфейс свого роду функції, так би мовити, програмне забезпечення, яке можна використовувати у власних проектах, щоб виходити за рамки, де студенти, може бути, пішов у минулі часи, оскільки ця основа не була для них місце. І знову, все це почалося для мене принаймні, близько 15 років тому здійснення Shuttleboy. Я тоді майже мій друг Кен в Pfoho. Я сказала: "Ей, що ви думаєте? Чи є це корисно? Він відправив його на Pfoho відкритий список і стін, кілька років тому я мабуть, ще доїння цього проекту. І акуратні речі про нього, і це де теж звичайно, як це в інженерних і комп'ютерних наук, я думаю, мало спеціальних, в тому, що, коли ви робите ваш будинок робіт і коли ви робите ваші проекти в цьому курсі, ви знаю, багато хто з них, так, ви повинні вказати в сторону і дійсно не використовувати знову. Але деякі з них, ви будете. І є це дійсно потужна штука, принаймні для мене, це дуже цікаво справа, коли ви робите щось і інші люди на самом справі допомоги, які інші люди не просто посміхніться і Ви можете погладжувати по спині, а потім роду йти про свого власного життя. Вони фактично використовувати те, що ви зробили у своєму житті, навіть якщо він щось дурними або ж просто, як тільки пошук, коли вони зможуть вибратися звідси, щоб зловити наступний автобус до Quad. Таким чином, за термінами закінчення, це одна з цілей цього курсу; для розширення можливостей ви, хлопці, просто визначити якась проблема чи це на кампусі, або сподіватися, далеко за межами кампусу, і насправді використовувати свої навички, свій розум і вирішувати цю проблему в деяких боку, технологічно. Таким чином, це теж звичайно, як кажуть у нас в навчальний план і опис курсів посадової особи, навчить вас думати, а вчить, як вирішувати проблеми більш ефективно. Ну, що ж це означає? Ну, а коли у вас є 600 МГц в кишені або 3 ГГц під столом у себе вдома, ви можете вирішити багато проблем, ефективно лише зрушенням грубої сили. Але є багато проблем в цьому світі, будь то пошук, наприклад, мережі Facebook або в інтернет через Google, що це не має значення, наскільки швидко вашого комп'ютера, немає шляху в пеклі ви будете шукати мільярдів веб-сторінок, швидко, якщо ви не підходити до цієї проблеми з розумінням. Ви не просто пошук, наприклад, величезний список всіх веб-сторінок, на землі, зверху вниз дивлячись на те, що відноситься до будь-якої умови пошуку ви шукаєте сподіватися, Google і, можливо, Google і Facebook, і будь-який з цих великих підприємств є багато розумних людей, думаючи про те, як вони можуть знайти дані більш швидко, як вони можуть обробляти інформацію більш ефективно, і, як вони можуть просто зазвичай повертають результати швидше, так що ви можете зробити ще більш цікаві речі, з цими пристроями. Отже, що ми маємо на увазі, хоча, як, навчати людей, як думати більш ретельно, більш алгоритмічно. Ну, це трохи візуальних завжди здається, що перейти добре. І, схоже, щоб запам'ятатися надовго. І я навіть попросив тільки вчора колишній студент, ах ви збираєтеся робити в телефонній книзі саме. І я майже на місці, вирішив добре, що ми будемо створювати телефонну книгу річ. І він запитав мене, коли ти розірвав її навпіл право, я був як ну так технічно ми розірвав її навпіл, але не в тому сенсі, в тому, як комп'ютерні науки я буду в змозі розірвати цю штуку в два рази. І так, ось завдання, яке ми представили на деякий час. Отже, ось книга. Там есть по крайней мере в тисячу сторінок. І проста мету під рукою дуже реальний світ, щоб знайти, скажімо, людина тут. Таким чином, Mike Smith, прізвище, починаючи з С. Так от, я типовий людини, я візьму цю телефонну книгу. І хто там, що б ви, типової людини, зробити, щоб почати пошук Mike Smith, очевидно, не знаючи заздалегідь, на якій сторінці він дійсно далі. Право, ви переходите приблизно в середині, так. І в цей момент у цій історії, я, ймовірно, в N або M's, ви знаєте, приблизно на півдорозі через телефонну книгу. Виявляється, в останній раз я зробив це приклад, який я якимось чином опинився в супроводі розділі. Таким чином, він насправді не в рівній мірі збалансовані через M та N до Z. Але сьогодні, ми, по суті, в M's, добре тепер, коли я перебуваю на M's. Але що моя винос тепер, як нормальна людина з вулиці? Куди йти далі по Майк Сміт. [Нерозбірливо] І от, ймовірно, на цю половину, правильно, тому що S поставляється М. І ось, в цьому і полягає візуальної драматургії. Це не зовсім розірвавши його навпіл, справа. Я ніби обдуреними посередині. Але, тепер ми знаємо, що Майк, принаймні не в тому, що половину. Ми можемо буквально викинути половину від вирішення проблеми. І я залишився з проблемою, що докорінно все те ж саме, знайти Mike Smith справді велика книга. Але проблема в даний час удвічі. Якщо б у тисячу сторінок, то тепер він отримав 500. Ви знаєте, що я можу зробити те ж саме ще раз. Я можу роду рекурсивно або кілька разів робити одне й те саме. Зараз я не зовсім в С. Я на Т. І так, о, я пішов занадто далеко. Але тепер я знаю, що Майк не праворуч, там буде деякий клас коли-небудь, де я просто не можу розірвати греблі справу, напевно. Але тепер я знаю, що він не правий. Отже, тепер задача була четвертували. Отже, я пішов від тисяч до 500 до 250 сторінок. І знову, якщо ви будете продовжувати логіку, як і раніше математики, я рубати цю проблему у два рази, у два рази, у півтора, поки, нарешті, я ні буду, не знайшли Сміта взагалі, навряд чи, або я буду Знайти один я шукаю. Але це, то, напрошується питання, це краще, ніж простий підхід просто кажу, ви знаєте,, Ні, B, немає, починаючи зліва направо відбувається лінійно через книгу? Ну, та інстинктивно. Це буде набагато швидше. Але, наскільки менше? Ну, якщо у мене є тисячі сторінок телефонної книги або, скажімо, 1024 для тих з вас, хто хотів повноважень два, скільки часу може я повинен розділити цю проблему у два рази, перш ніж знайшов містер Сміт? >> Десять. >> David: Отже, десять, так. Якщо у вас є 1024 сторінок, і ви розділити навпіл, в два рази, вдвічі, у два рази, я роблю це 10 разів, що означає, що я перейти від 1000 сторінок, для якого я шукаю всього 10 сторінок черги. І це акуратний вигляд, але, ви знаєте, якщо ви про це думаєте ви робили це все у вашому житті. Це не так драматично. Але тепер, що книги не тільки в Бостон, а для всієї території США й увесь світ, і ця річ мільярдів сторінок в ньому, так собі книги з 4000000000 сторінок. Скільки поворотів сторінки мені доведеться робити, щоб знайти максимально Mike Smith в 4 млрд сторінки книги? >> Log бази 2. >> David: Так що так, якщо ви начебто математики типу цього журналу бази 2. Але, якщо ви думаєте, 4 млрд у 2000 мільйонів до одного мільярда, так півмільярда. Я маю на увазі, що насправді відбувається Уітлс сам вниз чертовски швидко. Насправді з 32 halvings телефонної книги навіть з 4 мільярдів, я буду отримувати до 1 сторінки. І ось, коли цей матеріал стає потужним, я думаю. От коли ці ідеї отримати переконливі коли ви можете мати 4000000000 сторінки цієї проблеми і в 32 кроків, які можна знайти людину, якого ви шукаєте. І так, ось що ми маємо на увазі, коли ми говоримо, що ви дізнаєтесь, як думаю, більш уважно, більш алгоритмічно, більш розумно про вирішення проблем. І віддача величезна, коли ви дійсно зможете це зробити, і знову, до цієї точки Googles світу Facebooks які можуть дозволити собі розкіш мати величезні бази даних. Треба підходити до цих проблем, таким чином в іншому випадку він просто не буде працювати. Ну, що те, що зробив студент фактично нагадати? I, ми хотіли б робити те, що трохи нерозумно іноді начебто зняти гостроту того, що в іншому випадку багато нового матеріалу. І ось, він насправді, цей колишній студент прислав мені посилання на який я поїхав вперед, тільки за ногами, а потім пошкодував про це врешті-решт, зупинився на Utube тут. Так, я думав, я хотів би поділитися, що не-вчений означає, що коли він зліз книги в два рази. [Сміється] [Silence] [Нерозбірливо] >> Ви знаєте, понад 200 сторінок, красиві чисті лінії, законних сльозу. [Сміється] >> David: так, я думаю, його спосіб теж працює. Так що я вийшов із цього, звичайно, всі ці роки тому, та, Shuttleboy, а потім так ступінь з комп'ютерних наук, а потім так PHD з інформатики. І це не те, що ми намагаємося перетворити більшість студентів у цьому курсі в. Більшість з вас у цьому курсі не збирається йти на основних у галузі комп'ютерних наук. Деякі з вас можуть незначні, але для деяких з вас це буде термінал звичайно. І це абсолютно нормально, тому що цей курс є, по суті, побудовані таким чином, де навіть якщо ви просто оплатити членські внески протягом декількох місяців, і ви дійсно уваги, і Ви дійсно прийняти як багато з цього курсу, як ви можете, ви будете в Дійсно, добре оснащений, щоб повернутися в свій світ економіки, біології, психології, прикладної математики, і фактично користуватися тим, що в кінцевому рахунку, так само цікаво, звичайно, як ми сподіваємося, концептуально це принципово практичний характер. І це теж що-небудь, можливо, трохи рідко можна зустріти. Я думав, що частка кілька зауважень, які студенти з минулої осені покласти в цьому минулому керівництво Кий роки, коли запитав про те, що б Ви хотіли сказати майбутнім студентам. Ну, а якщо ви ще не дивилися на ці зауваження, один студент говорить, цей курс буде ухвалено справедливе частина Вашого часу вгору. але, якщо ви кладете вашу роботу в абсолютно новий світ, в цілому, якщо ви поклали роботи, якщо ви поклали в роботі, добре, так це його граматики не моє, тому, якщо Ви розмістите, покласти в роботі, Цілий новий світ відкриє перед вами. Дивно, як багато я дізнався тільки в 12 тижнів. Ще один студент написав, то краще скористатися цією або ви будете шкодувати про це. Інший написав, трохи більш відверто, це удар вашу дупу і залишити вас почуття великий. І, нарешті, це один, мабуть, то я можу лише показати, в письмовому вигляді, але, другий знизу тут. [Сміх] Отже, я не впевнений, якщо у вас є багато друзів, які взяли цей курс, але ми як-то робили багато шкоди для студентів у минулому році. Ми ввели на початку, кілька лекцій, в декількох вікторинах, пара множин проблеми, це поняття LOLcats. Ви не можете побачити, що я можу бачити тут, а в момент, коли ви побачите, молодий чоловік на ім щасливого кота, який є лідером так званого Lolcat. Це одна з дурних передає інтернет, що я думаю прямо на протиріччя між цими двома джентльменами, що тут і зараз у нас на екрані може бути. [Сміється] Один з найбільш неналежного використання цього театру на сьогоднішній день. І чому б нам не зробити трохи більше реального трохи більше особистих це поняття насправді вирішення проблеми більш ефективно. Просте завдання на день один зі школи це сісти або встати і почати підрахунок студентів, право повірки сортів. Ну, самі наївні, але, тим не менш, дуже правильний підхід, що вчитель може зайняти один, два, три, чотири, п'ять, шість, сім, і ми будемо тут досить багато часу. Так, що незначне поліпшення з цього навіть, що ви могли б зробити, як дитина? Як ви вважаєте людей швидше? І не почати читати з моєї власної інструкції? Що б ти зробив, як дитина? Початок підрахунку двоє, право, як і я досить добре на 2, 4, 6, 8, 10, 12. Отже, ось щось цікаве права. Отже, скільки на поліпшення в тому, що там? Так що, очевидно, в два рази. Він приймає мене в два рази менше часу. Але, ви знаєте, що, як ми знайдемо протягом цього півріччя, велика справа, як прискорити занедбаному часу тільки два рази не все, що цікаво, тому що тут, в аналоговий комп'ютерний світ у тому, що я процесора Я комп'ютер, а чорт візьми, якщо я просто чекати 12 місяців, 18 місяців, я тільки що комп'ютер буде мати можливість за своїм характером, за кількістю гігагерц Я маю на мене можуть розраховувати люди в цій кімнаті швидше. Таким чином, ці види, ці види лінійних прискорень, як два рази в три рази, навіть у десять разів, кого це хвилює? Так, ми можемо кинути на апаратні проблеми. Ми можемо почекати речі. Ми можемо розвиватися швидше машин. Але, інтелектуально, та це було дуже люб'язно і розумно, але це не дуже принципово змінити цю проблему. Я як і раніше відбувається зліва направо, вперед і назад. Це дійсно той же алгоритм. Але, я пропоную, що ми можемо зробити краще. Ми можемо зробити розумніше, ніж це і робити принципово прискорити їх виконання. Але, щоб продемонструвати це, ми потребуємо вас, щоб нам гумор всього за хвилину. І на цьому місці, де вона буде мені говорити менше, а ви говорите більше. Але мені потрібно, щоб ви виконаєте крок 1 разом, що, якщо б ви гумору нам, будь ласка, встаньте. Напрямки тут, на борту, ви знаєте, добре, пара з вас сісти. Ті з вас, в спину, то ми підемо, добре. Спасибі. Таким чином, програму можна тут знаходиться перед вами. Тепер комп'ютери виконання цієї програми. Це досить пояснень у цій точці. Так, ви повинні бути номер один. Розумієш? Так, багато хто з вас, ймовірно, думаючи, що це вже в усякому разі, перший рік першокурсник. Отже, подумайте, ти номер один. Отже, крок 3 тут, на пари з ким-то постійно, додайте 2 номери разом і прийняти цю суму, як ваш новий номер, і ми зробимо осудність перевірити. [Шуми з натовпу] Чи знаєте ви, скільки у нас? >> [Нерозбірливо] >> Ні [нерозбірливо]. >> Нам потрібно мати відповідь ключ. [Silence] >> Так. [Шуми з натовпу] >> David: На даний момент алгоритм повинен бути згортається. [Шуми з натовпу] Може бути, нам слід було б піти з моїм підходом врешті-решт. >> 43. >> 163. >> David: Ooh арифметичних перед плюс 300 чоловік. [Сміється] Що наше остаточний підсумок буде? >> 180. [Сміється] >> 1200. >> 386. >> David: 386, а ви Остання один стоїш? Це все? Чи знаєте ви відповісти? >> Що? >> Давид: Ви знаєте, що відповідь? Ми не принести відповіді на основні з нами так, 386 насправді саме правильну відповідь на перший час. [Пожвавлення] [Оплески] Це нормально. [Оплески] Дуже, дуже красиво зроблено. Так в чому ж винос, тому що остаточно стало трохи повільніше, ніж на дуже простий, але тим не менш, дуже правильний підхід тільки збираєтеся onesies і twosies і просто отримати це було зроблено з зліва направо. Але, що ми дійсно тільки там робити? Ну, а якщо було грубо, скажімо, 400 з вас, стоячи на одній точці, а потім і половину з вас, дуже швидко, з чого я зрозумів, хотів сісти. Таким чином, половина з вас сіл, ми перейшли від 400 до 200 потім 100 потім 50 потім 25. Отже, ще раз, є той же "розділяй і володарюй ідея у нас з телефонної книги. Знову ж таки, з кожної ітерації ми вдвічі масштаби цієї проблеми, ми два рази, ми два рази його. Таким чином, в теорії, цей алгоритм повинен був бути набагато швидше, ніж моя лінійний підхід, тому що мій підхід взяли говорять 400 кроків або, може бути, якщо я трохи розумний, 200 кроків. Але, ваша б узяли набагато менше, праворуч від 400 до 200, 100, 50, 25, 13, 6, так що менше, ніж 10 кроків врешті-решт в порівнянні з моєю 200 або 400. І є зародок дуже цікава ідея. І так, математично, що ви тільки що зробили що-то це трохи логарифмічною в природі журналу бази 2, ми розділили на дві частини і два раз. І ми повернемося до цього пізніше в цьому семестрі. Але в цьому полягає ще раз дуже розумний реалізації. І ми просто дряпати поверхню дуже розумний дуже розумний ефективні підходи до проблем, які ми могли б у кінцевому рахунку вирішити. Отже, хто ці люди, ви тільки що розмовляли з, якщо коротко? Загальний інтерес, протягом, як це, що кожна людина, щоб ліворуч від вас, і всі права з вас повинен чітко знати, ніж ви. Ну, це абсолютно не так. І дійсно, в останні роки, цей курс, приклавши спільні зусилля, щоб охопити тих, хто менш комфортно, так би мовити. І що ми маємо на увазі не людей, які вже ніколи не брав комп'ютер, перш ніж, тому що дуже важко знайти тут ці дні, але люди, які використовують електронну пошту, використовуючи Facebook, може бути, навіть прямо зараз, але не завжди впевнені, що робити, якщо щось піде не так або, якщо вони про що не питав технологічних, чи знаєте, руки вгору або вони начебто натисніть апаратних до одного, який, можливо, краще розбираються в ній, ніж вони. Ну, ось деякі статистичні дані півріччі минулого року. Таким чином, коли його запитали, коли ми просили 400, щоб студенти в минулому році, ви знаєте, на якому рівні комфорту вступу в цей клас, а 34% писав ниць і у тих, менш комфортно. Таким чином, якщо ви прийшли в цю кімнату і все ще думаєш тепер, що, ви знаєте, що цей термін менш комфортно описує мене, знаєте, що ви перебуваєте в дуже хорошій компанії. Але, розумію також, що, якщо ви приходите в даному курсі, з досвідом роботи в галузі комп'ютерних наук і ви насправді, що Комп'ютерники в середній школі і середній школі, який писав код та навчання самі Мови, добре, що це теж добре, тому що визначено нетривіальна розмір аудиторії з урахуванням цього, а також близько 13%, останній термін. І потім, є все, на зразок тих, хто не думаю, що вони менш зручні, вони, безумовно, не думаю, що вони більш зручні, але вони просто звичайно щось отримати від нього. Таким чином, реалізувати цей курс це зробити досить спектр студентів. І зробити це в більш конкретній формі, 71% студентів, в минулому році була нульовою курси за ними. Таким чином, якщо Ви ввели цей курс мислення про всіх, хто приймає CS50 був свист інформатики в середній школі, це не той випадок. Більшість людей, імовірно, тільки зацікавленим в ній. І мало, та, абсолютно зробили ряд курсів, деякі, принаймні, одна людина у минулому році прийняв 5 курсів раніше. Таким чином, ми безумовно є викиди, але знову м'ясо кривої в цих більш низькі значення взагалі. І ще один цікавий статистичний ми розділили протягом останніх двох років, у співвідношенні статей. Таким чином, історично, по крайней мере в області комп'ютерної науки, є трохи чоловіча жіноча тел. Я пару років тому він був набагато сильніше, ніж у минулому році. Таким чином, ми майже в даний час на 40% рівні. І якщо я можу кинути виклик заради наявності третього кругова діаграма в наступному році, що навіть більш справедливим. Я хотів би зазначити, що немає абсолютно ніяких причин від курсів перспективі, що чоловіки і жінки не повинні бути надходження до такого роду, звичайно. У відносно рівних кількостях і реалізовувати на 38 відсотків, 48 відсотків, ми насправді дуже приємно бачити, що ми майже що по крайней мере, статистично парних значенням 50%. Отже, якщо ви, насправді, жінка, робити іншим теж запевнити, що це не є, насправді, де домінують чоловіки класу. Ну, це просто так сталося, буде 20-річчя в CS50. I, і дякую вам. [Пожвавлення] [Оплески] Це дуже мило з вашого боку, тому що ми принесли торт для вас насправді. І ось, коли ви вийдете тут сьогодні пізніше, ви фактично отримуєте можливість зустрітися з багатьма з курсів навчання стипендіатів, хто буде зберігається в коридорі. І так, це буде хороший роду стимули спосіб задоволення навчання стипендіатів. Але, ми беремо поїздці до маленької пекарні і знову відповідно до курсу грайливий характер, тим не менш у той час як очікує нетривіальних обсяг роботи, в той час як ми при цьому, що весело. Але у нас є один з цих тортів для вас. [Сміється] Таким чином, якщо Ви будете сміятися, що насправді добре, тому що навіть якщо ви один з тих, менш комфортно принаймні ви знаєте про це. Ті з вас, в 14 відсотків може віддати перевагу цей аромат. [Сміх] І потім, якщо ви не знаєте, що, чорт візьми, відбувається прямо зараз, у нас є для цього все інше. [Пожвавлення] [] Оплески Так що ті, в даний час рубають на шматки поза ним, як ми говоримо. І знову, давайте гостроти і принаймні ввести деякі базові орендаря, що ми будемо тоді вважати само собою зрозумілим у решті цього семестру. Таким чином, ми всі, напевно, знаєте, що комп'ютери в кінцевому рахунку зводяться до якимось чином нулів та одиниць, ці речі називаються бітами. Що це означає? Ну ви можете думати про це відверто, як лампочки, біт лампочка, або проходячи або його с. Це перемикач, це або чи це від. Тепер, комп'ютерні фахівці зазвичай думають про з а нуль довільно, і поняття про якість 1. Отже, якщо ви пролити світло включити це один вимкнути його, що в нуль. Або, що еквівалентно, увімкніть світло на це значення істинного вимкнути його, що його значення помилковою. Таким чином, це просто синоніми. Зрештою, так, все обчислення, всі речі, що відбувається під капотом в комп'ютер не в кінцевому рахунку зводяться до нулів та одиниць. І коли ви задумаєтеся про це, він дуже чудовий, що гребля в світі робити з цими основними блоками, в тому числі деякі з пристроїв ви тримаєте в руках. Ну, що ж нулів та одиниць корисним? Боже мій, навіть у реальному світі, ми, принаймні, десять цифр, від нуля до дев'яти. Чому так обмежено? Ну в апаратних умовах це дуже легко. Набагато легше представити дві держави, права. Якщо комп'ютер підключений до стіни, як правило, у вас це просто джерело бінарних характер. Це небудь чи ні. Електрика тече чи це не так. Так що начебто одна з первинних причин того, що світ зійшов з тільки нулі і одиниці в комп'ютерах. Але, ви можете використовувати їх в якості будівельних блоків. Так що це насправді маленьку на екрані, але тут ми можемо розраховувати в двійковому або ми можемо представити все, що ми хочемо в двійковому так само, як ми можемо сказати, десятковій, як ми можемо, хоча насправді, з алфавітним листа. І так, ось швидкий системи. Усього лише за кілька хвилин часу ви тепер знаєте, як рахувати, як писати, як говорити бінарних ж, як ваш власний ноутбук. Ну, у вас, у світі подвійних, ніби як клас школи або стовпці значень. Так, у початковій школі ми дізнаємося, це ті, стовпець це стовпець десятки, сотні стовпців і так далі. Іншими словами, чому це число ми знаємо, як 123 номер 123? Ну, мій вчитель навчав мене це ті колонки, це десятки, це було сотні. Ну, що ж це означає? Ну, щоб з'ясувати, що загальне значення того, що в іншому випадку рядок з цифр, тільки хеш знаки на дошці. Ну, у нас одна 100, так що це 1 раз на 100, а потім плюс те, що два 10, з тим щоб в 2 рази 10 плюс 3 з них, так що в 3 рази 1, гаразд, так що я, здається, отримав туди, де я починав. Але, це дуже простий процес, всього множення цифр значення стовпця саме те, що бінарні це все о. Але, в двійковому використанні повноважень 2 не повноваження 10. Отже, ось серію з восьми лампочок. Комп'ютерні вчені, як використовувати такі цінності, як і два 8 і 16 і 24 і 32, оскільки всі вони в цілому значення зручний у використанні. Таким чином, коли ми говоримо про 8 значень у послідовності, як це називається байт. І ці дні ми рідко говоримо всього байт, ми говоримо мегабайт гігабайт і терабайт в ці дні. Але все це в кінцевому рахунку те ж саме. Ось 8 біт AKA один байт, просто в термінології. Таким чином, всі ці лампочки не горять. Таким чином, математика насправді дуже просто. Так що справа, хоча і невеликий, щоб бачити, стовпець 1 в, двійки, четвірки, вісімки, 16, 32s, 64s, 128s. Добре, може бути, це важко запам'ятати на початку, але це просто помножується на 2 справа наліво. Таким чином, ви завжди можете відновити це. Ну, вони всі з ось 0 раз заповнювача, 0 раз заповнювача. Таким чином, це число 0 представлені в двійковому вигляді. Іншими словами, як ви пишете номер ми знаємо, як 0 в двійковому? Ну, один, два, три, чотири, п'ять, шість, сім, вісім, і технічно, як у десятковій системі, всі ці нулі, вони нічого не додають до формули вони просто там, тому що ми довільно вирішили, що нам хочу 8 з цих речей у ряді, справа. Якщо вони фізичні об'єкти, у нас є 8 тому в них є для всіх бути вимкнений. Таким чином, ми могли б просто зійти з рук один нуль. Ну, як ви уявляєте номер один? Ну, інстинктивно ви збираєтеся кинути один з перемикачів. Ви збираєтеся повернути кулька далі. Таким чином, існує номер один, тому що ми зараз поставлю 1, лампочка, ну, в позиції 1 ст. Як ми будемо представляти дві? Ну, ми насправді збирався викинути 2 вимикачі принаймні, тепер проти цієї держави, ми повинні перетворити в стовпці 2 в вимикати ті колонки і тепер ми маємо значення 1 у стовпці двоє. Таким чином, це загальна вартість 2. Тепер, швидке розумовий вправу: що трапиться в наступній послідовності? Як я можу уявити номер три? Ну, мені потрібна одна з двійок колонки, одна з трійки стовпців і ах га. Отже, тепер я збільшується, що один. І ось, цей самий основний повторює візерунок. Що номер 4? Ну давайте подивимося, мені просто необхідно 1 у стовпці рачки, а потім нулів у двійок та одиниць. Так от, він як і раніше так. І це тільки така послідовність кроків. І в понятті бінарного насправді не так вже й складно. На вершині ми маємо вісім нулів. Нижче, що у нас сім нулів та 1. Нижче, що у нас шість нулів, один, і нуль і це двійковий файл. Now, thankfully, we computer scientists, we programmers by terms end are not going to often be writing in binary, talking in binary, thinking in binary because we've built many layers of the traction on top of that. In fact, people rarely talk about bits except in a networking context they talk about bytes because one bit, not that useful, eight bits these days still not that useful, but at least eight bits, one byte is at least getting us toward more useful units of measure. But, when we start looking underneath the hood, when we do certain problems such as look at files and look perhaps at network traffic, it will become interesting to know how you're representing data because you're going to have to figure out how to display that same information. And, in fact, we, if we only have zeros and ones, how do we go about representing, say alphabetical letters? Well, we're going to have to have some mapping between binary and letters. But that's as of yet unclear. But to hammer this point home and to give me a break from speaking at, I thought I'd pause for a moment and see if we can't recruit eight volunteers, one byte eight people. Can I get eight people for whom it is not too awkward to come on up. good, good one, two, three, four, five, six, seven, eight very enthusiastic eight, come on down. So, you all, for just a moment here, oh and you have to be willing to not be on the internet because there is in fact a camera in the back of this room. So, turn back now if you don't want to be on the, hello mom, in perpetuity. So, let's see, you here will be the 128th column. And let me ask that you simply hold this before you. And actually, if you could scooch this way just a little bit, then I will get out of your way. You'll be the 64's column, you shall be the 32's column and the 16's. 32's, 16s, 8's, 4's, 2's and 1's. All right. So perfectly lined up with the place holders from before, but we need a little bit of mapping, so a quick set up. We just need an arbitrary way of mapping binary numbers, which really could be converted very easily to decimal numbers. So we need a way of converting numbers to letters if our computers are actually going to show us emails or type URL's or actually display non numeric information. And, in fact, there is a system for that, it's called ASCII, an acronym whose meaning is not so interesting, but whose utility is. This is just a mapping from letters to numbers and there's actually a lot more numbers on the screen, and you guys, don't worry, aren't going to have to test yourselves with this in just a moment. But there's a mapping between numbers and letters and I'm just going to get us started by pointing out a couple of these. The numbers of interest right now are going to be, whoops, are going to be this. Whoops. So in this column here, I can't seem to zoom in simultaneously, we have decimal. Dec for decimal. And then we have the character on the right hand side. So if I hop over into this column, thought it's a bit small on the screen, the number 65 represents what letter? Capital A. And the number 97? Lowercase A. All right. So those two alone, right, so do not go home and try to remember ASCII chart. Come quiz time, do not try memorizing an ASCII chart. Memorize two, 65 is capital A and 97 is lowercase A. And from there you can bootstrap yourself to all of the other alphabetical characters. But all this chart says, and I just downloaded this chart from ASCIItable.com, this is a standard that's been around for many, many, many years, but most computers still use it. What we now have is a means of encoding alphabetical information using what's ultimately numeric. So if these guys are just switches, light bulbs, computers, we can actually convey messages. So each of you has some hints on the back. We're going to have three rounds here where these guys are going to spell out in English, in ASCII, a very short message, a three letter word. It will involve them either raising their hand, thereby representing a one or just standing there awkwardly, thereby representing a zero. So why don't we proceed immediately with round one and you can either raise or not raise your hands. So the audience doesn't get off the hook. What number are they currently representing? 66. Right. Not hard because we have a one, a hand up in the 64s column, a hand up in the 2's column. 64 times one plus two times one is 66. They're representing the number 6, which means the first letter is B. So not too bad, right? Round two. First letter was a B. [Сміється] >> Seventy Nine. >> David: Can someone second that? Yes. All right. So 79, which means it's now an O. So B,O. There's a third letter. Actually that is kind of, yeah. Third round. Third and final round. What number is this? I heard an 87. Someone else agree? All right, yeah. This is in fact 87, which maps to, and this is a very clever set up at which point you all B, O, W, it's bow. Very good. So actually besides that little souvenir, that was not a very enthusiastic applause, so I'll take care of you. So we do have a little something for these guys here now that they just appeared on center stage doing perhaps the geekiest thing they could. So maybe if we could humor them if only because I'm feeling a little bit awkward now. A little round of applause for these guys here. [ Applause ] All yours. All right. Thank you very much. So, so, it turns out that we can take this one step further, but you are now entering a community of people who understand things like this. [ Silence ] It's slowly spreading, yes? [ Laughter ] It's not cool that you understand this now. So we've already done some damage here today, but yes, there is now such a thing as geek humor that you might just catch a little bit more on to. So what are we going to do throughout this semester? So there's 12 weeks, zero index, so 13 weeks in total. You'll find throughout the semester that computer scientists tend to count starting from zero for reasons that will soon become clear. But what we're going to do this week, starting this Friday, is introduce you to programming. Now you may already be coming at this course with a background in the same, and that's perfectly fine, but we'll also be able to introduce some more sophisticated topics than are typically covered, things like events and threading, so just to toss out a couple of buzz words for those unfamiliar. But what we're going to do is not dive into what the typically traditional language like Java or C++ or C sharp catch phrases that you might have heard in the past, but we're going to use a programming environment, a graphical programming environment that was actually developed by MIT's media lab. And this is an environment that allows you to program, quite literally, by dragging and dropping puzzle pieces that fit together logically that lets you implement these things called loops and conditions and Boolean expressions and you can actually, on day one, after this Friday, write a program that actually some of your friends might care about. So in yester year, say when you've taken a computer science course in high school, odds are one of your first programs was the equivalent of hello world, like wow mom, I just made the computer type some characters on the screen. It's a very underwhelming experience. Much more interesting is it to implement a little something like this, as one of last year's students did. So I give you the work of a former classmate. It's a love story, of sorts, about dancing cookies. [ Music ] So this was actually from a student who had never programmed before. And just to give you a teaser of this interface, and we're only going to use this for one week time, really to get the comfort levels up and to really get folks excited about what you can actually make these machines do, this is an environment where you'll be programming by, for at least a week, just dragging and dropping puzzle pieces that fit together, as we'll see, in a logical fashion. And it lets you do fun, silly things quickly. And for any of you who are a little bit familiar with things like Java and C++, it's usually a good semester or two or three before you finally get to start writing something that another person might actually enjoy watching. Well, in week one of the course, or the second week, zero index, where we dive into a little more traditional environment. In this course we'll spend much of our time on a language called C. This is one of the earliest languages that, unlike Java, actually gives us much greater access for better or for worse, to manipulating hardware and actual memory, and we can do a lot of damage with that. In fact, any time you read of web servers being exploited or computers being hacked into, very often to this day it's the result of people having run software in a language called C or C++ without sufficient care given to what are called buffer overruns or lengths of arrays, so some fairly technical concepts that are not that hard to understand, but there's been a lot of humans making a lot of mistakes for years and with this language we'll actually understand some of those security implications. But each week, typically, we'll introduce also an interesting domain that will inspire that week's problem set. So we'll also take a look this week at the field of cryptology, cryptanalysis, the notion that you can encipher information in such a way that people can't read your messages, but if clever enough perhaps you can, in fact, crack what are otherwise secret messages. In week three we'll then look at some basic fundamentals of computer science like searching and sorting and we'll actually look at this notion of recursion, how to debug things. In short, we'll take things up to the level of problem solving and not so much about mere syntax and implementing short little cookie cutter programs. In week four we'll introduce more sophisticated problems still. What does it mean to manage memory? What does it mean to run out of memory? What does it mean to actually segfault, if you've heard this expression, and odds are you haven't, but very bad things happen and frankly by terms end you'll understand terms like my code segfaulted which actually is generally not going to be a good thing. But then again, we'll introduce some domain specific stuff. So actually one of my internships during graduate school was to work for the local Middlesex County District Attorney's office doing forensic investigations in a digital sense. The local Mass state police would bring to our office hard drives and floppy disks and sometimes for no reason mice and keyboards. And we would be tasked with finding evidence. Now it turns out, maybe just an FYI, that the criminals in Cambridge, Massachusetts, at least, not necessarily that clever. Very often our forensic analysis boiled down to booting the computer up and double clicking on the My Documents folder, and therein laid the evidence. But what we'll do this week is give you a sense of what it actually means to store information on a hard drive, on a flash drive, and why can't otherwise private information be disclosed to third parties when you drop off a computer to be repaired or even when you discard it. Well someone might very well be sifting through those hard drives and it's really not that hard to find data if you know how to look for it. Well, in week five we'll look at more sophisticated data structures, tools and techniques that you can use ala phone books and ala searching huge data sets much more intelligently. And the week's problem set will task you competitively to see just how fast the code you can write is and how little memory you can use. Toward terms end though we'll take things up to a higher level in terms of programming languages and put C behind us and introduce a web programming language known as PHP, one of the popular languages these days. Much of Facebook is still written in PHP, at least outward facing, and it's just a very easy language to learn quickly once you already know another. So with PHP we'll be able to solve problems and implement websites that do interesting things. The news site I showed you, the events site, the shuttle boy site, all of those all happen to be written in PHP. But by no means is that prerequisite. What you'll also find throughout this course is that you're not going to exit this course knowing C. You're not going to exit this course knowing PHP. Those are not interesting skills to claim, but knowing how to program, knowing how to use data structures and algorithms in an interesting way, that's a compelling story. Even I, all these years later, throughout college and graduate school, the only time I ever learned a language was probably in CS50 where it was still taught in C and CS51, which is one of the successor courses. Everywhere along the way since has been go learn this language and then work on this problem set because computer science is not supposed to be about here's a language, let's spend seven weeks teaching you where the semi colons are. There are much more interesting ideas out there. Databases, for one. And in week two we'll introduce you to this query language called SQL that'll allow you to store information in databases and actually implement some fairly interesting final projects. The week after we'll look at what's called client side programming, doing interesting things on a user's computer, taking advantage of their CPU cycles, doing things ala Google maps and these websites that actually use JavaScript, which is actually a language we'll introduce to let you do client side things, make more interesting, more sophisticated user interfaces, but at the end of the day have to be really mindful when implemented of a lot of sticky issues like network speeds, network performance and security. So it's not about again just coding something up that's fun to use or pretty to look at, but actually thinking about the design that'll be the interesting process. And then, the end result aesthetically will often be a really neat toy to show yourself or a friend. And then we'll look at hardware. We're going to take for granted that there are these physical boxes throughout much of the semester that will do what we tell them to do. But how are they doing that. So we'll actually take a peak under the hood and talk about what a compiler really is, what a CPU really is and actually consider what's making all of this fanciness from stupid YouTube videos on down possible. So what are the expectations? Attending lectures and sessions, completing nine problem sets assigned roughly weekly, two quizzes, the final project and there is in fact no final exam. Grades, it's always a question, broken down as follows here. You can take the course pass-fail. But let me say it here, and I've said it many times. I personally care relatively little about grades. I think they are a wonderful, well, they are a useful pedagogical tool with which to motivate and unfortunately sometimes de-motivate, but you'll find in this course that at the end of the day it's more about seeing how far you can go from weeks zero to week 12, as we say in the syllabus than it is about absolutely ranking all students in this course. So if you're coming into this course among those less comfortable, though a large demographic do not assume that that's automatically putting you in the lower third of the so called distribution. At terms end do I sit down with the TF's and discuss each and every one of the students. We take into account where a student came from, what kind of trajectory they were actually on and so at the end of the day please focus more on, and I don't mean to sound too grand, the process of learning and less on the numeric's. And you'll actually see that we grade problem sets, in particular, very coarsely, whereby along three axis, you will get a score of 1, 2, 3, 4, or 5, where 3, is in fact good. 3 is not C. 3 is good, 4 is better, 5 is best. But more on that as the problem sets are released. So the course's website is where you will find, as in most cases, a whole lot of useful things, if not silly things, too. And we have the luxury, as computer scientists of implementing it ourselves. So over the course of the semester you will see various new features rolling out. You'll find out over the course of the semester that the bulletin board is a wonderful place, certainly in the course of this size, to turn when you have questions about the problem set, questions about some computer science concept. You'll be able to check your grades, download all handouts in advance of lecture typically will I post the slides, if you're the type who wants to scribble on notes. But as you've seen, usually I shy away from long lists of details and more like pictures of cats and other visual cues. So you'll find, too, that we will provide printouts of code when we actually think it particularly advantageous to write right on the paper. Software, videos will be available, usually around 1 to 2 to 3 days maximally after each lecture. So the courses are being filmed and every lecture will go online in various formats including QuickTime and MP3's for downloads to iPods and such. And also you will find a link to download what we call the virtual terminal room, which as you'll see is related to virtual office hours. Books are expensive and in the computer world also not that useful. They are on the shelves of the coop, although we're told that last year they ordered like 120 books for the course and 30 were actually purchased, but this perhaps speak to the fact that there are places like Amazon.com, so if you are the type who actually enjoys the sort of support structure that a book provides, if you like to read up more than say a course's typical materials offer, by all means, procure one or more of the books that we recommend here and discuss more in detail in the syllabus. But realize there are so many resources that this course provides in printed form and electronic form, and my God, there's the whole internet out there. Books are not something that are required for this particular course. Lectures, in general, will be Monday's and Wednesday's, except for this Friday and next Friday, simply because of shopping period and Labor Day. So we'll meet this Friday, next Wednesday, next Friday, but there after this is just a Monday, Wednesday course. So this little visual cue here is to remind me that yes, we do distribute videos in QuickTime formats, MP3's, fun ways that you can, if you're actually this type, maybe in the 14 percent, watch a computer science lecture on your iPod, but it reminded me that at terms end last year, the course culminates in final projects, in which students can design most anything they want, and we actually had some students tackle some iPhone applications. Some one of these at least is now in the Apple store. It's called Rover. It's been adopted essentially by Harvard agencies and it's the iPhone version of the unofficial guide to life at Harvard. They did a brilliant job. I bring this slide up too, just to point out what other technologies might very well be down the road. Some of you may have seen this before, but just to give you a teaser of apparently what's in the pipeline, I thought I would offer this brief distraction here. [Музика] >> With the MacBook wheel, Apple has replaced the keyboard with a sleek, touch sensitive click wheel. Apple CEO Steve Jobs introduced the product yesterday at the annual Mac Expo. Senior product innovator says the MacBook wheel will make typing a thing of the past. >> At Apple our philosophy is create products that are simple to use and nothing's more simple than a single giant button. >> Gilman showed me how the revolutionary new computer works. >> Gilman: Just open the intuit-type alphabet menu here, scroll to the letter you need and center click to select it and click again to capitalize and repeat this process for each new letter. It couldn't be simpler. You could also let the predictive sentence technology complete the sentence for you. >> Gilman says the MacBook wheel has also simplified organization of files, so searching your hard drive will be a snap. >> Gilman: Just press both sides of the wheel concurrently and center click and there, you have an alphabetical list of every file on your hard drive. Everything is just a few hundred clicks away. >> Apple is calling the MacBook wheel the most intuitive product every designed. >> Here at Apple we like to think that we're giving customers features they don't even know they want yet. >> While the MacBook wheel won't hit the shelves for another 3 to 15 months, many apple users already have it on their wish list. >> I'll buy almost anything [inaudible] and made by Apple. >> Alex [inaudible] was one of the lucky few to get to try out a MacWheel and spent 45 minutes typing an email to his friend. >> I never really realized how much I hated keyboards until I saw this thing. >> I like how it automatically says, sent with a MacBook Wheel, so people automatically know you have one. >> With a price tag of just under 2600 dollars for the lowest end MacBook Wheel, it is an investment. But the super thin laptop features numerous innovations, like the new ultra thin hummingbird battery, which can power the MacBook Wheel for a fill 19 minutes before needing to be recharged and the computer is virtually unbreakable unless dropped or hit. But Apple isn't resting on its laurels, Bryan Gilman says they're already hard at work on the next generation of the MacBook Wheel, which will be four ounces lighter due to its lack of streaming hard drive or wheel. For the Ugly news Network, I'm Jeff Tate. >> Thank you for that, Jeff. It remains to be seen if the wheel will catch on in the business world where people use computers for actual work and not just dicking around. Moving on, police warn. >> David: So I've seen that thing at least a half a dozen times now, including once at like two a.m. last night and I was scrolling down on YouTube and literally like an hour prior, some guy in all seriousness posted, just a wheel? That's the stupidest product I've ever seen. [ Laughter ] And then the rants ensued in the thread thereafter. So besides lectures there are also sections and it is your teaching fellow and the course's course assistants that you will get to know very well over the course of this semester. Sectioning won't begin for a week or so's time. More on that in the lectures to come. But know that the course will have several different tracks of sections, much like First Knight's has for music. Sections targeted more at those less comfortable, those more comfortable and those somewhere in between. And we also offer most Sunday nights before a problem set is due on the following Friday is what we call code walkthrough's where one of the course's teaching fellows will lead a session targeted specifically at the week's problem set and will help you answer the question where do I begin, how should I approach this? And that too will be filmed and made available online and always linked on the course's website. So this course has a huge staff. Our staff is larger than Harvard's average class size. We have over 50 people involved in the production of this course on a weekly basis. Some of them teaching fellows who hold sections, grade work, hold office hours and more. Course assistants who are former students, who are offering on a volunteer basis in fact multiple hours of office hours in the computer lab per week. System administrators, folks doing all of our AV and video production. Someone who will actually be taking notes for you. So it is actually my opinion that scribbling down almost every word that someone like me says is not a very good use of one's time. It's much more interesting I think to actually engage with what's on the screen, what's being presented. And so what we will do as a course is post PDF's online within a couple of days of lectures of scribe notes, which is essentially an authoritative version of course notes, unedited, but documenting what went on in lecture that day, thereby hopefully freeing your minds and pencils from jotting information down. We have some of our team here. Most of our team is actually shopping courses. But if a few of your guys would like to come on stage for a moment with our head teaching fellow and assistant head teaching fellow. Allow me to ask the latter to say a quick hello. And as these guys come up in absentia allow me to say that also on staff this year besides the folks you see here are Alex, Alice, Andrew, Batul, Charlotte, Chris, Dan, Dan, Daniel, David, David, David, Derek, Dev, Didi, Doug, Drew, Erica, Fil, Glen, Greg, Janice, Jason, Jean, Jeff, Jesse, John, John, Jonathan, Jordan, Josh, Karim, Kelly, Ken, Kent, Kyu Bok, Lee, Madhura, Marta, Matthew, Michael, Michelle, Mike, Mike, Nathan, Patrick, Peter, Peyton, Rose, Saba, Sanjay, Shannon, Stacey, Ted, Wellie, Yair and me. So our course is teaching fellows and course assistants, Cansu and Yuhki, would you like to say a quick hello? >> Hi. It's definitely a great honor to be back here for the third time. And if you're one of those who are like less comfortable. [ Laughter ] I think I can [inaudible]. Okay. [ Laughter ] If you're one of those [inaudible]. There's no need to be afraid. I walked in here two years ago with no experience what so ever, and I thought that I was like dumb and I was sure that I was going to fail the class. And I came back for the third time. I did not fail the class. This course is great because it has such a good community. As you can tell by the names listed by David. All the CA's and TF's are here to help you. So if you have any questions at all, just come up to us. Not taking this class because it's hard is not a good excuse. So, hi. >> [Inaudible]. >> Hi, so well both as a student and TF, I've really enjoyed being a part of this course. And even though it's a course that requires a lot of work from you, we've put a lot of work in to it for you as well to make it as enjoyable and as fun as possible. So, we really hope that all of you stay and take part in this very special experience. >> Thanks. >> David: So you will find, thank you, all of you, you will meet them in the hallway in just a few minutes as well. So you'll find that this course, perhaps more so than many is very much a shared experience. This is not a competitive course. This is not your premed course. This is a course which ultimately yes is about doing independent work, as you'll see each week by way of the problem sets. But you can't help but to get close to someone when you're fighting with some bug and banging your head against the computer screen proverbially to try to track down some bug. And I think you'll find that past students will concur that you exit this course with a lot of friends among students and also on staff. So where does that happen? Well, within office hours in the basement of the science center there's some large computer labs and we pretty much take them over five nights a week. These won't start for some time, and this, to be honest, is perhaps the most beautiful picture of the science center I've ever seen. [ Laughter ] It does not look like that on the inside. But it is a place where a good percentage of students do choose to spend time to get one on one assistance with each of the week's problem sets. Each week we will offer more than 100 hours of assistance one on one in the science center per the schedule that will eventually go online. And for those of you who live, say in the quad, or in Mather, or who just don't want to trek all the way to the science center to ask that quick question, we also offer what are called virtual office hours, much like remote technical support where you'll be able to log into a glorified chat room, in which yes, you can type back and forth with a TF or a CA, but you can also share your screen or share control of your mouse with them subject to your consent so that they can help you troubleshoot any problem or any question you have remotely. To give you a sense of what's involved in the course, these are statistics from last year. So you will, I think it's quite fair to say, work your ass off in this course. But per my promise from the start, this is one of those experiences that I don't think a typical student regrets. If you flip through, for instance, the Q Guide forms that are all on the course's website, you'll find that only by putting in the time to a course like this do you really exit having felt like you got something out of it and frankly might very well even have emerged even smarter. So what does it mean to actually write programs and implement problem sets? Well, the first problem set last year, a quick retrospective here, was to implement your very own programming scratch. And we spend just the first week there, and the goal is to implement your own game or animation or art or anything that appeals to you. In week one, then do you implement some basic C programs to get acclimated to some more traditional programming environments at the command line, at Linux so you get comfortable with some of these basics that will certainly serve you well in the long run. Last year's Problem Set 2 was about cryptography. We gave students the opportunity to implement some ciphers, some algorithms that let them encrypt information. And we also offered some students the opportunity to do the opposite. Each problem set, many problem sets, as you'll see are implemented in two editions. A standard edition that we expect almost everyone to do, say 90 percent of the class. And then a hacker edition, which presents the material from a more sophisticated angle, expects perhaps a bit more clever work for those more experienced, and for this one did those students get handed in the hacker edition pre existing user names and passwords in encrypted form and they had to figure out what those passwords for. We actually got into trouble for this a few years ago because all of the sudden FAS Computer Services saw like 50 people running a crack program on nice.fas.Harvard.edu, so they now have been given a heads up for programs like that. Last year students implemented the game of 15. Not all that much fun to play as a party favorite, moving the numbers up down, left, right, but a real stepping stone to implementing something interactive that involves a human and the hacker edition for this one had students implementing God mode, which actually solved this thing for the human, maybe cheat mode is the more apt term, in Sudoku, which was a step up toward that, where we provided the students, you, with a framework with a whole bunch of code that you needed to first understand before taking things the final mile and implementing some of the remaining functionality. And then we dabbled in forensics and this grew out of a real world experience between me and a friend. For this problem set last year, this buddy and I, who he being a particularly good photographer, strolled around campus and we shot photographs of unique, non obvious, but identifiable places on campus. And this was using his digital camera. All of these JPEGs got stored on a digital flash card or what not. And then I accidentally formatting the thing, or erased it. Well, it turns out formatting something or erasing something, usually means neither. It just means doing a little bit of work to make the human think their data has been erased, when in reality it hasn't. It's just been forgotten. And so we tasked last year's students with writing a program in C to actually recover these photos for my friend. We gave everyone a forensic image, so to speak, a big file representing that compact flash card, and they had to recover the several dozen photographs. And they also had to solve this little murder mystery. We provided folks with this image here. Those of you who've seen this before might be doing that squinting thing right now where you're trying to look through the picture, well you look pretty awkward, because this is not a magic eye puzzle. This is just random red noise that actually has behind it an actual message. And it turns out, I think it was Colonel, let's see, I've got my little solution here. Last year it was Colonel Mustard in the study with the candlestick. And this was the murder message recovered by students who wrote code to do so. And then in Problem Set 6 last year. We challenged students with implementing the fastest spell checker possible. What do we mean by that? Well, we handed the students a big text file containing 140 plus thousand English words, and we said write a program that loads all of these words into memory, but very quickly and very efficiently can tell us yea or nay, is this document perfectly spelled or are there errors? And what we provided was a testing framework, a harness, that students, if they wanted to compete, could run their code against some benchmarks, against some testing programs that we wrote. And then, ranked on the course's website from fastest to slowest were the running times, the amount of time it took for each student's code to actually execute, complete opt in. It's by no means required. And we took a bullet for the team and made sure that one of our own teaching fellows intentionally, I think, was at the very bottom of the list. So, there was definitely a lower bound. But the odd, the funny thing was we saw this in the cue guide evaluation, this problem set of all things, was apparently the one that people sunk the most time into. Not because it took any longer than all the other p sets, but they would come back from like dinner, look at the board, and realize dam my friend, my roommate just ever so slightly inch higher than me and so it incentivized people if only to one up their friends and roommates. In Problem Set 7, last year, we asked students to implement their own E*Trade like website, whereby you had to create a website using that language call PHP a database called mysql that actually lets people log in and then manage a portfolio of stocks, buy stocks quote unquote, sell stocks quote unquote, get stock quotes. And from where? Well, we have the students; we had the student patch into Yahoo Finance where they grabbed merely the Real time stock quotes to actually simulate the process of buying and trading stocks. Unfortunately some students, perhaps some economics majors or just folks with too much free time figured out last year how to gain the system. So, even though we gave everyone 10,000 virtual dollars, I think our winner turned teaching fellow this year actually, right don't push them away make them one of your own, for a billion dollars something like that ridiculous. Turns out we weren't really checking whether or not people were trading after hours. And it turns out that also, Yahoo stalk quotes are not in fact perfectly Real time which means if you just have a real E*Trade account you can see the future and see where the stocks are going. [ Laughter ] So, apparently you can exploit that if you put your mind to it. and then, in Problem Set 8, the course's final problem set last year, we had students implement a mash up where they take Google News and Google Maps and mash them together using JavaScript, PHP and SQL in such a way that they had a website that they could find all of the local news from whether it's zip code 02138 or 90210. And, you would actually pull the local current even articles by this thing called XML and integrate it into the view of a Google Map. And then, at very course's end was the true climax of the course. This course culminates in final projects, which ultimately will be your opportunity to design your very own piece of software, designed by you or two or three friends. And the course then climaxes with the new and improved, with the second annual computer science 50 fair which last year was an exhibition across the street in one of the engineering buildings with 300 laptops atop tables, popcorn was popping, music was playing, stress balls with CS50's logo were being thrown around. And this was an opportunity for our 300 plus students to exhibit their final projects not only to each other but also to some 900 attendees in total. And we also invited some recruiters as well. So, that is what you have to look forward in this course. You also have cake to look forward to in the hallway. This is CS50 and we'll see you on Friday. [Оплески] ==== Transcribed by Automatic Sync Technologies ====