Data Compression - AP Computer Science Principles
Card 1 of 30
Which compression is reversible, lossy or lossless?
Which compression is reversible, lossy or lossless?
Tap to reveal answer
Lossless compression. Only lossless compression preserves all original data.
Lossless compression. Only lossless compression preserves all original data.
← Didn't Know|Knew It →
What is lossless compression?
What is lossless compression?
Tap to reveal answer
Compression that allows original data to be perfectly reconstructed. No information is permanently lost during compression.
Compression that allows original data to be perfectly reconstructed. No information is permanently lost during compression.
← Didn't Know|Knew It →
Identify the two main types of data compression.
Identify the two main types of data compression.
Tap to reveal answer
Lossy and lossless compression. These represent the fundamental approaches to data reduction.
Lossy and lossless compression. These represent the fundamental approaches to data reduction.
← Didn't Know|Knew It →
How does reducing the bit rate affect file size?
How does reducing the bit rate affect file size?
Tap to reveal answer
It decreases the file size. Lower bit rates mean more compression and smaller files.
It decreases the file size. Lower bit rates mean more compression and smaller files.
← Didn't Know|Knew It →
What is a bit rate?
What is a bit rate?
Tap to reveal answer
Number of bits processed per second in a compressed file. Determines data transmission speed and quality.
Number of bits processed per second in a compressed file. Determines data transmission speed and quality.
← Didn't Know|Knew It →
What is Huffman coding?
What is Huffman coding?
Tap to reveal answer
A lossless data compression algorithm using variable-length codes. Assigns shorter codes to more frequent characters.
A lossless data compression algorithm using variable-length codes. Assigns shorter codes to more frequent characters.
← Didn't Know|Knew It →
What is run-length encoding (RLE)?
What is run-length encoding (RLE)?
Tap to reveal answer
A simple form of lossless data compression based on runs of data. Replaces repeated values with count and value pairs.
A simple form of lossless data compression based on runs of data. Replaces repeated values with count and value pairs.
← Didn't Know|Knew It →
Identify a disadvantage of lossless compression.
Identify a disadvantage of lossless compression.
Tap to reveal answer
Larger file sizes compared to lossy compression. Perfect preservation requires more storage space.
Larger file sizes compared to lossy compression. Perfect preservation requires more storage space.
← Didn't Know|Knew It →
Identify a disadvantage of lossy compression.
Identify a disadvantage of lossy compression.
Tap to reveal answer
Loss of data quality and fidelity. Irreversible information loss reduces file quality.
Loss of data quality and fidelity. Irreversible information loss reduces file quality.
← Didn't Know|Knew It →
Why is entropy important in data compression?
Why is entropy important in data compression?
Tap to reveal answer
Higher entropy indicates less potential for compression. Random data has high entropy and resists compression.
Higher entropy indicates less potential for compression. Random data has high entropy and resists compression.
← Didn't Know|Knew It →
What does MPEG stand for?
What does MPEG stand for?
Tap to reveal answer
Moving Picture Experts Group. Standards organization for audio and video compression.
Moving Picture Experts Group. Standards organization for audio and video compression.
← Didn't Know|Knew It →
What is entropy in the context of data compression?
What is entropy in the context of data compression?
Tap to reveal answer
Measure of randomness or disorder in data. Higher entropy means less predictable, harder to compress data.
Measure of randomness or disorder in data. Higher entropy means less predictable, harder to compress data.
← Didn't Know|Knew It →
Which compression type typically results in smaller file sizes?
Which compression type typically results in smaller file sizes?
Tap to reveal answer
Lossy compression. Removing data allows for greater size reduction.
Lossy compression. Removing data allows for greater size reduction.
← Didn't Know|Knew It →
Calculate the compression ratio: original size 200 MB, compressed size 50 MB.
Calculate the compression ratio: original size 200 MB, compressed size 50 MB.
Tap to reveal answer
4:1. Original size divided by compressed size: $200 ÷ 50 = 4$.
4:1. Original size divided by compressed size: $200 ÷ 50 = 4$.
← Didn't Know|Knew It →
What is data compression?
What is data compression?
Tap to reveal answer
Data compression reduces file size by encoding information more efficiently. Essential technique for managing storage and bandwidth efficiently.
Data compression reduces file size by encoding information more efficiently. Essential technique for managing storage and bandwidth efficiently.
← Didn't Know|Knew It →
What does the term 'compression ratio' refer to?
What does the term 'compression ratio' refer to?
Tap to reveal answer
Ratio of the size of the compressed file to the original file. Lower ratios indicate better compression efficiency.
Ratio of the size of the compressed file to the original file. Lower ratios indicate better compression efficiency.
← Didn't Know|Knew It →
What is a common algorithm used for lossy compression?
What is a common algorithm used for lossy compression?
Tap to reveal answer
The JPEG algorithm. Widely used for image compression with quality loss.
The JPEG algorithm. Widely used for image compression with quality loss.
← Didn't Know|Knew It →
In which scenario is lossless compression favored?
In which scenario is lossless compression favored?
Tap to reveal answer
When data integrity is critical, such as text files. Perfect reconstruction is essential for text documents.
When data integrity is critical, such as text files. Perfect reconstruction is essential for text documents.
← Didn't Know|Knew It →
What is a common algorithm used for lossless compression?
What is a common algorithm used for lossless compression?
Tap to reveal answer
The Lempel-Ziv-Welch (LZW) algorithm. Dictionary-based algorithm for efficient lossless compression.
The Lempel-Ziv-Welch (LZW) algorithm. Dictionary-based algorithm for efficient lossless compression.
← Didn't Know|Knew It →
Which type of compression is used in ZIP files?
Which type of compression is used in ZIP files?
Tap to reveal answer
Lossless compression. File archives require perfect data preservation.
Lossless compression. File archives require perfect data preservation.
← Didn't Know|Knew It →
Identify a benefit of smaller file sizes.
Identify a benefit of smaller file sizes.
Tap to reveal answer
Faster data transmission. Reduced file sizes improve network transfer speeds.
Faster data transmission. Reduced file sizes improve network transfer speeds.
← Didn't Know|Knew It →
Identify a use case for lossless compression.
Identify a use case for lossless compression.
Tap to reveal answer
Medical imaging where data integrity is crucial. Critical applications require perfect data preservation.
Medical imaging where data integrity is crucial. Critical applications require perfect data preservation.
← Didn't Know|Knew It →
Which type of data is more compressible?
Which type of data is more compressible?
Tap to reveal answer
Data with low entropy. Predictable data contains patterns for compression.
Data with low entropy. Predictable data contains patterns for compression.
← Didn't Know|Knew It →
What is the effect of compression on data transmission speed?
What is the effect of compression on data transmission speed?
Tap to reveal answer
Compression generally increases data transmission speed. Smaller files transfer faster over networks.
Compression generally increases data transmission speed. Smaller files transfer faster over networks.
← Didn't Know|Knew It →
What does 'decompression' mean?
What does 'decompression' mean?
Tap to reveal answer
Restoring compressed data to its original form. Process of expanding compressed data back to original.
Restoring compressed data to its original form. Process of expanding compressed data back to original.
← Didn't Know|Knew It →
What is the primary challenge of data compression?
What is the primary challenge of data compression?
Tap to reveal answer
Balancing compression efficiency with data quality. Optimizing both compression ratio and acceptable quality.
Balancing compression efficiency with data quality. Optimizing both compression ratio and acceptable quality.
← Didn't Know|Knew It →
Which type of data is less compressible?
Which type of data is less compressible?
Tap to reveal answer
Data with high entropy. Random data lacks patterns for compression algorithms.
Data with high entropy. Random data lacks patterns for compression algorithms.
← Didn't Know|Knew It →
What role does redundancy play in data compression?
What role does redundancy play in data compression?
Tap to reveal answer
Higher redundancy increases potential for compression. Repeated patterns enable more effective compression.
Higher redundancy increases potential for compression. Repeated patterns enable more effective compression.
← Didn't Know|Knew It →
What is a codec?
What is a codec?
Tap to reveal answer
A device or program for encoding or decoding data streams. Software that compresses or decompresses digital media.
A device or program for encoding or decoding data streams. Software that compresses or decompresses digital media.
← Didn't Know|Knew It →
What is the result of decompressing a lossless file?
What is the result of decompressing a lossless file?
Tap to reveal answer
The file is identical to the original. Lossless compression preserves every bit of data.
The file is identical to the original. Lossless compression preserves every bit of data.
← Didn't Know|Knew It →