>> David: Üdvözlöm, a nevem David Malan, és ez CS50. És ez nem a tipikus középiskolai számítástechnika tanfolyam. Ez persze egy kicsit valami különlegeset. És nem azért, mert én vagyok tanítás is. azért, mert ez az egyik, szeretjük azt hinni, hogy azon ritka tanfolyamok valóban facsarván az agy annyira, és a menetrend annyira, hogy a félév végére meg valóban úgy érzi, okosabb. Szóval, ez volt az, ahogy én éreztem, amikor magam is vette ezt az utat még 1996-ban. Én a kormány jelentős idején itt élő Mather Ház. És I. [Szurkolni] Akárcsak a többi, a másik ötöt is. Szóval, én a kormány jelentős idején. És én voltam a kormány jelentős, mert mindig is szerettem volna történetében. Tetszett az alkotmányos jog a középiskolában. És igen, én elindult ezen az úton gólya évben csinál, amit csinálok a legjobban, amit én ismertem tetszett. Én meg mindig egy kicsit geek, én mindig motyogott számítógépekkel. De, én magam, talán ironikus módon utólag, én mindig nézett a srácok, akik szedtek számítógép-tudomány a gimnáziumi, barátaim, mint a valódi geeks. És mégis, végül mégis, második tanév veszem ezt a kis során úgynevezett CS50, ami valójában már megijesztett el saját elsőéves évben. És én voltam a felhasználó asszisztens idején. Szóval, én természetesen már képesítéssel rendelkezik, legalábbis, hogy közülük azok, akik geeks csináltam móka a suliban. De féltem. Van, hogy már ezt a hírnevet az idő, és talán még részben, hogy ez egy, ez egy félelmetes tanfolyam. Ez volt a sok munka. Nehéz volt, és mégis, ez az egyik olyan dolog, ahol az én Istenem, a kéreg sokkal rosszabb, mint az harap. Én találtam magam második tanév, az első alkalommal, a ténylegesen találni házi szórakoztató. És nem azt mondom, hogy ez csak a pitch a tanfolyam az Ön számára. ez volt a valódi megvalósítását számomra. Nos, azt hiszem, egy ponton, tettem át a határvonalat, hogy igaz geekdum ahol ténylegesen felhasznált várom, hogy péntek este, mert tudtam összegömbölyödik előtt az én kis MacBook és a munka CS50 problémája határozza meg. Szóval, ezen a ponton, azt hiszem világosan át a határvonalat. És mi célunk erre a kurzusra nem pedig minden Önt a személy, de csak azért, hogy azt mondják, hogy van egy kis valami különleges erről persze egy kicsit valami különleges a számítógép-tudomány általában, különösen ezekben a napokban. És minél akklimatizálódik Mindannyian került technológiák, a több játék visszük körbe a zsebünkben, amelyek maguk is számítógépek. Úgy értem, az én iPhone valójában egy nagyobb teljesítményű számítógép, mint az én-m laptop volt az egyetemen. Meg tudod csinálni a sok szép dolog ezeket a dolgokat. És most, a legtöbben ebben a szobában, talán csak használja mások szoftver, más emberek eszközei, mások oldják meg a problémákat, mert megyünk iTunes, már letölthető néhány app az App Store és ember tehetünk valamit nagyon ügyes. De a végén ez a félév, akkor az a személy csinálja problémamegoldás. Ön lehet az a személy valamilyen probléma megoldásában, épület, app, hogy a szoftver, azt a szerszámot, hogy akár az egyik csak szórakoztat, szórakoztat téged. Például, kontrolling, mondjuk, az iTunes könyvtárat a saját lakás egyértelműen egy app, hogy már létezik, vagy talál shuttle menetrend könnyebben pl. Tehát valójában, az egyik legelső dolog, amit tett megtétele után ismét CS50, valószínűleg ezen a ponton péntek éjszaka és szombat éjszaka, nem volt ez a lehetőség abban az időben, amikor Harvard futott shuttle buszok. , És a mai napig, még mindig van nyomtatott menetrendek. De nem volt igazán semmi esetre sem online találjanak ki, ha a következő űrsikló. Nos, én nem érdekel, mert bár éltem Mather nem voltam azok között, akik általában került a komp. De volt egy csomó barátok Pfoho pl. És egyikük megkérdezte, azt hiszem, az egy ponton. [Szurkolni] Oké Pfoho jobb, mint a látszólag Mather. Szóval, az egyik barátom ilyen elkapott gondolkodás talán tudok írni egy kis programot, hogy a segítségére barátaim ellenőrizze a komp menetrendek. És így született meg a shuttle félszegen nevű fiú, ez a darab lexikon, amely körül néhány maradt néhány évig legalább közül néhány upperclassmen. Abban az időben ez volt ez a kis parancssori program hasonló szellemben a Dos. Volt egy futó UNIX környezetben. Szóval, nem volt nagyon szexi egyáltalán. Csak írt egy pár parancsokat, és mondtam, amikor a shuttle voltak. Nos, ezekben a napokban ez egy kicsit bonyolultabb. És ez valóban képviselte pontosan milyen típusú projektek, hogy a hallgatók a kurzus végén így a kifejezések végére. Szóval, ez a verzió a négy, mintegy 15 évvel később, a Shuttleboy. Úgy tűnik, a Google Maps is, hogy egy kicsit lassú is. De azok számára, akik már az innen követően osztály és megy, mondjuk, a Memorial Hall és mennem kell fel, mondjuk, a Quad. Nos, akkor sem hagyjuk két perc alatt, ha az, ez tényleg nem működik az Ön számára most még, vagy van annyi más lehetőség, mint neked tetszeni fog. És hamarosan, mi is ez a pitch-től CS50, hogy ugyanaz lesz képes SMS-ben. Ön a szöveget Shuttleboy telefonon. Hívsz Shuttleboy. CS50 telefonszámát idén is csodálatra méltó ez volt elérhető, 617-BUG-CS50. Úgy, hogy majd hamarosan debütáló. Tehát ne nevezzük most még azért, mert kaptam szemrehányást a, most a 'lét irányítva a rendszer központi oktatási fickó mobiltelefon. Szóval, akkor csak kap tőle, ha kérdése van a komp menetrend most. De, hogy hamarosan végre. Így, többek valójában, hogy mi magunk költött ezen a nyáron nagyon előkészítése félévben volt egy csomó más probléma, hogy mi volna megoldani. Például, van egy csomó dolog, hogy folyik a campus egy adott napon. És valóban, Másképpen fogalmazva, van egy csomó dolog folyik ebben a campus, hogy én biztosan nem kihasználni. És, bár én most túlterheltek, hogy hány dolog folyik, a kampuszon, még mindig úgy tűnik, soha nem találja az időt. De, ember, még akkor is, CS50 előadását. Ez hol van, így ez volt, ez a program azt írta, hogy összességében az összes esemény az egyetemen. És ez már valami, hogy más diákok ugyanebben természetesen kezelni a saját. És, mi már dolgozunk más szervezetekkel az egyetemen, hogy valóban ez történik. De a lényeg, hogy CS50 ezt a kifejezést, hogy ezek a kis program amin dolgozunk, hogy ez egy vagy-e egy-egy összesítik a Harvard hír egy helyen, minden a Google News, mindezek a dolgok, hogy mit nevezzük API, alkalmazásprogramozási felületeket. És ez csak a képzelet képes beszélni a bérbeadás más emberek, ebben a szobában, valóban csinál valamit, hogy ugyanazokat az adatokat. Tehát az olyan kifejezések végén, ha úgy dönt, hogy végre a végleges projekt kapcsolatos hírek, események, vagy térképek, jól vagyunk, legalábbis egy tanfolyamot, teszi, hogy minden könnyebb ebben az évben azáltal, hogy Ön egy felületet, egy afféle funkciója, hogy úgy mondjam, szoftver, melynek segítségével saját projektek megy túl, ahol a diákok talán már elment az idő elmúlt, mert ez a keret nem volt hely számukra. És megint, ez az egész kezdődött, számomra legalábbis, mintegy 15 évvel ezelőtt végrehajtási Shuttleboy. Én akkor e-mailben a barátom Ken a Pfoho. Azt mondtam, hé, mit szólsz? Ez hasznos? Ő páncélos ki a Pfoho nyitott listát, és ember, annyi év múlva én is nyilvánvalóan fejés ebben a projektben. És a szép dolog, és ez az, ahol is egy tanfolyamot, mint ez a mérnöki és a számítástechnika, azt hiszem, egy kicsit különös, hogy amikor te otthon dolgozik, és ha nem a projekt erre a kurzusra, akkor tudom, sokan, igen, akkor félretesszük, és nem igazán használja újra. De egy részét, akkor. És itt van ez a nagyon nagy dolog, legalábbis nekem, ez igazán izgalmas dolog, ha ön csinál valamit, és más emberek valójában ellátás, mások nem csak mosolygott, és megveregette a hátán, majd valami megy a saját életét. Tulajdonságai mit tett a saját életében, még ha ez a valami olyan ostoba vagy olyan egyszerű, mint éppen a megállapítás, amikor is innen elkapni a következő űrsikló a Quad. Tehát az olyan kifejezések végéig, ez az egyik célja a kurzus, amely felhatalmazza srácok, hogy csak azonosítani egy problémát, hogy ez az egyetem, illetve remélhetőleg jóval campus, és ténylegesen használja a saját képességek, a saját szem előtt, és megoldani ezt a problémát néhány rész, technológiailag. Szóval, ez is egy tanfolyamot, mint mondjuk az tanterv és a kurzusok hivatalos leírást, hogy megtanít, hogyan kell gondolkodni, és bemutatja, hogyan lehet megoldani a problémákat hatékonyabban. Nos, mit jelent ez? Nos, ha megvan 600 megahertzes zsebünkben vagy három gigahertz alatti asztalon otthon, meg lehet oldani sok problémát hatékonyan csak a nyírási brute force. De, van egy csomó probléma ebben a világban, függetlenül attól, hogy keres, mondjuk, Facebook hálózaton vagy interneten keresztül a Google, hogy nem számít, milyen gyorsan el különösen a számítógép, nincs út a pokolba mész keresni milliárd weboldalak gyors, kivéve, ha valóban ez a probléma megközelítése intelligens. Ön nem csak a keresést, például egy hatalmas listát az összes internetes oldalak a földön fentről lefelé keres valamit kapcsolatos bármilyen keresett kifejezéseket keres reménykedve Google és feltehetőleg a Google és a Facebook és minden ezek a nagy szervezetek sok okos ember gondol, hogyan lehet megtalálni az adatok gyorsabban, hogy azok hogyan dolgozzák fel az információkat hatékonyabban, és hogyan tud csak általában vissza eredményeket gyorsabban, hogy meg tudod csinálni még sokkal érdekesebb dolgokat ezeket az eszközöket. És igen, mit is jelent, de, hogy milyen, a tanítás az emberek, hogyan kell gondolkodni körültekintőbben, több algoritmus. Nos, ez a kis vizuális mindig úgy tűnik, hogy menjen oda is. És, úgy tűnik, hogy emlékezetes. És én meg is kérdezte tegnap egy volt diák, oh fogsz csinálni a telefonkönyv már megint. És én elég sok a helyszínen úgy döntött, rendben biztos fogunk építeni egy telefonkönyv dolog. És azt kérdezte, ha tépte félbe jobb, én meg igen jól technikailag is tépte félbe, de nem úgy, ahogy, a számítógép-tudomány úgy leszek képes szakadás ezt a dolgot a felére. És igen, itt volt a probléma, hogy az általunk bemutatott egy ideig. Szóval, itt van a telefonkönyvben. Van rajta legalább ezer vagy úgy oldalak. És az egyszerű célt kéznél nagyon is valós világban is megtalálni, mondjuk, egy személy van. Szóval, Mike Smith, vezetéknevét kezdve S. Szóval, én vagyok egy tipikus ember, azt vedd fel a telefonkönyvben. És valaki odakinn, mit kíván, a tipikus személy, nem kezdeni megállapítás Mike Smith, nyilván nem tudta előre, mit oldalon ő valójában az. Rendben, így megy nagyjából a közepén, jobbra. És ezen a ponton a történet, én talán az N vagy az M, tudod, mintegy felénél a telefonkönyvben. Kiderült, hogy az utolsó alkalom, hogy nem ez a példa azt valahogy találtam magam a kíséret szakaszban. Igen, ez valóban nem egyenlő hangsúlyt között az A, M és N keresztül Z. De ma, mi van valójában az M, rendben van így, most én vagyok az M's. De mi az én elvihető már csak egy normális ember ki az utcára? Hová megy a következő Mike Smith. [Hallható] És így tovább, csak valószínűleg a felére, joggal, hiszen az S után jön M. És igen, itt rejlik a vizuális drámát. Ez nem igazán szakadjon félbe, igaza van. Valahogy csaltam meg a központ. De, mi már tudjuk, hogy Mike legalábbis nem abban a felében. Mi lehet szó dobja fele a probléma el. És én maradok a probléma, hogy az alapvetően még mindig ugyanaz a dolog, meg Mike Smith egy igazán nagy könyvet. De a probléma most már fele akkora. Mintha egy ezer oldalas előtt, most már van 500-at. Tudod mit, én is ugyanezt csinálja újra. Én is ilyen rekurzív vagy ismételten nem ugyanaz a dolog. Most már nem vagyok egészen az S. Én vagyok a T. És így, Ó, én elmentem egy kicsit túl messzire. De, tudom, most, hogy Mike nem jobbra, ott lesz néhány osztály egy nap, amikor egyszerűen nem tudom könnycseppet a gát dolog, lefogadom. De most, tudom, hogy nem a jobb. Szóval, most a problémát szállásolták. Szóval, én már elment ezer 500 250 oldal. És ismét, ha továbbra is a logika, továbbra is a matematika, én vagyok darabolás ezt a problémát a fele, fél, fél, míg végül én sem lesz nem talál Smith egyáltalán nem valószínű, vagy én megyek találni egy keresem. De, hogy akkor felmerül a kérdés, ez minden jobb, mint az egyszerű megközelítés csak azt mondom, tudod, A, dehogy, B, nem, balról jobbra haladó lineáris a könyvet? Nos, ösztönösen igen. Ez lesz sokkal gyorsabb. De, mennyivel kevesebb? Nos, ha van ezer oldal telefonkönyvben vagy mondjuk 1024 Azoknak, akik szeretik hatáskörét két, mennyi idő is van megosztani ezt a problémát felében megállapítása előtt Mr. Smith? >> Tíz. >> David: Szóval, tíz, jobbra. Ha van 1024 oldalas és te split őket félbe, fél, fél, fél, tudom, hogy tízszer ami azt jelenti megy 1000 oldal a személy, akit keresek mindössze tíz oldalnál fordul. És ez pont olyan szép, de, tudod, ha gondol rá csináltál ez az egész életed. Ez nem olyan drámai. De most, hogy a telefonkönyv nem csak a Boston, ez az egész Egyesült Államokban vagy az egész világ és ez a dolog már több milliárd oldalt is, így elképzelhető egy telefonkönyv négy milliárd oldalt. Hány oldalt fordul fogok még csinálni maximálisan találni Mike Smith egy négy milliárd oldalt telefonkönyv? >> Jelentkezzen be a két alap. >> David: Szóval igen, ha ilyen a matematikai jellegű ez alapúlogaritmus kettő. De, ha úgy gondolja, 4-2000000000 to one milliárd így egy fél milliárd. Úgy értem, hogy ténylegesen megy whittles maga meg szép stoppol gyors. Valójában 32 halvings a telefonkönyvben még négy milliárd, hozok le egy lapra. És akkor ez a cucc lesz erős, azt hiszem. Ekkor ezeket a gondolatokat kap meggyőző, ha lehet egy négy milliárd oldalt probléma, és 32 lépésben megtalálja a személyt keres. És igen, ez az, amit értünk, amikor azt mondjuk, hogy megtudhatja, hogyan gondolkodjanak körültekintőbben, több algoritmus, értelmesebb a problémák megoldásában. És a megtérülés hatalmas, ha ténylegesen ezt, és újra, hogy ezen a ponton a Googles a világ Facebooks, akik a luxust, miután hatalmas adatkészletek. Neked megközelíteni ezeket a problémákat ezen a módon egyébként ez egyszerűen nem fog működni. Nos, mi az, amit nem a diák ténylegesen visszahívás? Én azt szeretném csinálni a dolgokat, amelyek egy kicsit buta néha, hogy valami vegye le a szélét, amit egyébként sok új anyag. És igen, akkor valóban, ez volt hallgatója küldte nekem ezt a linket ami Mentem előre, csak a rúgást, majd sajnálatát fejezte ki, hogy a végén, húzta fel utube itt. Tehát, gondoltam, megosztom, milyen egy nem-számítógépes tudós azt jelenti, amikor könnyek telefonkönyv felében. [Nevetés] [Csend] [Hallható] >> Tudod, több mint 200 oldalas, szép tiszta sor, jogos könnycsepp. [Nevetés] >> David: igen, azt hiszem, ő így is működik. Szóval, mit kaptam ebbõl természetesen mindazok évvel ezelőtt igen, Shuttleboy, majd igen, egy bizonyos fokú számítógépes tudomány, majd igen, a PHD a számítástechnika. És ez nem mi vagyunk kipróbálás-hoz fordulni a legtöbb tanuló erre a kurzusra való. A legtöbb akkor erre a kurzusra nem fog menni egy fő a számítástechnikában. Néhány talán kisebb, de néhány, akkor ez lesz a terminál tanfolyam. És ez tökéletesen, mert ez a kurzus valójában, strukturált módon, ahol még akkor is, ha csak fizetni a díjat a több hónapon át, és ön igazán koncentrálni, és ha tényleg annyira ki ezt a pályán, ahogy tud, akkor, a Sőt, jól felszerelt térjen vissza a gazdasági világban, a biológia, a pszichológia, az alkalmazott matematika, és a ténylegesen igénybe, ami végső soron olyan érdekes, mint a természetesen reméljük, hogy fogalmilag, mivel alapvetően praktikus. És ez is van valami, hogy az talán egy kicsit ritkán találni. Azt hittem, osztozik néhány megjegyzést, hogy a diákok tavaly ősszel hozott az elmúlt években dákó útmutató, amikor megkérdezte, hogy mit szeretne mondani a jövőben a diákok. Nos, ha még nem nézett ezeket az észrevételeket, az egyik diák azt mondta ez a tanfolyam fog elég sok időt ki. de, ha ön tesz a munka új világát, egy egész, ha fel a munkát, ha tesz a munka, rendben van, tehát ez a nyelvtan nem az enyém, így ha fel, fel a munkát, a teljesen új világ nyílik meg rajtad. Hihetetlen, hogy mennyi tanultam csak 12 hét. Egy másik diák azt írta, jobb, ha ezt, vagy fogod megbánni. Egy másik azt írta, egy kicsit tompán, hogy szétrúgja a segged, és hagyjuk érzi magát nagyon. És akkor végre, ez talán valami, amit csak mutatni írásban, de a második az alsó itt. [Nevetés] Szóval, nem vagyok biztos benne, ha sok barátja van, aki vette a kurzus, de azt a fajta tett sok kárt a tavalyi diákok. Mutattuk be, az elején, több előadások, vetélkedők, néhány, egy-két probléma határozza meg, ez a fogalom a lolcats. Nem látod, mit látok itt, de egy pillanat múlva megjelenik egy fiatalember boldog nevű macska, aki vezetője az úgynevezett lolcat. Ez az egyik hülye internet előre, hogy azt hiszem, őszintén a kettősséget a két úr itt, és mi most a képernyőn is talán. [Nevetés] Az egyik legnagyobb, nem megfelelő felhasználást e színház a mai napig. És miért nem teszünk egy kicsit valóban egy kicsit több személyes ez a fogalom, hogy valóban egy probléma megoldásának hatékonyabb. Egy egyszerű problémát az első napon minden iskolában ülni vagy állni, és elkezd számolás a diákok, jobb név a fajta. Nos, a legtöbb naiv, de mégis, nagyon helyes megközelítés, hogy a tanár lehetne egy, kettő, három, négy, öt, hat, hét, és mi lennénk itt elég sokáig. Szóval, mi a marginális javulása is, hogy tette volna, mint egy gyerek? Hogyan számít az emberek gyorsabban? És nem indul leolvasásával saját utasítást? Mit tettél volna, mint egy gyerek? Start számlálás kettesével, igaz, valahogy így vagyok elég jó a kettő, négy, hat, nyolc, tíz, 12. Úgy, hogy valami érdekes van. Igen, mennyi a javulás, hogy? Szóval, ez nyilvánvalóan a kétszeresére. Hogy elvisz fele annyi idő. De tudod mit, mint mi megtaláljuk az egész félévben, nagy dolog, mint felgyorsítja a futás időben csak egy tényező a két nem olyan érdekes, mert az analóg itt a számítógépes világ, hogy én vagyok a CPU Én vagyok egy számítógép, jól fene, ha csak vár 12 hónap, 18 hónap, azt a számítógép csak képes a természet, a több gigahertz van bennem ahhoz, hogy az emberek száma ebben a szobában gyorsabb. Igen, ilyen típusú, ilyen típusú lineáris speedups mint kétszeresére háromszorosára, akár tízszerese, kit érdekel? Rendben, mi dobja hardvert a probléma. Mi várhat a dolgokat. Mi is gyorsabban fejlődnek gépek. Hanem, intellektuális, igen volt ilyen okos, de nem igazán hoz alapvető változást a problémát. Én még folyamatban van, balról jobbra, elölről hátrafelé. Ez tényleg ugyanaz algoritmus. De kínálok hogy tudunk jobbat. Nem tehetünk okosabb, mint ez, és nem alapvetően a gyorsabb végrehajtás. De, az ezt igazoló, szükségünk van a humor nekünk csak egy pillanatra. És ezen a ponton, ahol ez lesz velem beszélni és kevesebbet beszél tovább. De én nem akarom, hogy végre egy lépéssel együtt, ami ha humor velünk, kérjük, állj fel. Az irányban itt a fórumon, tudod van, oké, pár van, hogy üljön le. Akik ezt a hát, ott vagyunk, rendben. Köszönöm. Igen, a program itt előtted. Ön most a számítógépek végrehajtó program. Ez eléggé magától értetődő ezen a ponton. Igen, akkor meg kell számú. Kap ez? Rendben, sokan azt fogják gondolni ezt a már amúgy is, az első gólya évben. Tehát azt gondolja, te vagy az első számú. Szóval, itt három lépésben, egy pár le állók, add hozzá a két szám együttesen és elfogadja, hogy az összeget az új számot, és mi nem a józan eszét ellenőrzést. [Hangok akár tömegből] Tudja, hogy hány van? >> [Hallható] >> Nem [hallható]. >> Mi kell a választ gombot. [Csend] >> Igen. [Hangok akár tömegből] >> David: Ezen a ponton az algoritmus kell megszűnésével kapcsolatban. [Hangok akár tömegből] Talán nem kellett volna az én megközelítésem után. >> 43. >> 163. >> David: Ó számtani előtt a 300 plusz embereket. [Nevetés] Mi a mi végleges megegyeznek lesz? >> 180. [Nevetés] >> 1200. >> 386. >> David: 386, és akkor az utolsó állva? Van, hogy mindenki? Tudod a választ? >> Mi az? >> David: Tudod, mi a válasz? Nem hogy választ kulcs velünk igen, 386 valójában éppen a helyes választ az első alkalommal. [Szurkolni] [Taps] Ez rendben van. [Taps] Nagyon, nagyon szépen kelt. Igen, mi volt az elvihető, mert úgy érezte, hogy feltétlenül egy kicsit lassabb, mint az én nagyon egyszerű, de mégis nagyon helyes megközelítés az éppen folyamatban lévő onesies és twosies, és csak arra, hogy ez történhet, balról jobbra. De, mit igazán csak ott? Nos, ha voltak durván, mondjuk, 400 állsz egy pontot, majd a fele van, nagyon gyorsan, attól, amit tudtam, akartam, hogy üljön le. Szóval, a fele akkor leült, mentünk 400-200, majd 100, majd 50, majd 25. Tehát ismét ott van, hogy ugyanaz oszd meg és uralkodj ötlet mi volt a telefonkönyvben. Ismét, minden iterációs is felére csökkentette a probléma nagyságát, mi a felére csökkent, mi is a felére csökkent. Tehát elméletileg, a algoritmust kellett volna sokkal gyorsabb, mint az én lineáris megközelítés, mert a megközelítés már tett lépéseket, azaz 400, vagy talán, ha én vagyok kissé ügyes 200 lépést. De, a tiéd lenne már tenni sokkal kevesebb, igaz 400-200, 100, 50, 25, 13, hat, így kevesebb, mint tíz lépést a végén, szemben az én 200 vagy 400-at. És ott van még a csírája egy nagyon érdekes ötlet. És igen, matematikailag mit tett volt, ami egy kicsit logaritmikus a természet alapúlogaritmus két, már két részből és két újra. És mi felülvizsgálják ezt a későbbiekben félévben. De ebben rejlik megint egy nagyon értelmes végrehajtását. És mi csak vakarja a felületet a nagyon okos az nagyon intelligens hatékony megközelítés problémákat, talán végül megoldani. Tehát, akik az emberek egyszerűen csak beszélgettek, ha rövid időre? A közös aggodalomra ad okot során, mint az, hogy mindenki a bal oldalon van, és mindenkinek a jogát, akkor világosan meg kell tudni többet, mint te. Nos, ez egyáltalán nem ez a helyzet. És valóban, az elmúlt években, ezt az utat tett összehangolt erőfeszítést, hogy elérje a kevésbé kényelmes, hogy úgy mondjam. És, hogy mi nem az emberek, akik soha nem érintette a számítógép előtt, mert ez tényleg nehéz megtalálni itt ezekben a napokban, de a hozzátartozók, akik e-mailben, használja a Facebook, talán még most, de nem feltétlenül egészen biztos abban, mit kell tennie, ha valami balul sül el, vagy amikor kérdezik semmit technológiai, tudod, a kezek felmegy, vagy azok a fajta támadás a hardver egy barátjának, aki talán jobban járatos benne, mint ők. Nos, ezek egyes statisztikai adatok a tavalyi félév. Tehát, amikor megkérdezte, mikor megkérdezte mi 400, hogy a diákok tavaly, tudod, mi a szintű kényelmet kerülő ebbe az osztályba, illetve 34% írta le magát körében kevésbé kényelmes. Tehát, ha jön ebbe a szobába, és továbbra is gondol most, hogy tudod mit, ez a kifejezés kevésbé kényelmes írja le nekem, tudja, hogy nagyon jó társaság. De észre azt is, hogy, ha jön ez természetesen a háttérben a számítástechnika és te tényleg ilyen geek-ban középiskolai és gimnáziumi aki írásban kódot és oktatási magatokat nyelven, valamint, hogy rendben van túl, mert kétségkívül egy nontrivial méretű közönséget, hogy a háttér is, mintegy 13%-kal, utóbbi kifejezést. És akkor, ott van mindenki más, a fajta, aki nem hiszik, kevésbé kényelmes, akkor biztosan nem hiszik, sokkal kényelmesebb, de ezek csak a tanfolyam, hogy valamit kapjunk belőle. Igen, észre ez természetesen nem húz eléggé a spektrum a diákok. És, hogy ezt több konkrét, 71%-át a diákok, tavaly már nulla kurzusok mögött. Tehát, ha belépő erre a kurzusra gondoltam oh mindenki, aki veszi CS50 volt egy számítógép tudomány zseniális a középiskolában, ez nem igaz. A legtöbb ember valószínűleg csak érdekelhet. És néhány, igen, feltétlenül tett néhány kurzust, néhány, vagy legalább egy személy, tavaly vettek öt tanfolyamot korábban. Szóval, mi határozottan egy kis kiugró, de ismét a húst a görbe ezen alacsonyabb értékek összesen. És még egy érdekes statisztikát is megosztott az elmúlt néhány évben a nemek aránya. Igen, történelmileg, legalábbis a számítógép-tudomány, van egy kis férfi női ferdít. Én pár évvel ezelőtt sokkal markánsabb, mint tavaly. Szóval, mi szinte már a 40%-szintet. És ha tudok dobja le a kesztyűt csak a kedvéért, amelyek egy harmadik kördiagram jövőre, ez még igazságosabb legyen. Szeretném kiemelni, hogy az egyáltalán nem ok a tanfolyamok tervben hímek és nőstények nem beiratkozott ilyen tanfolyam. Viszonylag egyenlő számban és rájön, hogy 38 százalék, 48 százalék, mi valójában meglehetősen örömmel látom, hogy mi vagyunk szinte, hogy legalább statisztikailag is érték 50%. Tehát, ha Ön valójában, női, nem pihenés biztosítására is, hogy ez nem, sőt, a férfiak uralta az osztályt. Nos, ez csak azért történik, hogy a CS50 20 éves. Én, köszönöm jól. [Szurkolni] [Taps] Ez nagyon kedves, mert hoztunk tortát, hogy tényleg. És így, ha kilép itt később ma, akkor valójában kap egy esélyt, hogy megfelelnek számos tanfolyamok oktatási fickók, akik hosszadalmas lesz a folyosón. És igen, lesz egy szép egyfajta ösztönzést módja megfelel az oktatási fickók. De, mi fog egy utazás akár egy kis pékség és ismét összhangban van a tanfolyam játékos természete mellett azonban várja nontrivial munka mennyiségét, miközben mi feltéve, hogy a móka. De, mi van egy ilyen süteményt az Ön számára. [Nevetés] Tehát, ha nevet, amik jók, mert még akkor is, ha a 'közül az egyik a kevésbé kényelmes, legalább te tudatában. Akik ezt a 14 százalékát is inkább ezt ízét. [Nevetés] És aztán, ha nem tudja, mi a fene folyik itt most, mi is ezt a többiek. [Szurkolni] [Taps] Nos, ezek is darabokra vágva, kint beszélünk. Tehát újra, nézzük a dolgokat fel egy fokkal, és legalább be bizonyos alapvető bérlő, hogy mi lesz akkor fog számára nyújtott fennmaradó félévben. Szóval, mi minden bizonnyal tudja, hogy a számítógép végül szűkülnek le valahogy a nulla és az is, ezek a dolgok néven bit. Mit jelent ez? Hát tudod gondolni, hogy őszintén, mint egy villanykörte, egy kicsit egy villanykörte ez akár, vagy a 'ki. Ez egy kapcsoló, hogy vagy-vagy-a 'ki. Most, számítógépes szakemberek általában gondolnak ki, mint a szám nulla, önkényesen és a, és fogalma az egyik. Tehát, ha dobja a villanyt az ez az egyik kapcsold ki, hogy egy nulla. Vagy ami azzal egyenértékű, fordítsa el a fényt, hogy az értéke igaz, kapcsolja ki ez az érték false. Szóval, ezek csak szinonimái. A nap vége, igen, minden számítás, minden cucc, hogy megy a motorháztető alatt a számítógép nem szűkülnek le végül a nullák és egyek. És, ha megáll gondolkodni róla, elég gát méltó, amit a világ végezni ezen alapvető építőeleme köztük a készülékek Ön a kezedben. Nos, miért nullák és egyek hasznos? Istenem, még a valós világban is legalább tíz számjegy, nulla kilenc keresztül. Miért csak? Valamint a hardver szempontjából ez nagyon egyszerű. Sokkal könnyebb, hogy képviselje a két állam, igaz. Ha a számítógép csatlakoztatva van a falon, általában, akkor ezt könnyen forrását bináris jellegű. Ez akár nem. Villamos energia áramlik, vagy nem. Szóval, ez a fajta az egyik első oka, hogy a világ ment csak nullák és egyek a számítógépek. De, tudod használni őket, mint építőelemek. Szóval, ez valójában egy kicsit kicsi a képernyőn van, de mi is számít a bináris, vagy mi is kiteheti bármit akarunk bináris csakúgy, mint tudjuk, mondjuk, tizedes, ahogy tudunk, sőt valójában az ABC betűkkel. És igen, itt van a gyors rendszer. Csak egy pár percet akkor már tudja, hogyan kell számítani, hogyan kell írni, hogyan kell beszélni bináris hasonlóan saját laptop. Nos, van, a világon a bináris, valami hasonlóan iskolában oszlopok és értékek. Igen, az iskolában tanuljuk meg ez a oszlop is ez a tíz oszlop, a több száz oszlop és így tovább. Más szóval, miért van a szám, mint tudjuk, a szám 123 123? Nos, én tanár tanított meg ez az oszlop is, ez volt a tízes, ez volt a száz. Nos, mit jelent ez? Nos, hogy kitaláljuk, mi a teljes érték, amit egyébként a string a szám, csak hashmark a táblán. Nos, egy 100, így az 1-szer 100, majd a plusz, amit két 10 Olyan ez 2-szer 10 + három is, hogy a 3-szor 1, oké, így úgy tűnik, hogy ütött vissza, ahol kezdtem. De, ez nagyon egyszerű folyamat, mindössze a számjegyek szorzata értékével az oszlop pontosan bináris szól. De a bináris használja hatáskörét két nem hatásköre tíz. Szóval, itt van egy sor nyolc izzók. Számítógépes szakemberek, mint a használati értékeket mint két és nyolc, valamint 16. és 24. és 32. mert ők mind általában kényelmes értékek használatára. Szóval, ha beszélünk nyolc értékek sorrendben ez olyan, mint az úgynevezett byte. És ezekben a napokban már csak ritkán beszélünk csak byte, beszélünk gigabyte megabyte-és TB ezekben a napokban. De ez az egész végső soron ugyanaz a dolog. Itt nyolc bit AKA egy byte, csak egy egyszerű zsargon. Tehát mindezek izzók ki vannak kapcsolva. Tehát, a matematika valójában nagyon egyszerű. Tehát a jobb oldalon, bár kis látni, az egy-oszlop, a kettes, a négyes, a nyolcas, a 16s, 32s, 64s, 128s. Rendben, lehet, hogy nehéz megjegyezni az első, de ez csak kettővel szorzott jobbról balra. Szóval, akkor mindig újra ezt. Nos, ezek mind le, hogy a 0 helyőrző, 0 helyőrző. Igen, ez a szám 0 képviselt bináris. Más szóval, hogyan írjuk a számot ismerünk, mint a 0 bináris? Nos, egy, kettő, három, négy, öt, hat, hét, nyolc, és technikailag mint a tizedes, az összes ilyen nullát, nem tesz hozzá semmit a képlet ők csak ott, mert önkényesen úgy döntött, mi akar nyolc ezeket a dolgokat egy sorban, jobbra. Ha ők a fizikai tárgyak, már nyolc így muszáj mind le. Szóval, mi is épp most megúsztam egy nulla. Hát hogyan képviselik az első számú? Nos, ösztönösen fogod dobni az egyik kapcsolók. Maga fog fordulni egy izzó a. Így van, az első számú, mert most is egy, a villanykörte, hogy a vonatkozó, az ember helyzetét. Hogy megyünk, hogy képviselje a két? Nos, mi valóban lesz dobja két kapcsolót most legalább versus ezt az állapotot, mi kapcsolja be a két-oszlop kapcsolja ki azokat, oszlop, és most már az értéke egy, a kettes oszlopban. Szóval, ez a teljes értéke kettő. Most, egy gyors mentális gyakorlat, mi fog történni a következő sorozat? Hogyan be a hármas szám? Nos, kéne az egyik a kettes oszlopban, az egyik a hármas oszlop és ah ha. Szóval, most már eggyel, hogy az egyik. És most, ez az alapminta megismétli. Mi a szám négy? Hát lássuk, én csak szükség egy a négyes oszlopban, majd a nullák és kettesével is. Tehát, továbbra is így. És ez csak ez a menete. És fogalma bináris valóban nem olyan bonyolult. A tetején ott van a nyolc nulla. Az alábbiakban, hogy van hét nulla, és egy. Az alábbiakban, hogy van hat darab nulla, egy, illetve nulla, és a bináris. 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. [Nevetés] >> 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. [Zene] >> 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. [Taps] ==== Transcribed by Automatic Sync Technologies ====