Representing Nonnumeric Data Everything is really a number.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Information Representation
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Connecting with Computer Science, 2e
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Representation of Data How is data (numbers, characters) represented so that it can be used in a Computer ?
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Bits and Bytes.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Dale & Lewis Chapter 3 Data Representation
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Bits & Bytes: How Computers Represent Data
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Chapter 2 Computer Hardware
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.
Hardware Data Storage.
AS LEVEL ICT2 Processing Different Types of Information.
1 Foundations of Computer Science Chapter 2 Data Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Number Representations What all the numbers can mean.
Types of Data. Numbers Text Pictures Sound Video.
Quiz # 1 Chapters 1,2, & 3.
Data Representation, Number Systems and Base Conversions
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
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.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Data Representation.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
Processing Data. Representing Numbers  Recap on Binary Numbers  Binary digit (1 or 0) – known as a ‘bit’, short for BInary digiT – bits generally grouped.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
© 2016 AQA. Created by Teachit for AQA Character encoding and Representing images Lesson.
1 Non-Numeric Data Representation V1.0 (22/10/2005)
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Text and Images Key Revision Points.
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Unit 2.6 Data Representation Lesson 2 ‒ Characters
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Chapter 8 & 11: Representing Information Digitally
Binary Numbers and ASCII and EDCDIC
Computer Systems Nat 4/5 Data Representation Lesson 4:
Bits & Bytes How Computers Represent Data
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Data Encoding Characters.
Representing Nonnumeric Data
Ch2: Data Representation
String Encodings and Penny Math
Digital Representation
Chapter 2 Data Representation.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Learning Intention I will learn how computers store text.
Option: Data Representation
LO1 – Understand Computer Hardware
String Encodings and Penny Math
Option: Data Representation
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
ASCII and Unicode.
Year 8 Unit 2 Bitmap Graphics
Presentation transcript:

Representing Nonnumeric Data Everything is really a number

Its all 1’s and 0’s How do we represent other things? Words/Pictures/Sound? The trick is to come up with an encoding scheme…

Text To store English we need – Letters (upper case & lower) – Punctuation – Special marks (space, newline, etc…) Assigned each a number between 0 and 127 – A is 65, B is 66… – a is 97, b is 98… ASCII encoding : most popular such scheme

ASCII table DECOCTHEXBINSymbol F / A : B ; C < D = E > F ? A B C D E F G H I Partial table  Full Table: A = 65 = My name: Andrew

Text Why 0-127? – Well it seemed like enough – 127 is 2^7 – the biggest number you can write with 7 binary digits. Need more characters? – Extended ASCII – 8 bits (1 byte) – 256 characters – Unicode – universal scheme – up to 4 bytes per character

Basic Types of Graphics Two basic types of 2D graphic BitmapVector

Bitmaps Image divided into pixels – Each pixel either on (1) or off (0)

Adding gray 2 digits for each square give 4 “colors” (00, 01, 10, 11)

Adding gray 2 digits for each square give 4 “colors” (00, 01, 10, 11)

Image Size Image is 2000 pixels wide & 1000 pixels tall x 1000 = 2,000,000 pixels Bits per Pixel24881 Number Colors16,777, (color)256 (grays)2 Image Size 48,000,000 bits or ~5.7 MBytes 16,000,000 bits or ~1.9 MBytes 2,000,000 bits or ~244 KBytes

Vector Art Vector images are mathematically based – Everything described as lines and curves – Shapes are filled with solid color, gradients or patterns

Computer Sounds Two approaches to representing sound as numbers: – MIDI sequences – Samples

MIDI Musical Instrument Digital Interface – Sheet music for your computer. – Does not store actual sounds – just instructions for generating the sounds. Very compact Been around since the 60’s

Samples Sounds are just pressure waves:

Samples Simulate a wave with lots of data points – Intensities at points in time – Computer reconstructs wave from points