版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
不插電的計算機(jī)科學(xué)課件不插電的計算機(jī)科學(xué)課件不插電的計算機(jī)科學(xué)課件ComputerScienceUnpluggedCSUnpluggedisabookofactivitiesthatillustratecomputerscienceprincipleswithoutusingacomputer.Activitiesareshortandaredesignedtobeeasilyintegratedintoclassesandincludeexercisesandlessonplansforteachers.2021/2/42ComputerScienceUnpluggedCSUnpluggedisabookofactivitiesthatillustratecomputerscienceprincipleswithoutusingacomputer.Activitiesareshortandaredesignedtobeeasilyintegratedintoclassesandincludeexercisesandlessonplansforteachers.2021/2/42COUNTTHEDOTSDataincomputersisstoredandtransmittedasaseriesofzerosandones.Howcanwerepresentwordsandnumbersusingjustthesetwosymbols?2021/2/43COUNTTHEDOTSWhatnumericalpropertydoyouseeinthedotsonthecards?Displaythecardssothefollowingnumberofdotsareshowing:615212021/2/44COUNTTHEDOTSWhenabinarynumbercardisnotshowing,itisrepresentedbyazero.Whenitisshowing,itisrepresentedbyaone.Thisisthebinarynumbersystem(base2).Whatarethefollowingbinarynumbers?0100121001122021/2/45COUNTTHEDOTSWhatisthehighestnumberwecanrepresentusing5cards?111112=31Whatisthelowestnumberwecanrepresentusing5cards?000002=0Countfrom0to31inbinary.2021/2/46COUNTTHEDOTSLettersarerepresentedincomputersinbinaryalso!blank 0 000002 A 1 000012
B 2 000102 C 3 000112 ... Z 26 1101022021/2/47COUNTTHEDOTS010010001100101000000001110010001010000101101ICE_CREAMblank 0A 1B 2C 3D 4E 5F 6G 7H 8I 9J 10K 11L 12M 13N 14O 15P 16Q 17R 18S 19T 20U 21V 22W 23X 24Y 25Z 262021/2/48COUNTTHEDOTSHAPPYBIRTHDAY,CARLOSSANTANA!
BornJuly20,19472021/2/49COLORBYNUMBERSComputerscreensaredividedupintoagridofsmalldotscalledpixels(pictureelements).Inablackandwhitepicture,eachpixeliseitherblackorwhite.Computersstoredrawings,photographsandotherpicturesusingonlynumbers.Thefollowingactivitydemonstrateshowacomputerimagecanbestoredefficiently.2021/2/410COLORBYNUMBERSTheletterahasbeenmagnifiedtoshowthepixels.Whenacomputerstoresapicture,allthatitneedstostoreiswhichdotsareblackandwhicharewhite.1,34,11,40,1,3,10,1,3,11,42021/2/411COLORBYNUMBERS6,5,2,34,2,5,2,3,13,1,9,1,2,13,1,9,1,1,12,1,11,12,1,10,22,1,9,1,1,12,1,8,1,2,12,1,7,1,3,11,1,1,1,4,2,3,10,1,2,1,2,2,5,10,1,3,2,5,21,3,2,52021/2/412COLORBYNUMBERSThistechniqueiscalledrun-lengthencoding.FaxtransmissionCompressionofimagesColorencodingUsetwonumbersperrunFirstnumberishowmanypixelsasbeforeSecondnumberiswhatcolor(1=red,2=green,...)2021/2/413CARDFLIPMAGICWhendataisstoredonadiskortransmittedfromonecomputertoanother,weusuallyassumethatitdoesn'tgetchangedintheprocess.Butsometimesthingsgowrongandthedataischangedaccidentally.Thisactivityusesamagictricktoshowhowtodetectwhendatahasbeencorrupted,andtocorrectit.2021/2/414CARDFLIPMAGIC2021/2/415CARDFLIPMAGICThisexerciseillustratesevenparity.Whencomputerdataistransmittedtoanothercomputer,extrabitsareaddedsothatthenumberof1siseven.Thereceivingcomputercandetectifsomethinggetsmessedupduringthetransmissionandcancorrectitifthereisoneerror.Whathappensiftherearetwoerrors?2021/2/416CARDFLIPMAGICHereisanexampleofparityinreallife:1X10=104X9=362X8=165X7=359X6=543X5=157X4=286X3=187X2=14226/11=20remainder6 ChecksumDigit=11-6=52021/2/417CARDFLIPMAGICMoreparity:2021/2/418YOUCANSAYTHATAGAIN!Sincecomputersonlyhavealimitedamountofspacetoholdinformation,theyneedtorepresentinformationasefficientlyaspossible.Thisiscalledcompression.Bycodingdatabeforeitisstored,anddecodingitwhenitisretrieved,thecomputercanstoremoredata,orsenditfasterthroughtheInternet.Thisexerciseillustrateshowachildren'srhymecanbecompressed.2021/2/419YOUCANSAYTHATAGAIN!PITTERPATTERPITTERPATTERLISTENTOTHERAINPITTERPATTERPITTERPATTERONTHEWINDOWPANE2021/2/420YOUCANSAYTHATAGAIN!PITTERPATTERPITTERPATTERLISTENTOTHERAINPITTERPATTERPITTERPATTERONTHEWINDOWPANEBEFORE:78lettersAFTER:
29letters2021/2/421YOUCANSAYTHATAGAIN!Thearrowsandboxesarepresentedwith2numbers.PITTERPA(7,4)7:countback7positions4:copy4letters/spacesSometimesboxespointbacktoaboxwithablankinside.
BAN2021/2/422YOUCANSAYTHATAGAIN!Thestoragecapacityofcomputersisgrowingatanunbelievablerate.Inthelast25years,theamountofstorageprovidedonatypicalcomputerhasgrownaboutamillionfold.Wecancompressthedatasothatittakesuplessspace.ThisexerciseusesZiv-Lempelcoding,orLZcoding,inventedbytwoIsraeliprofessorsinthe1970s.ZIPfiles,GIFimages2021/2/423MARCHINGORDERSComputersareusuallyprogrammedusinga"language",whichisalimitedvocabularyofinstructionsthatcanbeobeyed.Oneofthemostfrustratingthingsaboutprogrammingisthatcomputersalwaysobeytheinstructionstotheletter,eveniftheyproduceacrazyresult.Thisactivitygiveskidssomeexperiencewiththisaspectofprogramming.2021/2/424MARCHINGORDERS2021/2/425MARCHINGORDERS2021/2/426BEATTHECLOCKThisactivityillustratesstructuresusedinparallelsortingnetworks.Kidssortdatabywalkingthroughasortingnetworklaidoutonthefloor.Thenetworksimulateshowaparallelnetworkwouldsortdata.Kidsfindoutthatdatacanbesortedalotfasterinparallel!2021/2/427BEATTHECLOCK2021/2/428BEATTHECLOCK
VIDEO
Searchfor“computerscienceunplugged”2021/2/429TWENTYGUESSESHowmuchinformationisthereina1000book?Istheremoreinformationina1000telephonebook,orinTolkien'sLordoftheRings?Ifwecanmeasurethis,wecanestimatehowmuchspaceisneededtostoretheinformation.Thisactivityintroducesawayofmeasuringinformationcontent.2021/2/430TWENTYGUESSESCanyoureadthefollowingsentence?
Thssntncehsthvwlsmssng.
Youprobablycan,becausethereisnotmuch"information"inthevowels.2021/2/431TWENTYGUESSESIamthinkingofanumberbetween
1and100.Iwillstartyouoffwith20piecesofcandy.Youmayonlyaskquestionsthathavea"yes"or"no"answer.Foreachincorrectguess,youwillloseonepieceofcandy.Onceyouguesscorrectly,youcankeepwhatevercandyremains.422021/2/432TWENTYGUESSESTopickanumberbetween0and100,youonlyneed7guesses.Alwaysshootforthemiddlenumberoftherangeandeliminatehalfthepossibilities!Thisconceptiscalledbinarysearch.Ifthenumberwasbetween0and1000,youwouldonlyneed3additionalguesses.Youcanguessanumberbetween0and
1millioninonly20guesses!2021/2/433BATTLESHIPSComputersareoftenrequiredtofindinformationinlargecollectionsofdata.Computerscientistsstudyquickandefficientwaysofdoingthis.Thisactivitydemonstratesthreedifferentsearchmethodssochildrencancomparethem.2021/2/434BATTLESHIPSBattleshipsarelinedupatsea.Eachbattleshiphasanumberthatishidden.Howmanyguessesdoesittakeforyoutofindaspecificbattleship?Thenumberofguessesisthechild'sscore.Thelowestscorewins.2021/2/435BATTLESHIPSGAME1:Shipsarerandomlyordered.FINDSHIP#7171630926341274054429711331764015797688346515718625258771875258802019191414414305691187177021307633362021/2/436BATTLESHIPSGAME2:Shipsareinincreasingorder.FINDSHIP#58973318373091119271943220022153451351940555548565557855897590561186296662567716831715178068077902493282021/2/437BATTLESHIPSGAME3:Shipsareorderedinto10groupsbasedonamysteryfunction.FINDSHIP#84172021/2/438BATTLESHIPSThesethreegamesillustratelinearsearchbinarysearchhashingWhatisthemaximumnumberofguessesrequiredforeachofthesesearchtechniquesfor26battleships?fornbattleships?2021/2/439POORCARTOGRAPHERManyoptimizationproblemsinvolvesituationswherecertaineventscannotoccuratthesametime(e.g.schedulingmeetingsandclasses).Coloringregionsofamapwithdifferentcolorsiseffectivelythesameproblemaswewillshowinthisexercise.2021/2/440POORCARTOGRAPHERGivenamap,coloreachregionwithacolorsothatnotwoadjacentregionsusethesamecolor.Iftworegiontouchonlyatonepoint,they
arenotconsideredadjacent.Example:ArizonaandColoradoHowmanycolorsaresufficient
tocoloramap?Howmanycolorsarenecessary
tocoloramap?2021/2/441POORCARTOGRAPHER2021/2/442POORCARTOGRAPHER2021/2/443POORCARTOGRAPHER2021/2/444POORCARTOGRAPHER"undirectedgraph"AIHGBFECDJGABCDEFJHI2021/2/445POORCARTOGRAPHERScheduling2021/2/446POORCARTOGRAPHERCanwecoloramapwith3colors?Thisproblemisintractable.Theonlywayweknowtosolvethisproblemingeneralistoderiveallpossiblecoloringsandseeifwecomeacrossavalidcoloring.Howmanycoloringsarethereforamapwith25regions?Howlongwouldittaketoanalyzeallofthesecoloringsifittakes1secondtoanalyzeonecoloring?2021/2/447THECOOPERATIONGAMEWhenyouhavealotofpeopleusingoneresource(suchascarsusingroads,ormessagesgettingthroughtheInternet),thereisthepossibilityof"deadlock".Awayofworkingcooperativelyisneededtoavoidthishappening.Thisexerciseillustratescooperativeproblemsolvingand(potentially)deadlock.2021/2/448THECOOPERATIONGAMEAsharedresource
inPittsburgh:STOPSTOPSTOPSTOP2021/2/449THECOOPERATIONGAMEAsharedresource
inNewYork:STOPSTOPSTOPSTOP2021/2/450THECOOPERATIONGAMESetup:Eachchildisassignedacolor.Givetwocolorcardstoeachchildexceptonechild,whogetsonlyone.Eachchildshouldnotholdhisorherowncolorinitially.Thechildrenformacircle.Goal:Eachchildmustendupwiththecard(s)ofhisorherowncolor.2021/2/451THECOOPERATIONGAMEPassingRules:
Onlyonecardmaybeheldineachhand.
Acardcanonlybepassedtoanemptyhandofanimmediateneighborinthecircle.(Achildcanpasseitheroftheirtwocardstotheirneighbor.)
(optional)Notalking.2021/2/452THECOOPERATIONGAMEAlternateConfigurations2021/2/453THECOOPERATIONGAMERoutinganddeadlockareproblemsinmanynetworks,suchasroadsystems,telephoneandcomputersystems.Engineersspendalotoftimefiguringouthowtosolvetheseproblems-andhowtodesignnetworksthatmaketheproblemseasiertosolve.2021/2/454TREASUREHUNTComputerprogramsoftenneedtoprocessasequenceofsymbolssuchaswordsinadocumentoreventhetextofanotherprogram.ComputerscientistsuseaFiniteStateAutomaton(FSA),asetofinstructionstoseeifthesequenceisacceptableornot.ThisexerciseusestheFSAideausingtreasuremaps!2021/2/455TREASUREHUNTGoal:FindTreasureIsland,startingfromPirates'Island.Friendlypirateshipssailalongfixedroutesbetweenislandsofferingridestotravelers.Eachislandhastwodepartingships,AandB.DetermineallpossiblesequencesofshipsthatatravelercantaketoarriveatTreasureIsland.Useyourmaptorecordalltheshiproutes.2021/2/456TREASUREHUNTAB2021/2/457TREASUREHUNTAB2021/2/458TREASUREHUNTAB2021/2/459TREASUREHUNTAB2021/2/460TREASUREHUNTAB2021/2/461TREASUREHUNTAB2021/2/462TREASUREHUNTPLAYAGAIN2021/2/463TREASUREHUNTWhatisthequickestroute?"directedgraph"2021/2/464LIGHTEST&HEAVIESTComputersareoftenusedtoputlistsintosomesortoforder(e.g.namesintoalphabeticalorder,appointmentsore-mailbydate,etc.)Ifyouusethewrongmethod,itcantakealongtimetosortalargelistintoorder,evenonafastcomputer.Inthisactivitychildrenwilldiscoverdifferentmethodsforsorting,andseehowaclevermethodcanperformthetaskmuchmorequicklythanasimpleone.
2021/2/465LIGHTEST&HEAVIESTStartwith8containerswithdifferentamountsofsandorwaterinside.Sealtightly.Childrenareonlyallowedtousethescalestocomparetherelativeweightsoftwocontainers.Onlytwocontainerscanbecomparedatatime.
2021/2/466LIGHTEST&HEAVIESTMETHOD1Weighfirsttwocontainers.Keepthelightercontainerandweighitagainstthethirdcontainer.Keepthelightercontainerandweighitagainstthefourthcontainer....continue...Keepthelightercontainerandweighitagainsttheeighthcontainer.Keepthelightercontainer.Thismustbethelightestcontainer.2021/2/467LIGHTEST&HEAVIESTMETHOD1(cont'd)Repeatthisprocessagainusingthe7remainingcontainerstogetthenextlightestcontainer.Repeatthisprocessagainusingthe6remainingcontainerstogetthenextlightestcontainer.Continue
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年廉潔安全服務(wù)合同
- 2024年度醫(yī)療設(shè)備OEM生產(chǎn)與技術(shù)支持合同
- 2024年新建住宅室內(nèi)設(shè)計合同
- 2024年度安置房銷售代理合同
- 2024年外幣個人對個人借貸合同
- 2024年度石油化工設(shè)備安裝工人勞務(wù)合同
- 2024年數(shù)據(jù)管理與分析系統(tǒng)開發(fā)合同
- 2024年廣告代理合同:品牌推廣
- 2024年建筑項目居間咨詢服務(wù)合同
- 2024年房地產(chǎn)買賣合同及相關(guān)權(quán)益轉(zhuǎn)移
- 雅魯藏布江大拐彎巨型水電站規(guī)劃方案
- 廣西基本醫(yī)療保險門診特殊慢性病申報表
- 城市經(jīng)濟(jì)學(xué)習(xí)題與答案
- 國開成本會計第14章綜合練習(xí)試題及答案
- 幼兒園大班科學(xué):《樹葉為什么會變黃》課件
- 1到50帶圈數(shù)字直接復(fù)制
- 鐵路工程施工組織設(shè)計(施工方案)編制分類
- 幼兒園中班數(shù)學(xué)《有趣的圖形》課件
- 《規(guī)劃每一天》教案2021
- 草莓創(chuàng)意主題實用框架模板ppt
- 山大口腔頜面外科學(xué)課件第5章 口腔種植外科-1概論、口腔種植的生物學(xué)基礎(chǔ)
評論
0/150
提交評論