1.3.1 Compression and hashing Flashcards

1
Q

What is compression?

A

-Process used to reduce the storage space required by a file so you can store more files with the same amount of storage space
-Particularly important for sharing files over the internet

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

Lossy compression

A

Reduces the size of a file while also removing some of its information
(Could result in a more pixelated image or less clear audio recording)

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

Lossless compression

A

-Reduces the size of a file without losing any information
-Original file can be recovered from the compressed version

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

Run length encoding

A

-Method of lossless compression in which repeated values are removed and replaced with one occurrence of the data followed by the number of times it should be repeated
i.e. AAABBBBCC = 3A4B2C
-Relies on consecutive pieces of data being the same

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

Dictionary encoding

A

-Method of lossless compression where frequently occurring pieces of data are replaced with an index and compressed data is stored alongside a dictionary which matches the data to an index
-Original data can then be restored using the dictionary

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

Symmetric encryption

A

-Both the sender and receiver share the same private key used for both encrypting and decrypting data

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

Asymmetric encryption

A

-Two keys used; private and public
-Public key can be published anywhere while private key is kept secret
-Messages encrypted with the sender’s public key can only be decrypted with the recipient’s private key

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

What is hashing?

A

-An input is turned into a fixed size value (a hash)
-Output of a hash cannot be reversed to form the key
-Useful for storing passwords

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

What is a hash table?

A

-Data structure which holds key-value pairs
-Can be used to lookup data in an array in constant time

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