123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Hardware-Software >> View Article

So What Is Really Compression?

Profile Picture
By Author: Jack Church
Total Articles: 158
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Compression is the process of representing data in a different more efficient way. As the old saying says there is more than one way to skin a cat there is also more than one way to represent data. In order for a compression algorithm to be valid there should be an agreement between the compressor which is the process that changes that data representation to a more efficient smaller form and between the de-compressor which is the process the converts the data back from its compressed form to its original usable form.

A simple compression algorithm could be for example to convert pure text data from 8 bit characters to 7 bit character thus saving one eight of the size needed to store the original data. The English alphabet including all the special characters requires far less than 128 symbols but for processing ease most computers use 8 bit units also know as bytes to represent each character. While this is wasteful in terms of storage it provides for much faster and more efficient CPU usage. So a simple algorithm would simply cram each 7 bit representation of a letter next to the other one saving one bit per character ...
... or a toal of eighth of the storage.

In real life compression algorithm are much more complex and include much more sophisticated mathematics that in essence uses statistical tools in order to measure usage of different symbol strings in a data and then comprise a better scheme for representing those strings. You might have heard buzz words like Huffman trees and Lempel Ziv Welch algorithm. These are fancy names for such statistical algorithms.

In real life there are also two types of compression one is known as lossless compression while rightfully so the other is known as lossy compression. The difference between the two is the ability to convert the compressed data back to its original format. Lossless compression algorithms do not lose any information in the process of changing the data representation. As such lossless compression algorithms allow a de-compressor to recreate the exact same original data.

In contrast lossy compression cannot recreate the exact original data. Usually a lossy compression algorithm de-compressor can create data that is very close to the original but is never exactly the same. So why use lossy compression if it cannot recreate the original data? It sounds like lossless compression is better. The answer is that while lossy compression fails to recreate the exact same original data it can provide much higher compression ratios. In fact because of the looser requirement to be able to recreate an approximation of the original data and not an exact match a lossy compression algorithm can achieve those high compression rates.

Lossy compression algorithm is used for data which its exact accuracy is not important. For example when compressing images or videos the ability to recreate the exact original image or video data is not important since minor inaccuracies are not noticeable by human viewers. Jack Church writes more on 7z

Total Views: 369Word Count: 504See All articles From Author

Add Comment

Hardware/Software Articles

1. How Iot Is Transforming Ibc Container Rental With Real-time Monitoring And Asset Tracking
Author: Elint Systems

2. Best Ways To Remind Customers To Pay Their Debt
Author: TLR DebtXpert

3. Mikrotik Rb Ccr2004-1g-12s+2xs: A High-capacity Fiber Router For Enterprise Networks
Author: Andy

4. Mikrotik Ccr2004-16g-2s+: A Powerful Enterprise Router For High-performance Networking
Author: Andy

5. Top Fintech App Developers For Scalable Apps
Author: Ally COnn

6. When The Lights Flicker: Real Problems Electricians Solve Every Day
Author: Onyx B

7. Key Features Every Successful Custom Software Must Have
Author: Rudram Technology Solutions

8. Your Trusted Partner For Office Supplies In Bangalore
Author: suma

9. Best Office Essential Supplies In Bangalore – Save Time, Reduce Costs & Boost Workplace Efficiency
Author: suma

10. What Is Dynamics 365 Business Central For Iws?
Author: brainbell10

11. Dynamics 365 Chatgpt Integration Methods
Author: brainbell10

12. Ai Agents In Business Central
Author: brainbell10

13. Top 10 Best Laptops For Students In Usa 2026 – Ultimate Buying Guide
Author: BlogGyan

14. Best Petrol Generator Under ₹10,000 & ₹20,000 In India (2026 Guide)
Author: Azam

15. How To Fix Issues With Attachments Not Sending Or Downloading In Sbcglobal Email
Author: Darcy Rose

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: