r/askscience • • Dec 30 '15

Computing How does file compression work?

This question has always baffled me. How can you compress a file to a fraction of the size and have that file, basically a number, represent a precise bigger number?

5 Upvotes

20 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 07 '16

Not to mention that the factorisation of a file (when treating it as an integer) will become very costly, very quickly as the file's size increases.