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

657 views

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

In: Technology

5 Answers

Anonymous 0 Comments

Compression is a form of coding. When you find a specific pattern or grouping, you assign that group a simple name, then replace all the reference with the simple name. For example, a long essay, you find the word “the” occurs 1200 times in the text. You add a statement that says replace the letter sequence THE with the number 1.

So for each time the word The appears, the compressed form has the number 1. You’ve now reduced the size by 66% for each occurrence of the word.

The more times a file has a repeating pattern that can be coded smaller, the better the compression ratio will be.

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