Eli5: How do zip files work? How do they make files just smaller?

660 views

Eli5: How do zip files work? How do they make files just smaller?

In: Technology

5 Answers

Anonymous 0 Comments

The trick with a file compression algorithm is that you try to find repeating patterns in a file. And when you find a repeating pattern, instead of keeping the entire pattern again, you type in a reference to the first place in the file where that pattern occurred.

Works better, of course, if patterns have the decency to repeat themselves often. Or a least similar.

You are viewing 1 out of 5 answers, click here to view all answers.