Compression and Encryption Flashcards

(19 cards)

1
Q

What is Lossy Compression?

A
  • A type of compression algorithm
  • Involves removing unnecessary data (e.g.: background noise) from a digital file in order to reduce its size
  • This data is then permanently lost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Lossless Compression?

A
  • A type of compression algorithm
  • Reduces file sizes without sacrificing any significant information in the process
  • No data is lost
  • Can be RLE or Dictionary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Ciphertext?

A
  • Text that has gone through a cipher to make it harder to read.
  • Opposite of plain text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Vernam Cipher?

A
  • The Vernam cipher is an example of a one -time pad cipher.
  • This means that each key should only ever be used once. * Additionally, itrequires the key to be random and at least as long as the plaintext that is to be encrypted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a One Time Pad?

A
  • An encryption technique that cannot be cracked but requires the use of a single-use pre-shared key that is larger than or equal to the size of the message being sent.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Aims of Compression?

A

Reduce the size of files
Reduce download times
Reduce storage requirements
Make best use of bandwidth

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

What does compression do?

A

Reduces the size of a file
Makes files quicker to transfer
Files take up less space in storage

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

What does Lossy Compression Do?

A

Some data is lost when the files is compressed
Reduces quality but also reduces file size
Suitable for images, audio and video

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

What do Lossless Compression do?

A

None of the original data is lost
The original file can be recreated when it is uncompressed
Suitable for executable files and documents.

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

Methods of Lossless Compression?

A

Dictionary Coding
Run-Length (RLE) Encoding

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

What is Dictionary Coding more suited for?

A

Ideal for compression of text-based documents

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

What is RLE more suited for?

A

Compression of Images, specifically Bitmap

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

What is Dictionary Coding?

A

Works by building an index visualized as a table
Every data item or entry is recorded alongside indexed reference

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

What is Run-Length Encoding

A

replaces repeating sequences of characters with a single character and a count of its occurrences.
For example an image with a colour depth of 1 (Black and White) may have a row of black pixels 5 black pixels followed by four white ones. This could be represented as 5B, 4W

This data is stored in frequency data pairs

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

What does a compressed file using Dictionary Coding consists of?

A

The Dictionary Index
The sequence of occurrences needed to recreate the original file.

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