Save
AP Computer Science Principles
Big Idea 2: Data
2.2 Data Compression
Save
Share
Learn
Content
Leaderboard
Share
Learn
Cards (53)
Data compression
is the process of reducing the size of data to save
storage
space or reduce
Steps in lossy compression for multimedia data
1️⃣ Convert data to frequency domain
2️⃣ Discard high-frequency components
3️⃣ Encode remaining data
4️⃣ Reconstruct data partially
The need for data compression arises from the ever-increasing amount of digital data being generated and
stored
Match the benefit of data compression with its description:
Reduced Storage Space ↔️ Allows more data to be stored
Faster Transmission ↔️ Enables quicker data transfer
Efficient Bandwidth Usage ↔️ Lowers bandwidth consumption
Improved Application Performance ↔️ Speeds up loading times
Steps in transform coding for lossy compression
1️⃣ Convert data into frequency domain
2️⃣ Discard high-frequency components
3️⃣ Encode remaining components
What does a video codec like H.264 achieve?
Reduces file size
Match the lossy compression technique with its example:
Transform Coding ↔️ JPEG image compression
Predictive Coding ↔️ MP3 audio compression
Vector Quantization ↔️ H.264 video codecs
What does Vector Quantization represent a group of similar data points with?
A single code
There are two main types of data compression: lossless and
lossy
Data compression is essential for applications with bandwidth or storage
constraints
Order the benefits of data compression from a user perspective:
1️⃣ Reduced Storage Space
2️⃣ Faster Transmission
3️⃣ Efficient Bandwidth Usage
4️⃣ Improved Application Performance
Run-Length Encoding is effective for data with long repeating
sequences
.
True
Which compression type permanently loses some data during compression?
Lossy
Data compression is essential for applications with
bandwidth
or storage constraints.
True
Which lossless compression technique assigns shorter codes to more frequent symbols?
Huffman Coding
Predictive Coding
encodes only the difference between the current and predicted
values
Lossy compression techniques permanently discard some data to achieve greater file size reduction.
True
Predictive Coding in MP3 compression encodes only the difference between current and predicted values.
True
What is the primary goal of data compression?
Reduce file size
Match the compression type with its example:
Lossless ↔️ ZIP files
Lossy ↔️ JPEG images
Decreased file sizes enable faster
transmission
over networks.
True
Run-Length Encoding (RLE) replaces repeating sequences with the count of the
repetition
Lempel-Ziv Welch (LZW) builds a codebook of frequently occurring
phrases
Predictive Coding reduces file size in
MP3
audio compression but may degrade audio quality.
True
Lossless compression allows the original data to be perfectly reconstructed, while
lossy compression
permanently discards some data.
True
What are the two main categories of data compression techniques?
Lossless and lossy
What is the key difference between lossless and lossy compression in terms of data fidelity?
Data fidelity is preserved in lossless compression
The Lempel-Ziv Welch (LZW) algorithm builds a codebook of frequently occurring
phrases
Lossless compression is preferred for applications where
data fidelity
must be preserved.
True
Match the lossy compression technique with its description:
Transform Coding ↔️ Discards high-frequency components
Predictive Coding ↔️ Encodes differences between values
Vector Quantization ↔️ Represents data with a single code
Vector Quantization in video codecs like H.264 can introduce blurriness or
blockiness
The MP3 audio compression encodes only the difference between the current and predicted
values
Lossless compression provides higher compression ratios compared to lossy compression.
False
Run-Length Encoding (
RLE
) replaces repeating sequences with a count of the repetition.
True
What type of data is commonly compressed using transform coding, and what is a potential drawback?
Images; visual artifacts
In lossless compression, the original data can be perfectly reconstructed from the
compressed
data.
True
Lossless compression reduces
file size
by removing redundant data.
True
What is an example of a file format commonly associated with lossless compression?
ZIP
Run-Length Encoding (RLE)
replaces repeating sequences with the count of the
repetition
Lossy compression always results in reduced
data quality
compared to the original.
True
See all 53 cards
See similar decks
2.2 Data Compression
AP Computer Science Principles > Big Idea 2: Data
61 cards
2.2 Data Compression
AP Computer Science Principles > Big Idea 2: Data
53 cards
AP Computer Science Principles
1196 cards
Big Idea 2: Data
AP Computer Science Principles
162 cards
2.3.3 Understanding data compression:
Edexcel GCSE Computer Science > Topic 2: Data > 2.3 Data Storage and Compression
51 cards
2.1 Data and Information
AP Computer Science Principles > Big Idea 2: Data
31 cards
Exploring data compression
OCR GCSE Computer Science > 1.2 Memory and Storage > 1.2.4 Data Storage
59 cards
3.3.8 Data compression
AQA GCSE Computer Science > 3.3 Fundamentals of data representation
41 cards
2.4 Using Programs with Data
AP Computer Science Principles > Big Idea 2: Data
43 cards
2.3 Extracting Information from Data
AP Computer Science Principles > Big Idea 2: Data
35 cards
2.3 Data Storage and Compression
Edexcel GCSE Computer Science > Topic 2: Data
128 cards
2.3.1 Understanding data units:
Edexcel GCSE Computer Science > Topic 2: Data > 2.3 Data Storage and Compression
46 cards
2.3.2 Calculating file sizes:
Edexcel GCSE Computer Science > Topic 2: Data > 2.3 Data Storage and Compression
31 cards
Exploring types of compression
OCR GCSE Computer Science > 1.2 Memory and Storage > 1.2.4 Data Storage > Exploring data compression
59 cards
1.4.1 Data types
OCR A-Level Computer Science > 1.4 Data types, data structures and algorithms
94 cards
5.4 Compression
AQA A-Level Computer Science > 5.0 Fundamentals of data representation
65 cards
11.2.1 Data mining techniques
AQA A-Level Computer Science > 11.0 Big Data > 11.2 Data analytics
35 cards
3.2 Variables and Data Types
AP Computer Science Principles > Big Idea 3: Algorithms and Programming
126 cards
AP Computer Science A
1898 cards
1.4 Data types, data structures and algorithms
OCR A-Level Computer Science
193 cards
11.1 Characteristics of Big Data
AQA A-Level Computer Science > 11.0 Big Data
25 cards