Data Compression
When storing a file, a program can be run which compresses the data so that the data takes up less storage space

This is useful when files are to be transmitted over a network or attached to an email as the transfer will take less time.

A disadvantage is that the file will need to be decompressed before it can be used. 

A special program is needed for compression and for decompression although some compressed files will automatically decompress themselves.

 

Some examples of Compression programs are WinZip, PKZip and WinRar

Common file extensions of compressed files are 
.zip, .rar

Compressed files are often referred to as Zipped files.

Example : Normally each character is stored as an 8-bit binary number. One method of compressing data is to assign the common characters a smaller number of bits and the less commonly used characters a larger number of bits.

Graphics files take up a lot of space and usually include a number of repeated bytes....

eg The data

28 28 28 45 45 45 45 45 81 81

could be stored as

3 28 5 45 2 81

with no loss of information, ....but consists of 6 numbers instead of 10.

 

Exercise : Data Compression
'WinZip' is an example of a program which data files.

A compressed file and .

The file will need to be before it can be used.

 

(Green indicates success)