 Call Kai
Call Kai Learn
Learn Practice Test
Practice Test Spaced Repetition
Spaced Repetition Match
Match1/5
Looks like no tags are added yet.
| Name | Mastery | Learn | Test | Matching | Spaced | 
|---|
No study sessions yet.
Purpose of compression
↓ size file
↓ download time
↓ storage requirements
make best use of bandwidth
Lossy compression
Some data lost
Slightly ↓ quality
Significantly ↓ file size
Suitable for: image, audio, video
Lossless compression
None orig data lost
Orig file can be recreated when it is uncompressed
Suitable for: executable files & documents
Methods of lossless compression
Dictionary coding: text based documents
Run-length coding: images
Dictionary coding
Builds index using every data item/entry in file
File is now made up of:
Dictionary index
Sequence of occurrences needed to recreate orig file

Run length coding
ideal for bitmap images
There may be continuous pixels of the same colour
So instead of storing each one individually, information stored in frequency/data pairs:
22 0: 22 continuous white pixels
6 1: 6 continuous black pixels