SLR 9 Flashcards

Compression

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

What is the purpose of compression?

A

-Reduce the size of files
-Reduce download times
-Reduce storage requirements
-Make best use of bandwidth (time it takes to be transmitted to others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
Q

How does lossy compression work?

A

Data in a file is removed and can not be recovered
(However, very little is lost so it’s okay for images, but bad for text files)

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

How does lossless compression work?

A

Uses an algorithm to shrink a files size without losing important data

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

What are the two types of lossless compression?

A

-Run-length Encoding (For images)
-Dictionary encoding (For text)

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

How does dictionary encoding compression work for text files?

A

It builds an index which we can visualise as a table, by referencing different words on the table with different numbers

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

How does run length encoding compression work for images?

A

With a black and white image, 0 would be white and 1 would be black

It would be stored somewhat like this: 22 white pixels followed by, 6 black pixels followed by… 8 white pixels…. and repeat

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

What is Encryption?

A

The process of encoding a message so it can be read only by the sender and intended recipient

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

How does Symmetric Encryption work?

A

A single key is used to encrypt and decrypt a message, meaning both parties need to know the key

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

What are the dangers of Symmetric Encryption?

A

The key can be intercepted by a hacker or they could duplicated the key during the process, allowing them to decrypt private messages

This is why Asymmetric Encryption is used for processes such as sending bank card information

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

How does Asymmetric Encryption work?

A

Uses two separate keys, Key A encrypts a message and Key B decrypts it

This is better than Symmetric Encryption because Key A and Key B aren’t the same, and it’s practically impossible to derive one key from another, making a much more secure connection

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

What are the keys in Asymmetric Compression called

A

Key A and B are called Key Pairs. One key of the pair need to be picked as a public key and a private key

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

What is the difference between a public and private key?

A

A public key can be made public and can be published online

The private key is also used to decrypt messages encrypted by a public key

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

How is Hashing different to encryption?

A

Hashing is irreversable, which compression isn’t

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