DATA REPRESENTATION CHAPTER 2. 2.1 DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.

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.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
©Brooks/Cole, 2003 Chapter 2 Data Representation.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems & Logic Gates Day 1
COMPUTER FUNDAMENTALS David Samuel Bhatti
©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
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 2 Data and Number Representations
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Chapter 2 Computer Hardware
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
1 Foundations of Computer Science Chapter 2 Data Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Quiz # 1 Chapters 1,2, & 3.
Chapter 2 Data Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data Representation, Number Systems and Base Conversions
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
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.
Graphics in a computers memory How a picture (i.e. a graphic) is stored in a computers memory A computer screen is made up of little dots, called PICture.
Computer Science I Storing data. Binary numbers. Classwork/homework: Catch up. Do analysis of image types.
1 Problem Solving using Computers “Data....Representation, and Storage.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Characters and Strings
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  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.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Encoding J. Holvikivi 2012.
1.4 Representation of data in computer systems Character.
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 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
Binary and Decimal Numbers
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Chapter 8 & 11: Representing Information Digitally
Chapter 3 - Binary Numbering System
Binary Numbers and ASCII and EDCDIC
Computer Systems Nat 4/5 Data Representation Lesson 4:
3.1 Denary, Binary and Hexadecimal Number Systems
Chapter 3 Data Storage.
Bits & Bytes How Computers Represent Data
Phnom Penh International University (PPIU)
TOPICS Information Representation Characters and Images
Representing Nonnumeric Data
Ch2: Data 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
Computer Systems Nat 4/5 Data Representation Lesson 4:
Option: Data Representation
Chapter 3 - Binary Numbering System
Presentation transcript:

DATA REPRESENTATION CHAPTER 2

2.1 DATA TYPES

Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information that contains numbers, text, images, audio and video.

If there’re different types of data.. Do we’ve different types of computers for each data type So.. Ex. Is there a computer to process only numbers The Answer is: NO

2.2 DATA INSIDE THE COMPUTER

DATA Text Images Videos Audio COMPUTER Bit The smallest unit of data that can be stored in a computer. it is either 0 or 1 1 = ON 0 = OFF

BIT PATTERN All data types are transformed into a uniform representation when they are stored in a computer and transformed back to their original form when retrieved. This universal representation is called a bit pattern A Bit pattern made of 16 bits

How does a computer memory know what type of data a stored bit pattern represents The Answer is: It Doesn’t It’s the responsibility of input/output devices or programs

Data Coding & Decoding

BYTE Bit Pattern of length 8 = BYTE Bytes used to measure the size of memory or other storage.

2.3 REPRESENTING DATA

Represent each symbol with bit pattern TEXT

How many bit patterns we need to represent the ENGLISH letters The Answer is: 52 bit patterns 26- Uppercase Letters 26- Lowercase Letters

TEXT If we’ve an Imaginary language that uses ONLY 4 symbols. What is the bit pattern length we need to represent this language The Answer is: bit pattern of length 2

TEXT Bit pattern length# of Symbols ,536

TEXT Different sets of bit patterns have been designed to represent text symbols Each set is called a CODE

ASCII: The American standard code for information interchange. use 7 bit for each symbol Extended ASCII To make the size of each pattern 1 byte ( 8 bits) EBCDIC : Extended binary coded decimal interchange code. Only IBM main frames. Uses 8 bits pattern Unicode uses 16 bits. To represent more symbols for other languages not just English ISO International Organization for Standardization Has designed a code using 32bit pattern Examples of CODES

Representing of the word “BYTE” in ASCII code

Numbers are representing using the binary system before being stored in the computer memory. as described in Chapter 3. NUMBERS

Image representation methods Vector Bitmap IMAGES Image divided into a matrix of PIXELS ( picture elements ) where each pixel is small dot An image is decomposed into a combination of CURVES and LINES.

Bitmap IMAGES Example of representing a black & white image using bitmap method

Bitmap IMAGES Representation of color pixels using bitmap method (8 bit pattern) BGR RED  GREEN  BLUE  WHITE 

Vector IMAGES An image is decomposed into a combination of curves and lines. Each line or curve represented by a mathematical formula. Ex. Representing a LINE by the coordinates of it’s end points

IMAGES Which one is better.. Bitmap method OR Vector method

VIDEOS Is a representation of images (called FRAMES) in time. A Movie is a series of frames shown one after another to create the illusion of motion

If you want to manipulate bit patterns. Is it easy for you to write & remember a long stream of 0's &1's The Answer is: NO That’s why we use Hexadecimal OR Octal notations

2.4 HEXADECIMAL NOTATION

HEXADEC = 16 IN Greek So.. There are 16 symbols: HEXADECIMAL NOTATION FEDCBA A 4- bit pattern can be represented by a hexadecimal digit, and vice versa.

Hexadecimal digit Bit Pattern A1010 B1011 C1100 D1101 E1110 F1111 Hexadecimal digits HEXADECIMAL NOTATION Hexadecimal digit Bit Pattern

HEXADECIMAL NOTATION FCE = xFCE4 “x” to show that the representation is in Hexadecimal

Example1: Show the hexadecimal equivalent of the bit pattern HEXADECIMAL NOTATION

Example2: What is the bit pattern for x24C? HEXADECIMAL NOTATION

2.5 OCTAL NOTATION

OCT= 8 IN Greek So.. There are 8 symbols: OCTAL NOTATION A 3- bit pattern can be represented by an OCTAL digit, and vice versa.

OCTAL digits OCTAL NOTATION Hexadecimal digit Bit Pattern

OCTAL NOTATION “o” & “0” to show that the representation is in Octal 74 o =

Example1: Show the octal equivalent of the bit pattern OCTAL NOTATION

Example2: What is the bit pattern for 24 8 ? OCTAL NOTATION