r/askscience • u/[deleted] • Jun 17 '12
Computing How does file compression work?
(like with WinRAR)
I don't really understand how a 4GB file can be compressed down into less than a gigabyte. If it could be compressed that small, why do we bother with large file sizes in the first place? Why isn't compression pushed more often?
414
Upvotes
3
u/ebix Jun 18 '12
honestly; study math.
Information theory, combinatorics, and graph theory are obviously and immediately applicable to a lot of compsci. But even things like group theory, topology and analysis will help you in the strangest places. Moreover they will train your brain, and everything will seem easier.
To quote /r/compsci; "contrary to popular belief, computer science is mostly math"