Compression is reduction of a particular file which have redundant bits of data and can be expanded again. It seems mysterious, isn't it ? But, the idea is simple.
[su_note radius="9"]Compression just gets rid of redundancy[/su_note]
To be more clear, consider this:
Suppose, I have a statement "you could do whatever you want". If we assign each word a number
Then the sentence could be written as 123415 thus, making data size smaller.
We've two types of compression:
- Lossy: Cuts down unnecessary expansion thus, being incomplete, file is fully functional.
- Lossless: Returns the entire original file upon expansion.