不插电的计算机科学课件复习进程.ppt
《不插电的计算机科学课件复习进程.ppt》由会员分享,可在线阅读,更多相关《不插电的计算机科学课件复习进程.ppt(73页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、不插电的计算机科学课件COUNT THE DOTSData in computers is stored and transmitted as a series of zeros and ones.How can we represent words and numbers using just these two symbols?COUNT THE DOTSWhat numerical property do you see in the dots on the cards?Display the cards so the following number of dots are showi
2、ng:61521 COUNT THE DOTSWhen a binary number card is not showing,it is represented by a zero.When it is showing,it is represented by a one.This is the binary number system(base 2).What are the following binary numbers?010012100112COUNT THE DOTSWhat is the highest number we can represent using 5 cards
3、?111112=31What is the lowest number we can represent using 5 cards?000002=0Count from 0 to 31 in binary.COUNT THE DOTSLetters are represented in computers in binary also!blank0000002A1000012B2000102C3000112.Z26110102COUNT THE DOTS010010001100101000000001110010001010000101101ICE_CREAMblank0A1B2C3D4E5
4、F6G7H8I9J10K11L12M13N14O15P16Q17R18S19T20U21V22W23X24Y25Z26COUNT THE DOTSHAPPY BIRTHDAY,CARLOS SANTANA!Born July 20,1947COLOR BY NUMBERSComputer screens are divided up into a grid of small dots called pixels(picture elements).In a black and white picture,each pixel is either black or white.Computers
5、 store drawings,photographs and other pictures using only numbers.The following activity demonstrates how a computer image can be stored efficiently.COLOR BY NUMBERSThe letter a has been magnified to show the pixels.When a computer stores a picture,all that it needs to store is which dots are black
6、and which are white.1,34,11,40,1,3,10,1,3,11,4COLOR BY NUMBERS6,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,5COLOR BY NUMBERSThis technique is called run-length encoding.Fax transmissionCompression of images Co
7、lor encodingUse two numbers per runFirst number is how many pixels as beforeSecond number is what color(1=red,2=green,.)CARD FLIP MAGICWhen data is stored on a disk or transmitted from one computer to another,we usually assume that it doesnt get changed in the process.But sometimes things go wrong a
8、nd the data is changed accidentally.This activity uses a magic trick to show how to detect when data has been corrupted,and to correct it.CARD FLIP MAGICCARD FLIP MAGICThis exercise illustrates even parity.When computer data is transmitted to another computer,extra bits are added so that the number
9、of 1s is even.The receiving computer can detect if something gets messed up during the transmission and can correct it if there is one error.What happens if there are two errors?CARD FLIP MAGICHere is an example of parity in real life:1 X 10=104 X 9=362 X 8=165 X 7=359 X 6=543 X 5=157 X 4=286 X 3=18
10、7 X 2=14 226/11=20 remainder 6 Checksum Digit=11-6=5 CARD FLIP MAGICMore parity:YOU CAN SAY THAT AGAIN!Since computers only have a limited amount of space to hold information,they need to represent information as efficiently as possible.This is called compression.By coding data before it is stored,a
11、nd decoding it when it is retrieved,the computer can store more data,or send it faster through the Internet.This exercise illustrates how a childrens rhyme can be compressed.YOU CAN SAY THAT AGAIN!PITTER PATTERPITTER PATTERLISTEN TO THE RAINPITTER PATTERPITTER PATTERON THE WINDOW PANEYOU CAN SAY THA
12、T AGAIN!PITTER PATTERPITTER PATTERLISTEN TO THE RAINPITTER PATTERPITTER PATTERON THE WINDOW PANEBEFORE:78 lettersAFTER:29 lettersYOU CAN SAY THAT AGAIN!The arrows and boxes are presented with 2 numbers.PITTER PA(7,4)7:count back 7 positions4:copy 4 letters/spacesSometimes boxes point back to a box w
13、ith a blank inside.BANYOU CAN SAY THAT AGAIN!The storage capacity of computers is growing at an unbelievable rate.In the last 25 years,the amount of storage provided on a typical computer has grown about a million fold.We can compress the data so that it takes up less space.This exercise uses Ziv-Le
14、mpel coding,or LZ coding,invented by two Israeli professors in the 1970s.ZIP files,GIF imagesMARCHING ORDERSComputers are usually programmed using a language,which is a limited vocabulary of instructions that can be obeyed.One of the most frustrating things about programming is that computers always
15、 obey the instructions to the letter,even if they produce a crazy result.This activity gives kids some experience with this aspect of programming.MARCHING ORDERSMARCHING ORDERSBEAT THE CLOCKThis activity illustrates structures used in parallel sorting networks.Kids sort data by walking through a sor
16、ting network laid out on the floor.The network simulates how a parallel network would sort data.Kids find out that data can be sorted a lot faster in parallel!BEAT THE CLOCKBEAT THE CLOCKVIDEO csunplugged.org Search for“computer science unplugged”TWENTY GUESSESHow much information is there in a 1000
17、-page book?Is there more information in a 1000-page telephone book,or in Tolkiens Lord of the Rings?If we can measure this,we can estimate how much space is needed to store the information.This activity introduces a way of measuring information content.TWENTY GUESSESCan you read the following senten
18、ce?Ths sntnce hs th vwls mssng.You probably can,because there is not much information in the vowels.TWENTY GUESSESI am thinking of a number between1 and 100.I will start you off with 20 pieces of candy.You may only ask questions that have a yes or no answer.For each incorrect guess,you will lose one
19、 piece of candy.Once you guess correctly,you can keep whatever candy remains.42TWENTY GUESSESTo pick a number between 0 and 100,you only need 7 guesses.Always shoot for the middle number of the range and eliminate half the possibilities!This concept is called binary search.If the number was between
20、0 and 1000,you would only need 3 additional guesses.You can guess a number between 0 and 1 million in only 20 guesses!BATTLESHIPSComputers are often required to find information in large collections of data.Computer scientists study quick and efficient ways of doing this.This activity demonstrates t
21、hree different search methods so children can compare them.BATTLESHIPSBattleships are lined up at sea.Each battleship has a number that is hidden.How many guesses does it take for you to find a specific battleship?The number of guesses is the childs score.The lowest score wins.BATTLESHIPSGAME 1:Ship
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 不插电 计算机科学 课件 复习 进程
限制150内