Representing Nonnumeric Data

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
©Brooks/Cole, 2003 Chapter 2 Data Representation.
28-Jun-15 Number Systems. 2 Bits and bytes A bit is a single two-valued quantity: yes or no, true or false, on or off, high or low, good or bad One bit.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
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,
Lecture 5.
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
Working with text ASCII and UNICODE.   
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Representing Nonnumeric Data Everything is really a number.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
What is a computer? A computer is a device that:
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Quiz # 1 Chapters 1,2, & 3.
Chapter 2 Data Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data Representation, Number Systems and Base Conversions
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.
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.
1 Problem Solving using Computers “Data....Representation, and Storage.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
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.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
1 Non-Numeric Data Representation V1.0 (22/10/2005)
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
DATA REPRESENTATION - TEXT
Binary Representation in Text
Binary Representation in Text
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:
CS 115: Computing for The Socio-Techno Web
CSCI 198: Lecture 4: Data Representation
CSCI 161: Lecture 4: Data Representation
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.
TOPICS Information Representation Characters and Images
Ch2: Data Representation
String Encodings and Penny Math
Presenting information as bit patterns
COMS 161 Introduction to Computing
Chapter 2 Data Representation.
COMS 161 Introduction to Computing
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Digital Encodings.
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?

Text To store English we need Letters (upper case & lower) Punctuation Special marks (space, newline, etc…)

Text To store English we need Assign each a number Letters (upper case & lower) Punctuation Special marks (space, newline, etc…) Assign each a number ASCII encoding : most popular such scheme

ASCII table Partial table  Full Table: http://www.ascii-code.com/ DEC OCT HEX BIN Symbol 47 057 2F 00101111 / 48 060 30 00110000 49 061 31 00110001 1 50 062 32 00110010 2 51 063 33 00110011 3 52 064 34 00110100 4 53 065 35 00110101 5 54 066 36 00110110 6 55 067 37 00110111 7 56 070 38 00111000 8 57 071 39 00111001 9 58 072 3A 00111010 : 59 073 3B 00111011 ; 60 074 3C 00111100 < 61 075 3D 00111101 = 62 076 3E 00111110 > 63 077 3F 00111111 ? 64 100 40 01000000 @ 65 101 41 01000001 A 66 102 42 01000010 B 67 103 43 01000011 C 68 104 44 01000100 D 69 105 45 01000101 E 70 106 46 01000110 F 71 107 01000111 G 72 110 01001000 H 73 111 01001001 I Partial table  Full Table: http://www.ascii-code.com/ A = 65 = 01000001 My name: A n d r e w 01000001 01101110 01100100 01110010 01100101 01110111

Text Why 0-127? Need more characters? 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 http://unicode-table.com/en/#devanagari

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. 2000 x 1000 = 2,000,000 pixels Bits per Pixel 24 8 1 Number Colors 16,777,216 256 (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