Академический Документы
Профессиональный Документы
Культура Документы
Data Representation
Topics to be discussed
Data types
Number bases
Units of data storage
Media types
OBJECTIVES
By the end of the lesson, students should be able to:
INTRODUCTION
Data Representation refers to the methods used internally
to represent information stored in a computer. Computers
store lots of different types of information:
Number
Text
Graphics of many varieties (video, animation)
Sound
Various data representation methods are used by the
computer to store ALL types of information internally in the
same format: a sequence of 0s and 1s.
INTRODUCTION
Computers use numeric codes to represent all the
information they store.
Some codes are used for numbers, others for text, and
still others for sound and graphics.
DATA TYPES
Data type is an indicator of the way in which data should
be represented on disk or in RAM.
Three common data types are integers, real numbers and
strings.
DATA TYPES
Strings are the data types used to store character,
letters, texts and sentences.
NUMBER BASES
A value of each digit in a number can be determined
using: The position of the digit in the number and the base
of the number system (where base is defined as the total
number of digits available in the number system).
DECIMAL NUMBER
SYSTEM
The number system that we use in our day-to-day life is
the decimal number system. Decimal number system
has base 10 as it uses 10 digits from 0 to 9.Each
position represents a specific power of the base (10).
DECIMAL NUMBER
SYSTEM
And
its value can be written as
(1 1000) + (2 100) + (3 10) + (4 1)
1 103 + 2 102 + 3 101 + 4 100
1000
+ 200
+ 30 + 4
1234
DECIMAL NUMBER
SYSTEM
As an ICT student, you should understand the following
number systems which are frequently used in
computers:
BINARY NUMBER
SYSTEM
Characteristics
Uses two digits, 0 and 1
BINARY NUMBER
SYSTEM
Example
Binary Number: 101012
Calculating Decimal Equivalent:
BINARY NUMBER
SYSTEM
Example
Step
Binary Number
Decimal Number
Step 1
101012
( (1
21) + (1
Step 2
101012
(16 + 0 + 4 + 0 + 1)10
Step 3
101012
2110
24) + (0
2 0) )
23) + (1
10
22) + (0
Octal
Decimal Number
Step 1
Number
125708
(1
Step 2
125708
80)
Step 3
125708
84) + (2
549610
83) + (5
82) + (7
81) + (0
HEXADECIMAL
NUMBER SYSTEM
Characteristics:
Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9 etc., A,
B, C, D, E, F.
Letters represents numbers starting from 10.
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
Also called base 16 number system
Each position in a hexadecimal number represents a
power of the base (16). Example 160, 161, 162
HEXADECIMAL
NUMBER SYSTEM
Example:
Hexadecimal Number: 19FDE16
Calculating Decimal Equivalent:
HEXADECIMAL
NUMBER SYSTEM
Step
Hexadecimal
Decimal Number
Number
Step
19FDE16
19FDE16
Step 2 19FDE
16
Step 3
19FDE16
Step 4
160)10
(65536 + 36864 + 3840 + 208 + 14)10
10646210
NUMBER BASES
There are many methods which can be used to convert
numbers from one base to another. Well demonstrate
here the following:
Result
14
7
Operation
Remainder
Step 1
29 / 2
Step 2
14 / 2
Step 3
7/2
Step 4
3/2
Step 5
1/ 2
1
0
3
1
1
1
1
Binary
1
1
2
2
3
3
Number
111012
111012
111012
111012
111012
111012
Decimal Number
( ( 1 24) + (1
20)10
(16 + 8 + 4 + 0 + 1)10
2910
Octal Number
Decimal Number
Step
Step 1
1
25
2588
Step
Step 2
2
25
2588
(16 + 5)10
Step 3
3
Step
25
2588
2110
10 / 2
Step 3
5/2
Step 4
2/2
Step 5
1/2
UNITS OF DATA
STORAGE
UNITS OF DATA
STORAGE
Units
Description
Kilobyte (KB)
1 KB = 1024 Bytes
Megabyte (MB)
1 MB = 1024 KB
1 GB = 1024 MB
1 TB = 1024 GB
UNITS OF DATA
STORAGE
Media (medium) is the collective communication tools
that are used to store and deliver data. Some types of
media used in presenting information or data are:
Digital videos
Digital sound
Graphics
Voice over internet protocol
Voice recognition
UNITS OF DATA
STORAGE
How does a computer store graphical data?
Graphics such as photographs and drawings are quite
different from documents that contain numbers and text.
Computers must somehow encode graphics as is 1s and 0s
to be able to store and transmit them. One method
computers use to encode graphics into 0s and 1s is
bitmap.
In this method, the computer examines the graphics, if a
portion is white, it is coded as 1. If the portion is black, it is
coded as a 0. This pattern of 0s and 1s is stored on disk to
represent the graphic.
UNITS OF DATA
STORAGE
How do computers store video data?
A video is composed of a series of frames. Each frame
is a still picture.
UNITS OF DATA
STORAGE
Digital Sound
Computers can record, store, and play back
sounds such as voices and music. Sounds or audio
data can be represented as a waveform. Waveform
audio is a digital representation of sound.
To digitally record sound, samples of the sound
waveform are collected at periodic intervals and
stored as numeric data. Music, voice, and sounds
can all be recorded as waveforms.
UNITS OF DATA
STORAGE
Voice over internet protocol (VOIP)
Voice over internet protocol (VOIP) is a technology
which digitizes the analog voice signal using an encoder.
The digitized data is transmitted as a stream of packets
from the sender to the receiver.
When the packets reach the receiver they are
reassembled and decoded using a decoder. The
decoder constructs the voice signal so that the receiver
can hear what the sender said.