Lec2-Inside the Computers Fall 2024-25
How data are represented in Computers?
Digital Data Representation
Representing Text, Numbers, Graphics, Audio, and Video Data
Inside the System Unit
Basic Computer Hardware components
CPU & GPU Processors
Cache Memory and Bus Bandwidth
Main & Secondary Memory
Hard Drives and Optical Discs
Flash Memory & Magnetic Tape
Future Trends
Data and programs must be suitably represented to be understood by a computer.
Coding systems: Represent data and programs in a computable format.
Computers consist of switches with two states: ON (1) and OFF (0).
Bit: Smallest data unit recognized by a binary computer (1 or 0).
Byte: Consists of 8 bits; used to express size of files.
Kilobyte (KB) = 210 bytes (1024 bytes)
Megabyte (MB) = 220 bytes (1024 KB)
Gigabyte (GB) = 230 bytes (1024 MB)
Terabyte (TB) = 240 bytes (1024 GB)
Larger units: Petabyte (PB), Exabyte (EB), Zettabyte (ZB), Yottabyte (YB).
Each character receives a unique bit pattern.
ASCII: 7-bit standard for most English text.
Extended ASCII: 8-bit variations for major language groups.
Unicode: Universal standard using 32 bits per character.
Numbering System: Method for representing numbers.
Binary notation: Uses bits for base two representation.
Binary: Base 2.
Decimal: Base 10.
Use digits 0-9 in a positional system.
Weight formula: Weight = Base^Position.
Uses digits 0 and 1.
Positional representation includes weights based on powers of 2.
Bitmapped images use various bit depths (4, 8, 24 bits); more bits = more colors.
GIF: 8 bits per pixel (up to 256 colors).
JPEG: 24 bits per pixel (better color representation).
PNG: Supports various bit-depths.
Audio data needs digital format (e.g., MP3 for compression).
Video is a series of frames and can be compressed for efficiency.
CPU: Performs calculations and comparisons.
Power Supply: Converts electrical power into a usable form.
Fan: Cools the CPU.
Hard Drive: Main storage for data and programs.
Motherboard: Connects all components.
Memory Slots: Support various storage formats.
Computer chip: Silicon piece with integrated circuits.
Motherboard: Main circuit board.
CPU: Main processing unit; microprocessor.
Dual-core/Quad-core CPU: Multiple processors on a single chip.
Graphics Processing Unit (GPU): Specialized for image creation.
Used in PCs, embedded systems, and gaming consoles.
Cache Memory: Fast memory close to the CPU (Levels 1, 2, 3).
Bus: Path for data transfer.
Bus width and speed affect bandwidth and throughput.
RAM (Random Access Memory): Main memory for active processes.
Volatile, loses data when powered off.
Organized as memory modules on the motherboard.
Can be internal, external, or remote.
Nonvolatile for permanent storage.
Storage technologies: magnetic, optical, and electronic.
Store majority of programs/data; can be external/internal.
Types:
Magnetic Hard Drives: Use hard disks to represent binary data.
Solid-State Drives (SSDs): Use flash memory, no moving parts.
Data stored via laser in pits and lands.
Types: CD, DVD, BD (with varying capacities).
Can be read-only or rewritable (burning data onto the disc).
Chip-based storage, no moving parts; more durable, quieter, and energy-efficient.
Common forms include flash cards, USB drives, SSDs.
Used for backups and archiving; sequential access only.
How data are represented in Computers?
Digital Data Representation
Representing Text, Numbers, Graphics, Audio, and Video Data
Inside the System Unit
Basic Computer Hardware components
CPU & GPU Processors
Cache Memory and Bus Bandwidth
Main & Secondary Memory
Hard Drives and Optical Discs
Flash Memory & Magnetic Tape
Future Trends
Data and programs must be suitably represented to be understood by a computer.
Coding systems: Represent data and programs in a computable format.
Computers consist of switches with two states: ON (1) and OFF (0).
Bit: Smallest data unit recognized by a binary computer (1 or 0).
Byte: Consists of 8 bits; used to express size of files.
Kilobyte (KB) = 210 bytes (1024 bytes)
Megabyte (MB) = 220 bytes (1024 KB)
Gigabyte (GB) = 230 bytes (1024 MB)
Terabyte (TB) = 240 bytes (1024 GB)
Larger units: Petabyte (PB), Exabyte (EB), Zettabyte (ZB), Yottabyte (YB).
Each character receives a unique bit pattern.
ASCII: 7-bit standard for most English text.
Extended ASCII: 8-bit variations for major language groups.
Unicode: Universal standard using 32 bits per character.
Numbering System: Method for representing numbers.
Binary notation: Uses bits for base two representation.
Binary: Base 2.
Decimal: Base 10.
Use digits 0-9 in a positional system.
Weight formula: Weight = Base^Position.
Uses digits 0 and 1.
Positional representation includes weights based on powers of 2.
Bitmapped images use various bit depths (4, 8, 24 bits); more bits = more colors.
GIF: 8 bits per pixel (up to 256 colors).
JPEG: 24 bits per pixel (better color representation).
PNG: Supports various bit-depths.
Audio data needs digital format (e.g., MP3 for compression).
Video is a series of frames and can be compressed for efficiency.
CPU: Performs calculations and comparisons.
Power Supply: Converts electrical power into a usable form.
Fan: Cools the CPU.
Hard Drive: Main storage for data and programs.
Motherboard: Connects all components.
Memory Slots: Support various storage formats.
Computer chip: Silicon piece with integrated circuits.
Motherboard: Main circuit board.
CPU: Main processing unit; microprocessor.
Dual-core/Quad-core CPU: Multiple processors on a single chip.
Graphics Processing Unit (GPU): Specialized for image creation.
Used in PCs, embedded systems, and gaming consoles.
Cache Memory: Fast memory close to the CPU (Levels 1, 2, 3).
Bus: Path for data transfer.
Bus width and speed affect bandwidth and throughput.
RAM (Random Access Memory): Main memory for active processes.
Volatile, loses data when powered off.
Organized as memory modules on the motherboard.
Can be internal, external, or remote.
Nonvolatile for permanent storage.
Storage technologies: magnetic, optical, and electronic.
Store majority of programs/data; can be external/internal.
Types:
Magnetic Hard Drives: Use hard disks to represent binary data.
Solid-State Drives (SSDs): Use flash memory, no moving parts.
Data stored via laser in pits and lands.
Types: CD, DVD, BD (with varying capacities).
Can be read-only or rewritable (burning data onto the disc).
Chip-based storage, no moving parts; more durable, quieter, and energy-efficient.
Common forms include flash cards, USB drives, SSDs.
Used for backups and archiving; sequential access only.