Data Storage and File Compression
Data Storage and File Compression
compression
KS4 – Data representations
Topic: Data Storage and File compression
Lesson Objective:
To understand data compression and its types.
Self assessment
Success Criteria:
AT I can describe data compression and its types.
ABOVE I can compare the lossless and lossy compression
method.
ABOVE + I can analyze the impact of data compression on
file size.
Retrieval Practice
What are the benefits of using large sampling Define sampling resolution and color
rate? depth.
Measurement of data storage
The above system of numbering now only refers to some
A bit is the basic unit of all computing memory storage storage devices but is
terms and is either 1 or 0. technically inaccurate. It is based on the SI (base 10)
The word comes from binary digit. The byte is the smallest system of units where
unit of memory in a 1 kilo is equal to 1000.
computer. 1 byte is 8 bits. A 4-bit number is called a nibble – A 1 TB hard disk drive would allow the storage of 1 × 1012
half a byte. bytes according to this
1 byte of memory wouldn’t allow you to store very much system.
information so memory However, since memory size is actually measured in terms
size is measured in the multiples shown in Table 1.4: of powers of 2, another
system has been adopted by the IEC (International
Electrotechnical Commission)
that is based on the binary system (Table 1.5):
Calculation of file size
The file size of an image is The size of a mono sound file is
calculated as : calculated as:
Data Compression
The sound and image files can be very large. It is therefore necessary to reduce
(or compress) the size of a file for the following reasons:
» to save storage space on devices such as the hard disk drive/solid state drive.
» to reduce the time taken to upload, download or transfer a file across a network »
the download/upload process uses up network bandwidth – this is the maximum
rate of transfer of data across a network, measured in bits per second. This occurs
whenever a file is downloaded, for example, from a server. Compressed files
contain fewer bits of data than uncompressed files and therefore use less
bandwidth, which results in a faster data transfer rate.
» reduced file size also reduces costs. For example, when using cloud storage, the
cost is based on the size of the files stored.
Also, an internet service provider (ISP) may charge a user based on the amount
of data downloaded
Lossy file compression
With this technique, the file compression algorithm eliminates unnecessary data
from the file. This means the original file cannot be reconstructed once it has
been compressed.
Lossy file compression results in some loss of detail when compared to the original file. The algorithms
used in the lossy technique must decide which parts of the file need to be retained and which parts can be
discarded.
Lossy files are smaller than lossless files which is of great benefit when considering storage and data
transfer rate requirements.
Common lossy file compression algorithms are:
But how can the original music file be reduced by 90% while still retaining most of the
music quality?
Essentially the algorithm removes sounds that the human ear can’t hear properly. For
example: