Data Storage and File Compression Flashcards
(10 cards)
Units of data storage
Bit
Nibble (4 Bits)
Byte (8 Bits)
Kibibyte (1024 Bytes)
Mebibyte (1024 Kibibytes)
Gibibyte (1024 Mebibytes)
Tebibyte (1024 Gibibytes)
Pebibyte (1024 Tebibytes)
Exbibyte (1024 Pebibytes)
Define Compression
Compression is reducing the the size of a file so that it takes up less space on secondary storage.
Benefits of compression
Less storage space required
Less bandwidth required
Shorter transmission time
Use of data allowance
Characteristics of lossy compression
Lossy compression is when data is lost in order to reduce the size on secondary storage and is irreversible
Lossy can greatly reduce the size of a file but at the expense of losing quality
Characteristics of lossless compression
Lossless compression is when data is encoded in order to reduce the size on secondary storage
Lossless compression is reversible, the file can be returned to its original state
Lossless can reduce the size of a file but not as dramatically as lossy
Where is lossless compression appropriate?
Lossless can be used on all data but is more suitable for data where a loss in quality is unacceptable, for example documents
Where is lossy compression appropriate?
Lossy is only suitable for data where reducing quality is acceptable, for example images, video and sound
Run - Length Encoding
A form of lossless compression that reduces the file size of a string of adjacent, identical data.
Repeated string is encoded in two values:
- The first value is the number of identical strings
- The second value is the code of the data
It is only effective when there is long run of repeated units.
Examples of lossy compression
JPEG / JPG, MP3, MP4, MOV
Examples of lossless
PNG, GIF, WAV, MOV, ZIP