Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

1 Chapter 2 The Digital World. 2 Digital Data Representation.
Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
The Binary Numbering Systems
Connecting with Computer Science, 2e
CS Unplugged Techniques for Teaching Computer Science Concepts.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Management Information Systems Lection 06 Archiving information CLARK UNIVERSITY College of Professional and Continuing Education (COPACE)
Chapter 16: Identification Numbers Lesson Plan
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by.
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Unit 30 P1 – Hardware & Software Required For Use In Digital Graphics
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Illuminating Computer Science CCIT 4-6Sep
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
CSCI-235 Micro-Computers in Science Hardware Part II.
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
CS Unplugged Demo Lester Jackson, Sr. Program Manager.
Computers Inside and Out
IT253: Computer Organization
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Error Detection and Correction
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Graphics. What is a Graphic ? A Graphic is an image or a picture e.g. Pictures can be either drawn or painted. Pixel - Stands for Picture Element.
Computational Thinking
Practical PC, 7 th Edition Chapter 4: File Basics.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Data Representation The storage of Text Numbers Graphics.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
Computer Software Operating Systems – Programs. Computer Language - Review We learnt that computers are made up of millions of tiny switches that can.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
AP CSP: Pixelation – B&W/Color Images
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
UNIT 2 – LESSON 3 Encoding B&W Images.
Vocabulary byte - The technical term for 8 bits of data.
Intermediate 2 Computing
Representing characters
CS Principles U2L3 Encoding B&W Images.
Vocabulary byte - The technical term for 8 bits of data.
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Folders out, planners out…
Packetizing Error Detection
Data Representation.
Packetizing Error Detection
Representing Images 2.6 – Data Representation.
Pixels.
Fundamentals of Data Representation
Lesson 3 & 4: Encoding Images
Packetizing Error Detection
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
How Computers Work Part 1 6 February 2008.
Lesson 3 & 4: Encoding Images
Error Detection Learning Objectives:
Presentation transcript:

Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by

Computer Science Unplugged CS Unplugged is a book of activities that illustrate computer science principles without using a computer. Activities are short and are designed to be easily integrated into classes and include exercises and lesson plans for teachers.

COUNT THE DOTS Data 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 DOTS What numerical property do you see in the dots on the cards? Display the cards so the following number of dots are showing: 66  15  21

COUNT THE DOTS When 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?  

COUNT THE DOTS What is the highest number we can represent using 6 cards?  = 63 What is the lowest number we can represent using 6 cards?  = 0 Count from 0 to 63 in binary.

COUNT THE DOTS HAPPY BIRTHDAY, FOREST WHITAKER! Born July 15, 1961

COUNT THE DOTS Letters are represented in computers in binary also! blank A B C Z

COUNT THE DOTS P O P _ T A R T S blank0 A1 B2 C3 D4 E5 F6 G7 H8 I9 J10 K11 L12 M13 N14 O15 P16 Q17 R18 S19 T20 U21 V22 W23 X24 Y25 Z26

COLOR BY NUMBERS Computer 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 store drawings, photographs and other pictures using only numbers. The following activity demonstrates how a computer image can be stored efficiently.

COLOR BY NUMBERS The 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 and which are white. 1,3 4,1 1,4 0,1,3,1 1,4

COLOR BY NUMBERS 6,5,2,3 4,2,5,2,3,1 3,1,9,1,2,1 3,1,9,1,1,1 2,1,11,1 2,1,10,2 2,1,9,1,1,1 2,1,8,1,2,1 2,1,7,1,3,1 1,1,1,1,4,2,3,1 0,1,2,1,2,2,5,1 0,1,3,2,5,2 1,3,2,5

COLOR BY NUMBERS This technique is called run-length encoding.  Fax transmission  Compression of images Color encoding  Use two numbers per run First number is how many pixels as before Second number is what color (1=red, 2=green,...)

CARD FLIP MAGIC When data is stored on a disk or transmitted from one computer to another, we usually assume that it doesn't get changed in the process. But sometimes things go wrong and 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 MAGIC

This exercise illustrates even parity. When computer data is transmitted to another computer, extra bits are added so that the number 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 MAGIC Here is an example of parity in real life: 1 X 10 = 10 4 X 9 = 36 2 X 8 = 16 5 X 7 = 35 9 X 6 = 54 3 X 5 = 15 7 X 4 = 28 6 X 3 = 18 7 X 2 = / 11 = 20 remainder 6 Checksum Digit = = 5

CARD FLIP MAGIC More 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, and decoding it when it is retrieved, the computer can store more data, or send it faster through the Internet. This exercise illustrates how a children's rhyme can be compressed.

YOU CAN SAY THAT AGAIN! PITTER PATTER LISTEN TO THE RAIN PITTER PATTER ON THE WINDOW PANE

YOU CAN SAY THAT AGAIN! PITTER PATTER LISTEN TO THE RAIN PITTER PATTER ON THE WINDOW PANE BEFORE: 78 letters AFTER: 29 letters

YOU CAN SAY THAT AGAIN! The arrows and boxes are presented with 2 numbers. PITTER PA(7,4)  7: count back 7 positions  4: copy 4 letters/spaces Sometimes boxes point back to a box with a blank inside. BAN

YOU 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-Lempel coding, or LZ coding, invented by two Israeli professors in the 1970s.  ZIP files, GIF images

MARCHING ORDERS Computers 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 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 ORDERS

A great way to illustrate why algorithms need to be precise is Tom’s famous Peanut Butter & Jelly Sandwich algorithm!

MARCHING ORDERS Input: slices of bread, jar of peanut butter, jar of jelly 1. Pick up some bread. 2. Put peanut butter on the bread. 3. Pick up some more bread. 4. Open the jar of jelly. 5. Spread the jelly on the bread. 6. Put the two parts together to make your sandwich. Output?

CS UNPLUGGED The basic edition of Computer Science Unplugged has 12 classroom exercises for you to use with your students. Each exercise has a number of extensions, activities and background information. All activities can be done without the use of computers, but they all demonstrate fundamental principles used in computers today.

CS UNPLUGGED The teacher's version of Computer Science Unplugged is available online at  The book is FREE to download and use! Additional material will be published soon to add even more activities, including video to demonstrate how to use these activities effectively in your classroom.

Computer Science Unplugged (THANK YOU!)