1.3.1 Flashcards

1
Q

What is dictionary encoding?

A

Ideal for compression of text
Creates a table of entries (patterns of text) and assigns them a code/reference/number

Only codes included in file when compressed

Dictionary has to be included in compressed file but overall size reduction is significant

Missed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is purpose of compression?

A

Reduce size of files
Reduce download time
Reduce storage requirements
Make best use of bandwidth

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When do we use compression?

A

Mobile networks limitations (not everyone has 5G etc)
Web pages
Music and video buffering (compressing data will not affect result of this)
Use it when storing, sharing, transmitting data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why?

A

Critical to make efficient use of bandwidth given vast amounts of data sent + streamed over internet every day
Reducing file sizes speeds up time taken to transmit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the level and methods of compression we carry out depend on?

A

Aim of compression is to reduce size of file - use lossy of lossless
Depends on:
Type of file
Level of quality wish to retain
Speed of transmission required
Quality vs usability decisions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is lossy compression method?

A

Some info present in original file is permanently discarded + cannot be restored

Algorithm designed to minimise impact if permanent loss by eliminating data that’s less likely to be noticed by human perception (eg sound or pictures)
Missed-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can the effects of lossy compression be noticeable?

A

Images can appear pixelated or present artefacts?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the lossy algorithm work?

A

Reduces size of image by decreasing bit depth and therefore the range of colours available

Can also reduce resolution of image (total no of pixels which make up the image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is bit depth?

A

Of a digital bitmap image determined no of different colours that can be used and the size of file as more bits have to be used per pixel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Slide 8

A

JPG and MP3 are compressed not the original files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is lossless compression?

A

All info is present in original file is retained and is recoverable

Don’t sacrifice any quality - restore image in full original quality when uncompressed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When does we use lossless?

A

Essential for files such as software and text documents as loss of data can have unacceptable consequences

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do lossless compression algorithms work?

A

Work by identifying patterns in data + creating a code to recover all original info rather than eliminating bits from original file

Instead of storing every pixel w same binary pattern - store binary for colour followed by no of pixels in a row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Missed

A

Files are much bigger than lossy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What types of image is lossless suitable for?

A

Method only effective on images w large areas of continuous colours

Ideal for vector style images (logos, cartoons, icons) but not for full-colour photographs where v few blocks of continuous repeating colours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

File type bit

A
17
Q

What does compression do?

A

Reduces size of file
Makes file quicker to transfer
Files take it less space in storage

18
Q

Lossy vs lossless compression

A

Lossy:
Some data lost when file compressed
Slightly reduces quality but significantly reduces file size
Suitable for images, audio, video

Lossless:
None of original data lost
Original file can be recreated when uncompressed
Suitable for executable files + documents

19
Q

What is run length encoding?

A

Most suitable to compression of images
Lossless
Every pixel in original picture is recoverable at end of process
Algorithm finds patterns of pixels of same colour + creates introductions to recreate them at end of process (rather than storing binary …
.missed

20
Q

Slide 18

A
21
Q

RLE of sound slide 19

A