>> David: Vítejte, mé jméno je David Malan a to je CS50. A to není váš typický střední školu výpočetní techniky a kurz. Tento kurz je něco zvláštního. A není to proto, že jsem vyučování. je to proto, že je to jeden z, Rádi bychom si myslet, ty vzácné předměty, které skutečně ždímá svůj mozek tolik a svůj rozvrh tak, že do pololetí ke konci budete cítit skutečně chytřejší. Takže to bylo tak, jak jsem cítil, když jsem sám se tímto směrem vydaly v roce 1996. Byl jsem vládní hlavní v době, kdy zde žijící v Mather House. A, I. [Fandění], které jsou jiné, pět dalších tam. Takže jsem byla vláda velké v té době. A byl jsem hlavním vláda, protože jsem vždycky měl rád historii. Líbilo se mi ústavního práva na vysoké škole. A tak jsem vyrazil na letošní cestě prváci dělat to, co umím nejlépe, dělat to, co jsem věděl, že jsem rád. A já jsem vždycky byl tak trochu geek, já bych vždycky blábolil s počítači. Ale já sám, snad ironicky při zpětném pohledu, vždycky jsem si prohlížel kluci, kteří byli při počítačové vědy na mé střední škole, moji přátelé jako skutečný Geeks. A přesto nakonec udělal, druhák rok jsem se tento malý kurz s názvem CS50, který vlastně měl strach mi mou vlastní nováček roku. A já byl uživatel asistent v té době. Takže jsem byla jistě již mají kvalifikaci, alespoň, být mezi těmi, kdo ty mágů jsem si dělal legraci z vysoké školy. Ale já se bál. Tam je, že byla tato pověst v té době a možná ještě částečně, že to bylo, to bylo hrozné kurzu. Bylo to hodně práce. Bylo to těžké, a přesto je to jedna z těch věcí, kde, můj Bože, kůra byla mnohem horší než jeho kousnutí. Přistihla jsem se druhého ročníku, poprvé, vlastně hledání domácí práce zábavu. A já neříkám to jen proto, aby rozteč tento kurz pro vás. To bylo skutečné realizace pro mě. A teď, myslím, na jednom místě, udělal jsem přes čáru na true geekdum, kde vlastně jsem se těšit na páteční večer, protože jsem mohl stočit do přední části mého malého MacBook a práce na stanovuje problém CS50 je. Takže, na tom místě, myslím, že jsem měl jasně překročilo demarkační linii. A je naším cílem v tomto předmětu není zase vás všechny do této osoby, ale jen říci, že tam je něco zvláštního o tom samozřejmě trochu něco zvláštního počítačové vědy obecně, zvláště v těchto dnech. A čím více aklimatizovaný jsme všichni dostali do technologie, tím více hraček si nosíme v našich kapes, které jsou samy počítače. Chci říct, že můj iPhone je ve skutečnosti vyšší, provádí počítač, než můj notebook byl na vysoké škole. Můžete udělat spoustu věcí, elegantní s těmito věcmi. A nyní, většina z nás v této místnosti, zřejmě stačí použít software jiných lidí, nástrojů, jiných lidí, řešení jiných lidí k problémům, protože jsme jít do iTunes, jsme se stáhnout některé app z App Store a Walla, co můžeme udělat něco skutečně užitečného. Ale tím, že do konce tohoto pololetí, můžete být osoba, která vykonává, že řešení problémů. Můžete být osoba, řešení některých problémů, budova app, že kus software, který nástroj, ať už po jedné těsně Baví mě, baví vás. Například, controlling, řekněme vaší knihovny iTunes z vašeho byty s jasně app, který již existuje, nebo si můžete najít shuttle rozvrhy snadněji například. Takže ve skutečnosti, jeden z prvních věcí, které jsem udělal po nástupu CS50 opět, to bylo pravděpodobně v tomto bodě noci pátek a sobotu, byla to příležitost v době, kdy Harvard byl spuštěn kyvadlové autobusy. A dodnes, mají stále tištěné jízdní řády. Ale tam bylo opravdu v žádném případě on-line, jak zjistit, kdy další raketoplán. Teď jsem to nevadí, protože i když jsem žila v Mather jsem nebyl mezi těmi, kdo obecně se raketoplán. Ale, měl jsem hodně přátel v Pfoho například. A jeden z nich zeptal se mě, myslím, že v jednu chvíli. [Fandění] Dobrá Pfoho to lepší než Mather zdánlivě. Takže jeden z mých přátel druhu mě přemýšlet možná dokážu napsat malý program na druh pomoci mých přátel kontrola raketoplánu plány. A tak se zrodil rozpačitě jmenoval raketoplán chlapce, tento kus slovník, který zůstal zhruba na určitý počet let, alespoň u některých z upperclassmen. V té době to byl tento malý program příkazové řádky, svým duchem podobat Dos. Byl spuštěn v prostředí UNIX. Takže to nebylo moc sexy vůbec. Právě jste zadali pár příkazů a to vám řekl, když raketoplány byly. No, v těchto dnech je to trochu složitější. A je to vlastně představoval přesně typy projektů, které studenti v tomto předmětu skončit procesy výrazy konce. Takže, toto je verze čtyři, asi 15 let později, v Shuttleboy. Zdá se, že Google Maps je trochu pomalý tam. Ale pro ty z vás, kteří se odsud dostat po třídě a jít, tedy od Memorial Hall a je třeba jít do, řekněme, Quad. No, můžete buď ponechat za dvě minuty, když je to opravdu nefunguje pro vás jen ještě, nebo jste jako mnoho jiných možností, jak si možná rád. A brzy, můžeme hřišti to od CS50, bude to stejné schopnosti pomocí SMS. Můžete text Shuttleboy přes telefon. Můžete volat Shuttleboy. CS50 telefonní číslo v tomto roce, dobře, kupodivu to bylo k dispozici, 617-BUG-CS50. Takže, bude to debut brzy. Takže se nemusíte říkat jen zatím, protože jsem dostal důtku za, teď je to být směrovány do našeho systému hlavě výuky kolegy na mobilní telefon. Takže, budete jen se ho, jestli máte dotazy týkající se raketoplán harmonogram nyní. Ale to, že brzy bude prováděna. Takže, jiné věci, vlastně, že jsme sami strávili letos v létě na opravdu v rámci přípravy na tento semestr bylo spoustu jiných problémů, které bychom chtěli řešit. Například, tam je spoustu věcí, co se v tomto kampusu v daný den. A ve skutečnosti, jinak řečeno, je tu celá řada věcí děje na této půdě, že jsem určitě nikdy využít. A i když mám teď ohromen tím, jak mnoho věcí, které jdou dál, na akademické půdě, jsem ještě nikdy zdá najít čas. Ale, Walla, dokonce i tam, CS50 je přednáška. To je, když je, tak to bylo, to bylo program jsme psali na celkové všech událostí na akademické půdě. A to bylo něco, co ostatní studenti v tomto stejném kurzu mají řešit na vlastní pěst. A jsme spolupráci s dalšími subjekty na akademické půdě skutečně dosažení tohoto cíle. Ale místo aby CS50 tento termín je, že všechny z těchto nepatrných programů jsme pracovali na tom, zda je tento, nebo zda jedna pro agregaci všechny novinky z Harvardu na jednom místě všechny Google News, všechny tyto věci bude mít to, co jsou tzv. API, rozhraní pro programování aplikací. A to je jen fantazie mluvit za schopnost nechat ostatní lidé, lidé v této místnosti, ve skutečnosti dělat něco s tím stejná data. Ano, pokud jde konce, pokud se rozhodnete provést konečný projekt týkající se novinky, akce nebo mapy, dobře jsme se, alespoň tak samozřejmě bude, že všechny větší snadné tento rok tím, že budete s rozhraním, druh funkce, tak říkajíc, software, který můžete použít do svých projektů, jít nad rámec, kde se studenti, možná, už v dobách minulých, protože tento rámec nebyl na místě pro ně. A opět, to všechno začalo, pro mě alespoň, asi 15 lety se provádí Shuttleboy. Pak jsem e-mailem příteli Ken v Pfoho. Řekl jsem hej, co si myslíte? Je to užitečné? On poslal ji na Pfoho otevřený seznam a Walla, všechny ty roky později jsem zřejmě ještě dojení tohoto projektu. A hezké věc, o tom, a to je oblast, kde také kurz jako je tento ve strojírenství a informatiku, myslím, že je trochu zvláštní, je to, že když budeš dělat doma funguje, a když se vám vaše projekty v tomto kurzu, si vím, mnoho z nich ano, budete odložil, a ne ve skutečnosti používat znovu. Ale někteří, bude vám. A tam je to opravdu mocná věc, alespoň pro mě, to opravdu vzrušující věc, když uděláte něco i jiní lidé skutečně péči, ostatní lidé nejsou jen úsměv a pat svůj na záda a pak se trochu jít o jejich vlastní životy. Oni vlastně použít to, co jste provedli ve svém vlastním životě, i když je to pro něco tak hloupý, nebo tak jednoduché, jak jen konstatování, když oni mohou dostat odsud chytit další raketoplán na Quad. Ano, pokud jde konce, to je jeden z cílů pro tento kurz, na posílení vás na něco zjistit nějaký problém, zda je to na akademické půdě, nebo snad i mimo campus, a skutečně užívají své vlastní schopnosti, své vlastní mysli, a tento problém řeší v některých část, technologicky. Takže, toto je také samozřejmě, jak říkáme v učebních osnovách a kurzy oficiální popis, který vás naučí, jak myslet a ono vás naučí, jak řešit problémy efektivněji. No, co to znamená? No, když máš 600 MHz v kapse nebo tři gigahertz pod vaším stolem doma, můžete řešit mnoho problémů efektivně jen smykem hrubou silou. Ale je tu spousta problémů v tomto světě, ať už je to hledání, řekněme, Facebook síť nebo internet přes Google, že nezáleží na tom, jak rychle se vaše konkrétní počítač, neexistuje způsob, jak v pekle budete search miliardy webových stránek rychle, pokud jste skutečně přistupují k tomuto problému inteligentně. Nemusíte jen hledat, například obrovský seznam všech stránek na světě od shora dolů hledal něco, co v souvislosti s vyhledávací termíny hledáte doufejme, že Google a pravděpodobně Google a Facebook, a některý z těchto velkých subjektů mají hodně chytrých lidí, kteří přemýšlejí o tom, jak oni mohou najít data rychleji, jak se může zpracovávat informace mnohem efektivněji, a jak mohou jen obecně vracet výsledky rychleji, takže můžete udělat ještě, zajímavější věci se těchto zařízení. A tak, co máme na mysli, když, podle toho, jak, výuka lidem, jak myslet více opatrně, více algoritmicky. No, tento malý vizuální vždy zdá, že jít přes dobře. A to se zdá být zapamatovatelné. A já jsem byl dokonce požádán právě včera bývalý student, oh budete dělat telefonní seznam věc znovu. A já jsem skoro na místě rozhodl v pořádku, zda budeme budovat telefonní seznam věc. A on se mě zeptal, když si roztrhl ji napůl pravdu, byl jsem rád i jo technicky jsme roztrhal jej na polovinu, ale ne na cestě, na cestě informatice budu moci odtrhnout tuto věc na polovinu. A tak zde byl problém, který jsme představili na nějakou dobu. Takže, tady je telefonní seznam. Je to už nejméně tisíc nebo tak stránky. A jednoduchý cíl na dosah ruky velmi reálný svět je najít, řekněme, že osoba zde. Takže, Mike Smith, příjmení začínající na S. Takže jsem typický člověk, jsem vyzvednout tento telefonní seznam. A někdo tam venku, co byste, typického člověka, udělat pro to, začít hledat Mike Smith, samozřejmě nevěděl předem, co strana je vlastně dál. Správně, takže si jít zhruba uprostřed, vpravo. A v tomto bodě v příběhu, jsem asi v N či M je, víte, zhruba v polovině cesty přes telefonní seznam. Ukázalo se, v poslední době jsem si tento příklad jsem nějak ocitl v doprovodu Mgr. Takže je to vlastně není rovnoměrně vyvážené, přes M a N prostřednictvím Z. Ale dnes jsme ve skutečnosti, v M, v pořádku tak, teď jsem na M. Ale co to má stánek s jídlem nyní stejně jako normální člověk z ulice,? Kam mám jít příští Mike Smith. [Nehlučné] A tak jen asi na tomto polovinu, právo, protože S přichází poté, co M. A tak se zde nachází vizuální drama. To není opravdu roztržení vejpůl, vpravo. I druh podváděla dolů do centra. Ale dnes už víme, že Mike je alespoň ne v to, že polovina. Můžeme doslova vyhodit polovinu problému pryč. A já jsem opustil s problémem, že je zásadně stále totéž, najít Mike Smith v opravdu velkou knihu. Ale problém je nyní z poloviny tak velké. Kdyby tisíc stran dříve, teď je to tu 500. Víš co, můžu dělat to samé znovu. Mohu druh rekurzivně nebo opakovaně to samé. Teď jsem se docela v S. Jsem na T. A tak, oh jsem šel trochu příliš daleko. Ale teď vím, že Mike není správné, že to bude nějaké třídy, kde jednoho dne jsem prostě nemůže odtrhnout přehrady věc, vsadím. Ale teď, vím, že to není to pravé. Tak, teď byl problém čtvrtiny. Takže jsem odešla z tisíce na 500 až 250 stránek. A opět, pokud budete pokračovat v logice, matematice i nadále, jsem sekání tento problém na polovinu, na polovinu, na polovinu až konečně jsem buď bude najít žádné Smith je vůbec pravděpodobné, nebo budu najít místo hledám. Ale to, že, pak vyvolává otázku, je to lepší než jednoduchý přístup jen říkám, víš,, Ne, B, ne, od leva do prava bude lineárně přes knihu? No, instinktivně ano. Je to bude mnohem rychlejší. Ale kolik méně? No, pokud mám tisíc stránky telefonního seznamu, nebo řekněme 1.024 pro ty z vás, kteří rádi pravomoci dvou, kolik času bych musel rozdělit tento problém na polovinu, než najde pan Smith? >> Ten. >> David: Tak, deset, že jo. Pokud máte 1.024 stránek a můžete je rozdělit na dvě poloviny, na dvě poloviny, na dvě poloviny, na dvě poloviny, udělám desetkrát, což znamená, jdu od 1.000 stránek na osobu, hledám jen deset stránek otáček. A to je druh čisté, ale, víte, jestli si myslíte o tom, že jste tohle dělají celý život. Není to tak dramatické. Ale teď, že telefonní seznam není jen pro Boston, je to pro celé USA, nebo celý svět, a to, co má miliardy stránek, takže si představit telefonní seznam s čtyři miliardy stránek. Kolik stránku otočí budu muset udělat maximálně najít Mike Smith ve čtyři miliardy stránky telefonního seznamu? >> Přihlásit základny dvě. >> David: Tak jo, pokud jste typ z matematiky typu je to log základny dvě. Ale pokud si myslíte, že 4 miliardy až 2 miliard to jedné miliardy, takže půl miliardy. Myslím, že ve skutečnosti jde whittles sama stanoví zatraceně rychle. Ve skutečnosti s 32 halvings z telefonního seznamu dokonce ze čtyř miliard, tak jsem si na jednu stránku. A to je, když tohle dostane silný, myslím. To je, když tyto myšlenky získat přesvědčivé, když můžete mít čtyři miliardy stránku problému a ve 32 kroků, které můžete najít osobu, kterou hledáte. A tak, že to, co máme na mysli, když říkáme, že se naučíte myslet více opatrně, více algoritmicky, inteligentněji o řešení problémů. A výnosy jsou obrovské, když můžete skutečně to, a znovu, aby k tomuto bodu Googles světa Facebooks, kteří mají luxus mít obrovské soubory dat. Musíš k těmto problémům tímto způsobem jinak to prostě nebude fungovat. No, co je to, co dělal student vlastně vzpomínáš si? I jsme chtěli dělat věci, které jsou trochu hloupé někdy až trochu vzít okraji off, co je jinak hodně nového materiálu. A tak, on vlastně, tento bývalý student poslal mi tento odkaz, který jsem šel dopředu, jen tak pro legraci, a pak litoval, že na konci roku, vytáhl na uTube zde. Tak jsem si myslel bych sdílet, co non-počítačový vědec znamená, když se slzami telefonní seznam na dvě poloviny. [Smích] [Silence] [Nehlučné] >> Víte, přes 200 stran, pěkné čisté linie, legitimní slza. [Smích] >> David: Tak, já předpokládám, jeho způsob práce příliš. Takže, co jsem z tohoto předmětu před všemi těmi lety ano, Shuttleboy, a pak ano titul v oboru počítačových věd, a pak ano PHD v oblasti počítačové vědy. A to není to, co jsme se snaží obrátit většina studentů v tomto kurzu do. Většina z vás v tomto kurzu nebudete jít na obor počítačová věda. Někteří z vás si možná menší, ale pro některé z vás to bude terminál kurzu. A to je naprosto v pořádku, protože to samozřejmě je, ve skutečnosti, strukturovány tak, aby v případě, i když jste právě platit poplatky za několik měsíců a opravdu soustředit se a opravdu brát jako hodně z tohoto kurzu, jak můžete, budete v Skutečnost, být dobře vybavená vrátit do svého světa ekonomie, biologie, psychologie, aplikované matematiky, a skutečně využít toho, co je nakonec jako zajímavý kurz, jak doufáme, že se koncepčně, jak je to v podstatě praktický. A to taky není něco, co možná trochu vzácné nalézt. Myslela jsem, že podíl na několik připomínek, že studenti z loni na podzim dal v této minulých letech cue průvodce, když ptal se, co byste chtěli sdělit budoucí studenty. No, pokud jste tak již neučinili podíval na tyto připomínky, jeden student řekl, tento kurz bude trvat slušné množství času nahoru. ale pokud vložíte svou práci do zcela nového světa, v celku, pokud si dal práci, pokud si dal práci do, v pořádku, takže toto je jeho gramatika není moje, takže pokud jste dal, dal v práci, celý nový svět bude otevřena až do vás. Amazing kolik jsem se naučil za pouhých 12 týdnů. Jiný student napsal, raději tento, nebo budeš litovat. Dalším napsal, trochu neomaleně, bude to nakopu prdel a nechá vás cítit skvěle. A pak konečně, tohle je snad něco, co lze zobrazit pouze v písemné formě, ale druhý ze dna zde. [Smích] Tak, já nejsem jistý, jestli máte mnoho přátel, kteří se tohoto kurzu, ale jsme trochu dělal velké škody na loňskou studentů. Jsme uvedli na začátku, několik přednášek, několik kvízů, pár problémů sady, tento pojem lolcats. Vy nemůžete vidět to, co vidím tady, ale za chvíli uvidíte mladý muž jménem šťastná kočka, která je vůdce tzv. lolcat. To je jeden z hloupý internet dopředu, že si myslím upřímně dichotomie mezi těmito dvěma pány tady a co máme nyní na obrazovce je možná. [Smích] Jedním z nejvíce nevhodné použití tohoto divadla k dnešnímu dni. A proč bychom udělat trochu reálnější trochu více osobní tento pojem skutečně řešit problém efektivněji. Jednoduchý problém, první den každého školy je sednout si a vstát a začít počítat studenty, právo apelu druhů. No, ty naivní, ale přesto velice správný přístup, že učitel by mohl mít jeden, dva, tři, čtyři, pět, šest, sedm, a my bychom se tady docela dlouho. Takže, co je nepatrné zlepšení o to dokonce, že by jste udělali jako kluk? Jak se vám počítat lidé rychleji? A nejsou-li zahájit čtení z mé vlastní návody? Co byste udělal jako dítě? Start počítání dvojky, právo, stejně jako tak jsem dost dobrý na dva, čtyři, šest, osm, deset, 12. Tak, to je něco zajímavého v pořádku. Takže, kolik úsilí o zlepšení je to tam? Takže je to samozřejmě dvojnásobně. Trvá mi polovinu času. Ale, víte co, jak je najdeme v tomto semestru, velký problém, jako je urychlení své provozní doba jen o faktor dvou není všechno, zajímavé, protože analogový zde ve světě počítačů je, že jsem CPU Já jsem počítač, tak sakra, když jsem čekat 12 měsíců, 18 měsíců, jsem počítač bude jen moci od přírody, podle počtu gigahertz jsem se ve mně, aby se mohli spolehnout lidé v této místnosti rychleji. Takže, tyto druhy jsou tyto druhy lineárních speedups jako faktor dvou trojnásobný, dokonce desetkrát, koho to zajímá? Dobře, můžeme hodit hardware na problém. Můžeme čekat jak to vypadá. Můžeme rozvíjet rychleji stroje. Ale, intelektuálně, jo, že byl takový chytrý, ale ani opravdu zásadně změnit problému. Jsem stále probíhají zleva doprava, zepředu dozadu. Je to opravdu stejný algoritmus. Ale já nabídku, že můžeme dělat lépe. Můžeme to udělat chytřejší, než je toto, a to zásadně rychlejší provádění. Ale, to dokazuje, potřebujeme, abyste humor nám jen na chvíli. A je to v tomto okamžiku, kdy to bude mi mluvit méně a budete mluvit více. Ale já si potřebuju spustit krok společně, což je, pokud byste humor nám, prosím, vstát. V návodu tady na palubě, víte, jsou v pořádku, pár z vás si sednout. Ti z vás, zpátky, tam jdeme, v pořádku. Děkuju. Takže program je zde před vámi. Ty jsou dnes počítače vykonávající tento program. Je to docela samozřejmý v tomto bodě. Ano, měli byste být číslo jedna. Získat? Právo, mnozí z vás pravděpodobně myslel to již tak jako tak, první nováček roku. Takže, myslím na sebe, ty jsi číslo jedna. Takže, krok tři tady, pár off se někdo stojí, přidejte dvě čísla dohromady a přijmout, že částka, kterou si vaše nové číslo a uděláme zdravý rozum kontrolu. [Hluku z davu] Víš, kolik máme? >> [Nehlučné] >> No [neslyšitelný]. >> Potřebujeme mít odpovědi na klíčové. [Silence] >> Jo. [Hluku z davu] >> David: V tuto chvíli algoritmus by měl být postupně slábne. [Hluku z davu] Možná bychom měli jít s mým přístupem po všem. >> 43. >> 163. >> David: Ooh aritmetický před 300 plus lidí. [Smích] Co je to náš poslední záznam bude? >> 180. [Smích] >> 1.200. >> 386. >> David: 386, a máte poslední stojící? Je, že všichni? Znáte odpověď? >> Co? >> David: Víte, co je odpověď? Nevzali jsme s sebou odpovědi na klíčové s námi tak, 386 je ve skutečnosti přesně tou správnou odpovědí poprvé. [Fandění] [Potlesk] To je v pořádku. [Potlesk] Velmi, velmi pěkně udělal. Takže, co byl stánek s jídlem, protože to rozhodně cítil trochu pomalejší, než můj velmi jednoduchá, ale přesto velmi korektní přístup jen tak onesies a twosies a jen na to, to dělá s zleva doprava. Ale to, co jsme opravdu jen to tam? No, kdyby tam bylo zhruba, řekněme, 400 z vás, stojící na jednom místě, a pak ještě polovinu z vás, velmi rychle, od toho, co jsem mohl říct, chtěl, aby se posadil. Takže, polovina z vás sedl, šli jsme 400 do 200 pak na 100 pak na 50 pak na 25. Takže znovu, tam je to stejné rozděl a panuj nápad jsme měli s telefonního seznamu. Opět platí, že se každé iteraci máme polovinu velikosti problému, jsme se snížil na polovinu, tak jsme to o polovinu. Takže, teoreticky, měl by váš algoritmus jsem byl mnohem rychlejší než moje lineární přístup, protože můj přístup by si vzít říct, 400 kroků, nebo možná, když jsem trochu chytrá 200 kroků. Ale Vy by jste brát mnohem méně, právo 400 do 200, 100, 50, 25, 13, šest, takže méně než deset kroků na konci versus mé 200 nebo 400 mm. A tam je zárodek opravdu zajímavý nápad. A ano, matematicky to, co jste právě udělala, bylo něco, co je trochu logaritmické v přírodě tím, log základní dva, jsme rozdělili na dvě a dvě znovu. A budeme znovu později v tomto semestru. Ale v tom tkví opět velmi inteligentní provedení. A my jsme jen poškrábání povrchu velmi chytrý velmi inteligentní efektivní přístupy k problémům, které bychom mohli nakonec vyřešit. Takže, kdo jsou lidé, které jste právě klábosil s když krátce? Společného zájmu v rámci, jako je to, že každý na levé straně ty a všichni ostatní právo, musíte jasně vědět víc než vy. No, to je absolutně není pravda. A ve skutečnosti, v posledních letech, tento kurz vyvinula koordinované úsilí oslovit ty méně pohodlné, abych tak řekl. A tím máme na mysli, ne lidi, kteří se ještě nikdy nedotkl počítače dříve, protože to je opravdu těžké najít tu v těchto dnech, ale lidé, kteří používají e-mail, použijte Facebook, možná i právě teď, ale nejsou nutně jistý, co mám dělat, když se něco pokazí, nebo jsou-li požádáni o nic technického, víte, ruce nahoru, nebo se druh tlačit hardware na přítele, který je možná více zběhlý v ní, než oni. No, to jsou některé statistické údaje z loňského semestru. Takže, když zeptal se, když jsme se zeptali našich 400 studentů, takže v loňském roce, víte, jaká je vaše úroveň pohodlí přichází do této třídy, a 34% napsal sám stanoví, jak mezi ty méně pohodlné. Takže, pokud jste přišli do této místnosti a jsou stále myslí nyní, že, víte, co tento pojem méně pohodlné popisuje mi, vím, že jste ve velmi dobré společnosti. Ale uvědomit také to, že pokud jste přichází v tomto kurzu se zkušenostmi v oblasti počítačové vědy a byli jste opravdu, že geek na střední škole a vysoké školy, kteří se psaní kódu a výuky sami jazyky, dobře, že je taky v pohodě, protože tam je určitě netriviální velké publikum, které na pozadí stejně, asi 13%, poslední termín. A pak, je tu každý jiný druh někoho, kdo nemá pocit, že jsou méně pohodlné, ale rozhodně si nemyslím, že jsou pohodlnější, ale to jen v průběhu dostat něco z toho. Takže realizovat tento kurz nemá čerpat docela spektrum studentů. A aby to v konkrétní činy, 71% studentů, v loňském roce, měl nulovou kurzy za sebou. Takže, pokud jste se do tohoto kurzu myšlení oh Každý, kdo se CS50 byla počítačová věda svištět na střední škole, to není tento případ. Většina lidí je pravděpodobně jen zájem. A málo, ano, absolutně vzali nějaké kurzy, některé, nebo alespoň jedna osoba v loňském roce trvalo pět předmětů dříve. Takže jsme určitě nějaké odlehlé, ale zase maso křivky je v těch nižších hodnot úplně. A další zajímavou statistiku jsme sdíleli za posledních pár let je poměr pohlaví. Takže, historicky, alespoň v oboru počítačových věd, tam je trochu muž žena překroutit. I před pár lety to bylo mnohem výraznější než v loňském roce. Takže jsme skoro hned na% 40 úrovní. A pokud mohu shodit rukavice jen kvůli mít třetí koláčový graf příští rok, to je ještě spravedlivější. Chtěl bych zdůraznit, že neexistuje naprosto žádný důvod, proč z hlediska předmětů, které muži a ženy by neměly být zápis v tomto druhu kurzu. V relativně stejném počtu a realizovat až 38 procent, 48 procent, my jsme vlastně docela rád, že jsme skoro na to, že alespoň statisticky i hodnota 50%. Takže, pokud jste ve skutečnosti žena, do zbytku zajistit také, že toto není, ve skutečnosti, převládají muži třídy. No, to jen tak náhodou CS50 je 20. narozeniny. Já, stejně děkuji. [Fandění] [Potlesk] To je od tebe moc pěkné, protože jsme přinesli dort pro vás skutečně. A tak, když opustíte dnesek, budete skutečně dostat šanci ke splnění mnoha kurzů výuky chlapíci, kteří si budou prodlévání na chodbě. A ano, že to bude hezký druh motivováni způsob jednání výuky chlapíci. Ale my se na výlet do malé pekárny a opět v souladu s průběhem je hravou povahu, zatímco nicméně očekává netriviální množství práce, zatímco my jsme s, že legrace. Ale máme jednoho z těchto dortů pro vás. [Smích] Takže, pokud jste se smíchem, že to vlastně dobré, protože i když jste mezi jeden z těch méně pohodlné alespoň jste si toho vědomi. Ti z vás, v 14 procent by raději tuto variantu. [Smích] A pak, když nevíte, co se to sakra děje právě teď, máme také to pro vás ostatní. [Fandění] [Potlesk] Tak, jsou ty, které jsou rozsekána na kousky venku, jak mluvíme. Takže znovu, pojďme se vzít věci do drážky a alespoň představit některé základní nájemce, že budeme pak považujeme za samozřejmost ve zbývajících tohoto semestru. Tak jsme všichni asi víme, že počítače nakonec redukuje nějak nul a jedniček, tyto věci zvané bity. Co to znamená? No můžete si to upřímně jako žárovka, trochu je žárovka, která je buď, nebo je to pryč. Je to přepínač, je to buď na nebo je to pryč. Nyní, počítačoví odborníci obecně myslet off jako číslo nula svévolně a, a pojem "na jako jeden. Takže, pokud si hodit světla zapnout, že je jeden vypněte jej, že je nula. Nebo, ekvivalentně, zase s ohledem na to je hodnota skutečné vypnout, že je hodnota false. Takže, to jsou jen synonyma. Na konci dne, ano, všechny výpočty, všechny věci, které se děje pod kapotou v počítači se nakonec redukuje na nul a jedniček. A když jste přestal přemýšlet o tom, je to docela přehrady pozoruhodné, co svět již s těmito základními stavebními kameny včetně některých zařízení držíte v ruce. No, proč jsou nul a jedniček užitečné? Bože můj, dokonce i v reálném světě jsme alespoň deset číslic, nula až devět. Proč tak málo? No v hardware hlediska je to velmi jednoduché. Je to mnohem jednodušší reprezentovat dva státy, v pořádku. Pokud jsou počítače zapojeny do zdi, obvykle, máte to jednoduché zdroj binární povahy. Je to buď zapnout nebo vypnout. Elektřina proudí, nebo to není. Tak, to je druh jedna z prvních důvodů, že svět šel jen s nul a jedniček v počítači. Ale můžete je použít jako základní stavební kameny. Takže to vlastně je trochu malý na obrazovce zde ale můžeme počítat v binární nebo můžeme reprezentovat, co chceme v binární stejně jako můžeme říci, jedno desetinné místo, stejně jako my můžeme, a to i ve skutečnosti, s abecedním dopisy. A tak, tady je rychlý systém. Za pouhých pár minut času budete nyní vědět, jak spočítat, jak psát, jak mluvit binární podobně jako svůj vlastní laptop. No, máte, ve světě binární, trochu podobně jako základní školu sloupců nebo hodnoty. Takže, na základní škole se dozvídáme, je to těch, sloupec je to desítky sloupci, stovky sloupec a tak dále. Jinými slovy, proč je počet známe jako číslo 123 123? No, můj učitel mě naučila, to je ty sloupce, to bylo několik desítek, se jednalo o stovky. No, co to znamená? No, přijít na to, co je celková hodnota je to, co je jinak řetězec číslic, pouze hash značek na palubě. No, máme jednu 100, takže to je 1 krát 100 a pak plus, co dva 10 je tak to je 2 krát 10 plus tři z nich, tak to je 3 krát 1, v pořádku, tak jsem se zřejmě dostal zpátky tam, kde jsem začal. Ale tento velmi jednoduchý proces jen vynásobením číslic hodnotou sloupce je přesně to, co binární je vše kolem. Ale v binární použít pravomoci dvou ne pravomocí z deseti. Takže, tady je série osmi žárovek. Počítačoví odborníci chtěli použít hodnoty jako dva až osm a 16 a 24 a 32, protože jsou všechny obecně vhodné hodnoty k použití. Takže, když hovoříme o osm hodnot v pořadí je to jako tzv. byte. A v těchto dnech jsme se jen zřídka mluví jen v bytech, mluvíme MB GB a TB v těchto dnech. Ale je to vše v konečném důsledku totéž. Tady je osm bitů AKA jeden bajt, pouze jednoduché žargonu. Takže všechny tyto žárovky jsou pryč. Takže matematika je ve skutečnosti opravdu snadné. Tak tam na pravé, i když je to malý vidět, je něčí sloupec, dvojky, čtyřky, osmičky, 16s, 32s, 64s, 128s. Dobře, možná je to těžké zapamatovat na první, ale je to jen násobí dvěma zprava doleva. Takže vždy můžete občerstvit se to. No, všichni jsou pryč, takže je 0 krát symbol, 0 krát zástupný symbol. Takže, to je číslo 0 zastoupené v binární. Jinými slovy, jak si zapsat číslo známe jako 0 v binární? No, jedna, dva, tři, čtyři, pět, šest, sedm, osm, a technicky stejně jako v desítkové soustavě, všech těchto nul, ale nepřidávejte nic vzorce jsou jen tam, protože jsme se svévolně rozhodli jsme se Chcete osm z těchto věcí za sebou, vpravo. Pokud jsou to fyzické předměty, máme osm, takže musím být všichni pryč. Takže by jsme právě dostali pryč s jednou nulou. No jak si představují číslo jedna? No, instinktivně budete házet jeden z přepínačů. Budeš zase žárovka na. Takže tam je číslo jedna, protože jsme teď dát jeden, žárovka, která je na v jedné pozici. Jak budeme reprezentovat dva? No, my jsme vlastně bude házet dva přepínače nyní alespoň versus tohoto stavu, musíme se obrátit na dvou sloup vypnout ty kolony a teď máme hodnotu jednoho z dvojky sloupci. Tak, to je celková hodnota dvou. Nyní, rychlý duševní výkon, co se bude dít s další pořadí? Jak mohu prezentovat číslo tři? No, já potřebovat jeden z dvojky sloupce, jeden z trojky sloupci ah ha. Tak, teď jsem se zvyšuje, že jeden. A teď, stejný základní vzorec se opakuje. Jaké je číslo čtyři? No uvidíme, jsem spravedlivý potřebovat jeden ve čtyřech sloupci a pak nuly do dvojky a regionů. Takže to pokračuje tímto způsobem. A je to právě tato posloupnost kroků. A pojem binární opravdu není všechno tak složité. V horní části máme osm nul. Níže, že máme sedm nul a jeden. Níže, že máme šest nul, jeden, a nula a to je binární. 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. [Smích] >> 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. [Hudba] >> 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. [Potlesk] ==== Transcribed by Automatic Sync Technologies ====