AP CSP Day 62: Lossy vs. Lossless Compression Trade-offs | Cycle 3

Key Concepts

Lossless compression reduces file size without losing any information, allowing perfect reconstruction. Lossy compression permanently discards some data to achieve smaller sizes, and the original cannot be fully recovered. Choosing the wrong method can result in corrupted data or unnecessarily large files.

Study the Concept First (Optional) Click to expand ▼

Compression Methods and When Each Applies

Lossless Compression

Algorithms like ZIP, PNG, and FLAC find patterns and redundancies to shrink the file. The original data is perfectly recoverable. This is essential when every bit matters: source code, medical records, legal documents.

Lossy Compression

Algorithms like JPEG, MP3, and H.264 permanently remove information deemed less important to human perception. A decompressed JPEG is not identical to the original. Each re-compression degrades quality further.

Common Trap: Students assume lossy compression is always bad. In practice, lossy is often preferred for media because the quality loss is imperceptible and the size reduction is dramatic.
Exam Tip: Ask: “If I decompress, do I need the EXACT original back?” If yes, lossless. If approximate is fine, lossy is acceptable.
Big Idea 2: Data
Cycle 3 • Day 62 Practice • Hard Difficulty
Focus: Lossy vs. Lossless Compression Trade-offs

Practice Question

A hospital stores patient medical images used by radiologists to diagnose conditions. The hospital wants to reduce storage costs. A technician proposes compressing all images using lossy compression.

Which of the following is the MOST accurate concern about this proposal?

Why This Answer?

Lossy compression permanently discards data. For medical images used in diagnosis, even small details could be clinically significant. Removing this data could lead to missed diagnoses.

Why Not the Others?

A) Lossy compression can be applied to images (JPEG is the most common example). B) Compression reduces file size, not increases it. D) Processing power is not the primary concern; the irreversible data loss is the real issue.

Common Mistake
Watch Out!

Students focus on technical feasibility rather than the consequences of data loss. The question asks about concerns, not whether lossy compression is technically possible.

AP Exam Tip

Ask: “If I decompress, do I need the EXACT original back?” If yes, lossless. If approximate is fine, lossy is acceptable.

Keep Practicing!

Consistent daily practice is the key to AP CSP success.

AP CSP Resources Get 1-on-1 Help
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.