Chapter - Three: Basics of Information, Data, Data Processing and Data Representation
Chapter - Three: Basics of Information, Data, Data Processing and Data Representation
BASICS OF INFORMATION,
DATA,
DATA PROCESSING AND DATA REPRESENTATION
Data vs. information
Data can be defined as any type of representation of an object
or an event.
Representation could be in the form of, number, text
symbols, and voice, static or dynamic image and so on.
Information can be defined as a processed or summarized
data for a particular analysis or decision making.
Digital computers store data using two state components.
With two such states, we can represent exactly two different
values.
These two values correspond to the two digits used by the
binary number system or base 2 that requires just two
symbols, _ 0_ 1, but the pattern remains the same as for
decimal.
The digits are termed binary digits. bits.
Data Processing
o Data processing is the process of converting data into
information
o We have three steps in data processing
Input Processing Output
o Input refers to anything that is given to a computer for
processing.
o It may take various forms such as numbers for calculation, text
to be printed, sound etc.
o The quality of input data collected is determinate factor for the
quality of output.
o In order to get quality outputs we must have quality data for
input.
o If the input data is wrong the result we get or output data is
wrong (GIGO Rule /GarbageIn-GarbageOut)
cont.…
Processing is the process of data transformation in to
useful information.
During the operation useful actions like arithmetic
operation, sorting, classifying and summarization
may made on the row data.
The computer has to be told what to do with the
input.
Output refers generating the processed data
( information) to the user using different devices
Additional data processing operations:
Dissemination is dispatching the information to the
appropriate user through communication medias.
Storing is accumulating the processed data for later
use or processing
Extended data processing cycle
Data processing
Addition Disseminating
Subtraction
Division
Input multiplication
Row data Out put
sorting
Processed data (information
expertise knowledge
Classification etc...
Storing
Storing Storing
For later processing For later use
Source of Information
8/13/21 18
Cont.…
The binary number system, which has only two digits
(0&1), is most suitable for expressing the two possible
states.
The second reason is that the computer circuits only
have to handle two binary digits rather than ten decimal
digits.
This greatly simplifies the internal circuit design of
computers, resulting in less expensive & more reliable
circuits.
Finally, the binary system is used because everything that
can be done in decimal number system (addition,
subtraction, division & multiplication) can also be done
in binary number system.
Numbering system
The technique to represent and work with numbers is
called number system.
Every computer stores numbers, letters, & other special
characters in a coded form.
Before going to the details of these codes, it is essential to
have a basic understanding of the number system.
So the goal of this topic is to familiarize you with the
basic fundamentals of number system.
8/13/21 20
POSITIONAL VERSUS NON POSITIONAL NUMBER
SYSTEM
In Non positional number system Each symbol
represents the same value regardless of its position in a
number and to find the value of a number one has to
count the number of the symbols present in the number,
we have symbols such as I for 1, II for 2, III for 3 and
etc.
Positional Number System
In positional number system symbols represent different
values depending upon the position they occupy in a
number.
Cont.…
8/13/21 23
Cont.…
The weight of the nth digit of the number from the left of the
decimal point is equal to:
nth digit * 10n-1
The weight of the nth digit of the number from the right of the
decimal point is equal to:
nth digit * 10-n
8/13/21 24
II. Binary number System
The base or radix is 2
Has two symbols(0&1)
The largest single digit is 1(one less than the base)
Each position in binary number represents a power of the
base (2).
The right most position is the units (20) position, the
second is the 2`s(21) position, & proceeding in this way we
have 4`s(22) position, 8`s(23) position, 16`s (24) position, &
so on.
8/13/21 25
Cont.…
8/13/21 26
IV. Hexadecimal Number System
The base is 16
Has 16 single-character digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F(The
letters A to F represent numbers 10 to 15)
Each position in the hexadecimal system represents a power of the
base(16).
8/13/21 27
Comparative Representation of Number Systems
Hexa decimal
Decimal System Binary System Octal System
System
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
: : : :
Operation on binary number system is also possible.
Binary Decimal
0 0
1 1
10 2
11 3
100 4
101 5
110 6
111 7
1000 8
1001 9 etc.
Number System Equivalence
Converting Decimal-Binary
oDivide by 2 the number and its quotient, until the quotient
becomes 0.
oConcatenate the remainder from the last one to the 1st
E.g. 1 Convert (1450)10 to ( )2
Given Quotient Reminder
1450/2 725 0
725/2 362 1
362/2 181 0
181/2 90 1
90/2 45 0
45/2 22 1
22/2 11 0
11/2 5 1
5/2 2 1
2/2 1 0
1/2 0 1
Converting Binary-Decimal
Example
Hexadecimal Number: 15(16) Calculating Binary Equivalent:
Using,
1.Sign And Magnitude Method
2.One’s Complement Method
3.Two’s Complement Method
Sign and Magnitude Method
•Left most bit of the binary number is used to represent whether the
number is positive (+) or negative (-).
•Left most is the Most Significant Bit (MSB) and is know as sign bit
in this method.
•If the sign bit is 1 the number is negative and if it is 0 the number is
positive.
•Sign bit is the MSB, with magnitude being a binary number using
the remaining bits. 0 101
Eg: +5 =
-5 = 1 101
Cont.….
-5 = 1 010
Binary Division – it is similar to decimal division. The rules for binary division
are:
1. Start from the left of the dividend
2. Perform a series of subtractions, in which the divisor is subtracted form the
dividend.
3. If subtraction is possible, put a 1 in the quotient and subtract the divisor form
the corresponding digits of dividend.
4. If subtraction is not possible (divisor greater than remainder), record a 0 in
the quotient.
5. Bring down the next digit to add to the remainder digits. Proceed as before in
a manner similar to long division.
0÷1 0
1÷ 1 1
Coding Methods
A means to convert characters into binary strings
(sequence of 0’s and/or 1’s)
A way of computer store and process data
There are various kind:
BCD (Binary Coded Decimal)
EBCDIC (Extended BCD Interchange Code)
ASCII (American Standard Code for
Information Interchange).
BCD (Binary Coded Decimal)