Preview
IB DP Computer Science — A1 Computer fundamentals — Computer hardware and operation | SL | A1.1.8
📋 What You Will Learn
- Define compression and calculate a compression ratio
- Distinguish lossless compression from lossy compression and match each to its uses
- Describe and apply run-length encoding (RLE), including when it fails
- Construct and trace an RLE encoder in pseudocode, Java and Python
- Describe transform coding and why discarding frequency detail makes it lossy
🧳 Why This Matters Packing for a trip you can either roll your clothes tightly (everything survives intact — lossless) or leave two jumpers behind (lighter still, but something is gone forever — lossy). Every photo you send and every video you stream has been through exactly this decision.
📖 Definition — Compression Compression is the process of re-encoding data so that