
1. Types of Data Representation
A. Number Systems
1. Binary (Base 2)
Uses only two digits: 0 and 1
Fundamental for computers, as they operate using electrical signals (ON = 1, OFF = 0)
Example: (1011)₂ = (11)₁₀ in decimal
2. Decimal (Base 10)
Commonly used by humans
Uses ten digits: 0 to 9
Example: (125)₁₀ = (1111101)₂ in binary
3. Octal (Base 8)
Uses eight digits: 0 to 7
Compact representation of binary
Example: (27)₈ = (10111)₂
4. Hexadecimal (Base 16)
Uses 0-9 and A-F (A=10, B=11, ..., F=15)
Frequently used in memory addresses and color codes
Example: (2F)₁₆ = (00101111)₂
B. Text Representation
1. ASCII (American Standard Code for Information Interchange)
Uses 7 or 8 bits per character
Example: A = 65 (01000001 in binary)
2. Unicode
Supports multiple languages and symbols
Can use 8, 16, or 32 bits per character
Example: 😊 (Unicode U+1F60A)
3. EBCDIC (Extended Binary Coded Decimal Interchange Code)
Used mainly in IBM mainframes
Example: A = 193 in EBCDIC
C. Image Representation
1. Bitmap (Raster Images)
Each pixel is stored with a color value
Common formats: BMP, PNG, JPEG
Example: 1920×1080 image = 2,073,600 pixels
2. Vector Graphics
Uses mathematical formulas to define shapes
Scalable without losing quality
Formats: SVG, EPS
D. Audio Representation
1. Analog to Digital Conversion (ADC)
Converts continuous sound waves into digital values
Example: Microphones record sound as voltage changes
2. Sampling Rate
Determines sound quality (higher rate = better quality)
Example: 44.1 kHz = 44,100 samples per second (CD quality)
3. Common Audio Formats
Lossless: FLAC, WAV (high quality, large size)
Lossy: MP3, AAC (compressed, lower quality)
E. Video Representation
1. Frame Rate
Number of images per second (fps)
Example: 24 fps (cinematic), 60 fps (smooth motion)
2. Compression
Lossless (e.g., ProRes) retains quality
Lossy (e.g., MP4, AVI) reduces file size
2. Data Representation in Memory
A. Bit and Byte
Bit (Binary Digit): Smallest data unit (0 or 1)
Byte: 8 bits (stores one character)
B. Data Types
Integer: Whole numbers (e.g., 100, -50)
Float: Decimal numbers (e.g., 3.14)
Character: Single letter or symbol (e.g., ‘A’)
Boolean: True/False (1 or 0)
C. Memory Units
Unit - Size
Bit - 1 binary digit
Byte - 8 bits
Kilobyte (KB) - 1024 bytes
Megabyte (MB) - 1024 KB
Gigabyte (GB) - 1024 MB
Terabyte (TB) - 1024 GB
3. Importance of Data Representation
Efficient storage and processing
Enables data compression for faster transmission
Ensures compatibility across different systems
Helps in encryption and security
Post Comment