1.3.1 - Compression, Encryption and Hashing Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is compression?

A

The process used to reduce the storage space required by a file.

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

What are the advantages of compression?

A

More files can be stored in a given storage space.

It can be transferred over a network faster.

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

What are the two types of compression?

A

Lossy and lossless.

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

What is the main feature of lossy compression?

A

Lossy compression reduces the file size greatly but at the cost of losing data.

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

What is the main feature of lossless compression?

A

It reduces the file size but the original data can be restored perfectly meaning there is no loss of data.

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

Is Run Length Encoding (RLE) lossy or lossless?

A

Lossless.

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

How does RLE work?

A

It groups together repeated values and stores them more simply.

For example, AAAABBBBCC could be stored as A4B4C2.

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

Is dictionary encoding lossy or lossless?

A

Lossless.

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

How does dictionary encoding work?

A

Frequently occurring pieces of text are replaced with an index. The original data is then restored from the dictionary using the index.

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

What is the purpose of encryption?

A

Encryption is used to keep data secure when it is being transmitted by scrambling the data.

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

What are the two types of encryption?

A

Symmetric and asymmetric.

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

How does symmetric encryption work?

A

The sender and receiver share the same private key. This is used for encrypting and decrypting data.

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

How does asymmetric encryption work?

A

Two keys are used: a private key and a public key. The shared public key can only be used to encrypt data and the private key can only be used to decrypt data.

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

Which method of encryption is more secure?

A

Asymmetric encryption.

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

What is hashing?

A

A process in which an input is put through a hashing algorithm that cannot be inverted.

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