DRO Lecture 1-1
DRO Lecture 1-1
Representation
and Organization
5/28/2019
HNDIT1104:
Data Representation and Organization
Grade…..
Lecture 1:
5/28/2019
1.1 Data and Information
• Data :
– collected row facts
– Cannot be used for decision making
• Information:
– Processed data
– Can be used to decision making
Data in Computing System
• Usually the computing systems are complex devices,
dealing with a vast array of information categories
• The computing systems store, present, and help us
modify:
– Text
– Audio
– Images and graphics
– Video
Digital vs. Analog
• The information can be represented in one or two ways: analog or
digital.
– Analog data is a continuous representation, analogous to the actual
information it represents.
• In example, a mercury thermometer is an analog device. The mercury rises in a
continuous flow in the tube in direct proportion to the temperature.
– Digital data is a discrete representation, breaking the information up into
separate (discrete) elements.
• Computers can’t work with analog information, so a need do digitize the analog
information arise.
• This is done by breaking the analog information into pieces and representing
those pieces using binary digits
Analog and Digital Signal
ON OFF
Represent Data in Computer
• Early computer design was decimal
– Mark I and ENIAC
• John von Neumann proposed binary data
processing (1945)
– Simplified computer design
– Used for both instructions and data
• Natural relationship between
On Off
on/off switches and
True False
calculation using Boolean logic Yes No
1 0
How do computers represent data?
0 0 0 0 0
How do we store them in a computer?
• Computer programs and data are often
represented (outside the computer) using
octal and hexadecimal number systems
because they are a short hand way of
representing binary numbers.
Basic Data Type Available in Computer
• Numeric Data
– Numbers (Integer, real)
• Non-numeric Data
– Letters, Symbols
• Alphanumeric :
• Image data
• Audio data
• Video data
Data Units use in a Computer
15
2.1 Introduction
16
Bit: It is the smallest unit of information used in a computer system. It
can either have the value 0 or 1. Derived from the words Binary ditIT.
Nibble: It is a combination of 4 bits.
Byte: It is a combination of 8 bits.
Word: It is a combination of 16 bits.
Double word: It is a combination of 32 bits.
Kilobyte (KB): It is used to represent the 1024 bytes of information.
Megabyte (MB): It is used to represent the 1024 KBs of information.
Gigabyte (GB): It is used to represent the 1024 MBs of information.
Number system
• Positional Number Systems / Weighted
Number System
• Non positional number system / non
Weighted Number System
The Non-weighted/ Non Positional
Numbers
• The non-weighted numbers are not positional
weighted .
• That are not assigned with any weight to each digit
position.
• position independent
• Ex-
– Roman number system
Roman numerals symbols with different values: I (1), V (5), X (10),
C (50), M (100)
Examples: I, II, III, IV, VI, VI, VII, VIII, IX
– Egyptian number system
Weighted Numbers/ Positional
Number
• The weighted numbers are those that obey the position
weighting principle
• which states that the position of each number represent a
specific weight.
• Numeric values are represented by a sequence of digit symbols.
Each digit position has a value called a weight associated with it
• Ex:
– decimal numbers
– Binary numbers
– Octal numbers
– Hexadecimal numbers
Binary (base 2): weights in powers-of-2.
– Binary digits (bits): 0,1.
N = 26316 => n = 2;
a2 = 2; a1 = 6; a0 = 3
3. (2A.8)16
4. (341.24)5
(1101.101)2
= 123 + 122 + 120 + 12-1 + 12-3
= 8 + 4 + 1 + 0.5 + 0.125 = (13.625)10
(572.6)8
= 582 + 781 + 280 + 68-1
= 320 + 56 + 2 + 0.75 = (378.75)10
(2A.8)16
= 2161 + 10160 + 816-1
= 32 + 10 + 0.5 = (42.5)10
(341.24)5
= 352 + 451 + 150 + 25-1 + 45-2
= 75 + 20 + 1 + 0.4 + 0.16 = (96.56)10
Examples
1. 953.78
2. 1011.112
3. A2F 16
953.78 = 9 x 102 + 5 x 101 + 3 x 100 + 7 x 10-1 + 8 x 10-2
= 900 + 50 + 3 + .7 + .08 = 953.78