Compression and Encryption Flashcards
Run Length Encoding:
Works for grouping repeated values
Dictionary Encoding
Frequently occurring pieces of data are replaced with an index
Encryption types
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
What is Hashing:
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
What are collisions and how to prevent
If 2 keys have the same hash, a collision happens, they could be stored in a list or use a second hashing function