Compression and Encryption Flashcards

1
Q

Run Length Encoding:

A

Works for grouping repeated values

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

Dictionary Encoding

A

Frequently occurring pieces of data are replaced with an index

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

Encryption types

A

Symmetric: Both the sender and the receiver have the same private key which they exchange in a key exchange.
Asymmetric: Encrypted with a public key, decrypted with a private key

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

What is Hashing:

A

An input (key) is turned into a fixed value size, which cannot be reversed
The hash correlating to the key is stored in a hash table
If 2 keys have the same hash, a collision happens, they could be stored in a list or use a second hashing function

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

What are collisions and how to prevent

A

If 2 keys have the same hash, a collision happens, they could be stored in a list or use a second hashing function

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