CHAPTER 1: INFORMATION REPRESENTATION

1.1 DATA REPRESENTATION

1.1.1 Fundamental Characteristics of Number Systems

Every number system has two fundamental characteristics:

  1. Base (Radix): The number of different digits that a system can use to represent numbers
  2. Place Value: The specific value of a digit based on its position within a number

1.1.2 Denary (Decimal) System - Base 10

1.1.3 Binary System - Base 2

Key Points:

Binary Place Values:

<TEXT>

128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
2⁷ 2⁶ 2⁵ 2⁴ 2³ 2² 2¹ 2⁰

Example - Converting Denary to Binary:

Example - Converting Binary to Denary:

1.1.4 Binary Prefixes vs Decimal Prefixes

It is crucial to understand the difference between binary prefixes (based on powers of 2) and decimal prefixes (based on powers of 10):

Denary Prefix Factor Value Binary Prefix Factor Value
kilo- (k) ×10³ 1,000 kibi- (Ki) ×2¹⁰ 1,024
mega- (M) ×10⁶ 1,000,000 mebi- (Mi) ×2²⁰ 1,048,576
giga- (G) ×10⁹ 1,000,000,000 gibi- (Gi) ×2³⁰ 1,073,741,824
tera- (T) ×10¹² 1,000,000,000,000 tebi- (Ti) ×2⁴⁰ 1,099,511,627,776

Important: Always use the correct prefix:

1.1.5 Binary Coded Decimal (BCD)

Definition: Binary representation where each individual denary digit is represented by a sequence of 4 bits (nibble).

Characteristics:

Example - Converting 429 to BCD:

<TEXT>

4 = 0100
2 = 0010
9 = 1001
Therefore, 429 in BCD = 0100 0010 1001

Practical Applications:

1.1.6 Two's Complement Representation

Two's complement is used to represent negative numbers in binary.

Converting Negative Denary to Binary (Example: -42):

Step 1: Find binary equivalent (ignoring sign)

<TEXT>

42 = 00101010 (8-bit representation)

Step 2: Convert to one's complement (flip all bits)

<TEXT>

00101010 → 11010101

Step 3: Add 1 to get two's complement

<TEXT>

11010101 + 1 = 11010110

Converting Binary Two's Complement to Denary (Example: 11010110):

Step 1: Flip all bits

<TEXT>

11010110 → 00101001

Step 2: Add 1

<TEXT>

00101001 + 1 = 00101010

Step 3: Convert to denary and apply negative sign

<TEXT>

00101010 = 42
Therefore: -42

Range in 8-bit Two's Complement:

Overflow:

1.1.7 Hexadecimal System - Base 16

Characteristics:

Converting Denary to Hexadecimal: Example: 165 to Hex

<TEXT>

165 ÷ 16 = 10 remainder 5
10 = A
Therefore: 165 = A5 (hex)

Converting Hexadecimal to Denary: Example: A5 to Denary

<TEXT>

A5 = (10 × 16) + (5 × 1) = 160 + 5 = 165

Practical Applications:

1.1.8 Character Sets and Encoding

Definition: A character set is a collection of characters that can be represented using binary codes. It typically includes upper and lower case letters, number digits, punctuation marks, and other characters.

Character Encoding Standards:

Standard Description Bits per Character Characters
ASCII American Standard Code for Information Interchange 7 bits 128
Extended ASCII Extension of ASCII 8 bits 256
Unicode Superset of ASCII and extended ASCII 16 or 32 bits 65,536+

ASCII:

Extended ASCII:

Unicode:


1.2 MULTIMEDIA - GRAPHICS AND SOUND

1.2.1 Bitmap Images

Definition: Bitmap images are created by assigning a solid colour to each pixel using bit patterns. The image is represented as a grid of pixels, where each pixel's colour is encoded using binary values.

Key Terms:

Image Resolution:

Screen Resolution:

Colour Depth:

File Size Calculation:

<TEXT>

File Size = Number of Pixels × Colour Depth

Example Calculation:

<TEXT>

Image: 1024 × 768 pixels, 24-bit colour
Number of Pixels = 1024 × 768 = 786,432
Colour Depth = 24 bits
File Size = 786,432 × 24 = 18,874,368 bits
= 18,874,368 ÷ 8 = 2,359,296 bytes
≈ 2.36 MB

Applications:

1.2.2 Vector Graphics

Definition: Made up of drawing objects (mathematically defined constructs like rectangles, lines, circles, curves).

Components:

Advantages over Bitmap:

Disadvantages:

Applications:

1.2.3 Sound Representation

Analogue vs Digital:

Analogue Digital
Continuous electrical signals Discrete electrical signals
Infinite detail Finite representation
Cannot be stored directly Can be stored in binary

Sound as Analogue Data:

Conversion Process (Analogue to Digital):

  1. Sampling: The sound wave's amplitude is measured at set time intervals
  2. Quantization: Each sample is assigned a binary value
  3. Encoding: Binary values are stored

Key Terms:


1.3 COMPRESSION

1.3.1 Need for Compression

Definition: Compression is the process of reducing file size without significant loss in quality.

Benefits:

1.3.2 Lossless Compression

Definition: A type of compression that allows original data to be perfectly reconstructed from the compressed file.

Key Feature:

Examples:

Run-Length Encoding (RLE):

Definition: A form of lossless compression used for compressing text files and bitmap images.

Mechanism:

Example: Original: AAAAAAABBBBBCCCCCC Compressed: 7A5B6C

Example - Bitmap: Original row: White White White White White Black Black Compressed: 5W2B

Applications:

1.3.3 Lossy Compression

Definition: A type of compression that irreversibly eliminates unnecessary data.

Characteristics:

Examples:

Mechanism in Sound Files (MP3):

Mechanism in Images (JPEG):

When to Use Lossy vs Lossless:

Lossless Lossy
Text documents Photography
Database files Video streaming
Program files Music (streaming)
Spreadsheets Web graphics (where size matters)


Revision #2
Created 2026-03-16 06:50:51 UTC by Samuel Lee
Updated 2026-03-17 01:14:04 UTC by Samuel Lee