1.3.3-1.3.4 Data Compression

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

1/33

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards
Compression
Process whereby algorithms reduce file size.
2
New cards
Decompression
Process whereby algorithms restore compressed data to their original format so we can access the data stored in compressed files.
3
New cards
Compression is heavily used with ______, ________, and ________ files. There are 2 different types of compression: _________, and _______.
sound, image, video, lossy, lossless
4
New cards
Lossy compression
Irreversible compression, lossy compressed files permanently lose some data that cannot be restored during file decompression. However, it does decrease file size more than lossless compression can.
5
New cards
Lossy compression is mostly used for multimedia like ______, ______, _________, etc. Its image/graphic file formats include ________ and ________, whereas its sound/audio file formats include __________ and __________.
audio, video, images, JPG (or JPEG), GIF, MP3, AAC
6
New cards
Digital artefacts
Noticeable distortion of media (images, audio, and video), caused by the application of lossy compression. Examples include blurred/lowered image or video quality, glitchy audio sounds, etc.
7
New cards
Lossless compression
Reversible compression, lossless compressed files can restore and rebuild file data during decompression to result in the exact same-quality data as the original, uncompressed file. However, it decreases file size less than lossy compression can.
8
New cards
Lossless compression is mostly used for __________, ___________, ___________, etc, where data loss is ______________. Its image/graphics file formats include ________ and ________, whilst its sound/audio file formats include ___________, _________, and _______. Lossless compression algorithms finds groups of repeating data and records them at _______, along with the number of ___________.
text, data files, programs, undesireable, PNG, TIFF, FLAC, ALAC, WMA, once, repetitions.
9
New cards
RLE
Run length encoding, lossless compression method where sequences that display redundant data are stored as 2 values: 1 value represents the number of repetitions/frequency the other value represents the actual data being repeated.
10
New cards
RLE is often written as 2 numbers: the first number represents the _________ or _____________, i.e. ________________________, while the second number represents the _________________, i.e. ________________________.
count, frequency, number of repetitions, data value, what is being repeated
11
New cards
Runs of data
Sequences where the same data value occurs consecutively in many data elements
12
New cards
Runs of data are stored as a ________________ representing frequency and the actual ___________________ (what is being repeated), rather than as the original _______. This helps save lots of ________ and therefore bits as well as file size! However, in files without many data _____________, RLE can _________ the file size.
count value, data value, run, characters, repetitions, increase
13
New cards
It's possible to reduce _____________ and _______________ of images or ______________ and _____________ of sound files. This leads to _____________________ as well as a _________ file size at the cost of _____________ image/sound quality.
image resolution, colour depth, sample rate, sample resolution, permanent data loss, smaller, lower
14
New cards
Explain the uses of compression.
Compression is often used for files and data that are sent via the internet, they lead to reduced transmission time (hence faster downloading), further data allowances, less bandwidth required, and less storage space needed to save files as compression reduces file size.
15
New cards
Transmission
Transfer of data from 1 digital device to another.
16
New cards
Data allowances
Maximum amount of data usage (uploads and downloads) that you're allowed to use without any extra cost because it's pre-paid under your monthly billing plan (e.g. mobile data plan).
17
New cards
Bandwidth
Maximum amount of data transmitted over an internet connection in a given amount of time.
18
New cards
Storage space
Mechanism allowing data storage on your computer either temporarily or permanently to protect it from drive failures.
19
New cards
Downloading data/file size for music tracks (kilobits) =
Downloading speed (kilobits per second) * Duration of music track (seconds)
20
New cards
What are the benefits of compression?
1. Smaller file size → Fewer bits → Faster transmission time and reduced internet traffic.
2. Reduced download time for video, sound (including speech used for VOIP - Voice Over Internet Protocol - systems), and image files.
3. Streaming is possible as the data can be sent as fast as the rate at which it's played.
4. Images in web pages appear faster.
5. Takes up less space on disks/servers.
21
New cards
Internet traffic (a.k.a. network traffic)
Amount of data moving across a network during any given time.
22
New cards
Disks
Computer data storage device
23
New cards
Servers
Computer program/device providing service to another computer program and its user (client).
24
New cards
Buffering
When your device pauses mid-task. This occurs when download speed is slower than the playback speed. It can be reduced by closing other programs/applications, reducing video quality, or speeding up internet connections.
25
New cards
How does video streaming work?
1. Files for video streaming are compressed.
2. The TV or computer needs to decompress the data as the video is played.
3. Before the video is played, it will buffer a sufficient amount to allow for occasionally slow network.
4. If the website or server detects slow connection, it may start sending alternatively lower-quality (hence lower file size) files.
26
New cards
JPEG
Lossy file format for photos.
27
New cards
PNG
Lossless file format for images/photos, may include transparency.
28
New cards
ZIP
Lossless file format for document compression.
29
New cards
GIF
Lossless file format used for simple images, may include animation.
30
New cards
MP4
Lossy file format used for videos.
31
New cards
MP3
Lossy file format used for music/audio.
32
New cards
FLAC
Free lossless file formats for music.
33
New cards
ALAC
Apple lossless file format for music.
34
New cards
AVI
Lossless file format for audio and/or video playback on discs as well as DVDs.