Interview: How Does File Compression Work?🗃️
How Zip Files Shrink Without Losing Data! A 1 GB folder zips down to 400 MB and unzips back to the full 1 GB. The method behind it is Huffman coding. In the word BANANA, A appears three times, N twice and B once, yet a computer spends 8 bits on every letter, 48 bits in total.
KodeKloud