Skip to content
Go back

Compression

What is it?

Give a block of anything, you’re asked how to organize or structure it so that it can take much as little space as possible.

Lossless vs Lossy

Lossless refers to perfect recreation. Lossy refers to near perfect recreation. So once we compress it in lossless, we MUST be able to recreate it after uncompressing it perfectly. Lossy just means close enough to perfect.

Approaches (Lossless)

Approaches (Lossy)

Huffman Coding


Share this post on:

Previous Post
React notes
Next Post
Memory Layouts