Data Representation - Compression

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards
What is compression?
Reducing a file's size
2
New cards
(by reducing the number of bits required)
3
New cards
Why do we use compression?
-Compressed files are transmitted quicker
4
New cards
-Reduces storage requirements
5
New cards
-Reduces download times
6
New cards
What are the two main types of compression?
Lossless and Lossy
7
New cards
What are the features of lossless compression?
Compression where
8
New cards
-Storage is made more efficient so that redundant data is not stored
9
New cards
-No reduction in quality
10
New cards
-Original file can be recreated
11
New cards
What are some examples of lossless file types?
-PNG
12
New cards
-GIF
13
New cards
What is the lossless compression type for images where RRRRRRRR becomes 8R?
Run-length encoding
14
New cards
How does run-length encoding work?
Consecutive pixels of the same colour are stored more efficiently. Instead of storing that same colour repeatedly, the colour and the number of consecutive pixels with that colour are stored. This reduces the amount of bits stored.
15
New cards
What is the lossless compression type for text files?
Dictionary-based compression
16
New cards
How does dictionary-based compression work?
Common strings of characters are encoded into a dictionary as unique characters and, instead of needlessly repeating these strings, their smaller dictionary entries are used instead therefore reducing the amount of bits stored.
17
New cards
What are the features of lossy compression?
Compression where
18
New cards
-Unneeded data is permanently removed
19
New cards
-Reduction in quality
20
New cards
-Original file cannot be recreated
21
New cards
What are some examples of lossy file types?
-MP3
22
New cards
-JPEG
23
New cards
Why may lossless compression be more suitable than lossy compression?
-No reduction in quality
24
New cards
-Lossy unsuitable for text files
25
New cards
Why may lossy compression be more suitable than lossless compression?
-Generally reduces size more than lossless
26
New cards
-Lossy compressed images load on webpages faster