123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computer-Programming >> View Article

Understanding The Magic Of Data Compression

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

Data compression is the process in which big files are turned into smaller files. For example a large Word document is compressed to a smaller archive file like Zip or 7Z. To some data compression looks like magic.

Data compression is not magic but an algorithmic process in which the same data is represented in a more efficient way. Actually one way to look at data compression is as data redundancy. In other words instead of thinking that the compressed file is smaller than the original data file think of the compressed file as the original file and the bigger data file as a very in efficient representation of it.

For example lets say that you have a text file with this content the letter A then a thousand spaces and the letter B. The file would consume 1002 characters. This is however a very inefficient representation it would be much shorter to have a file with a content that says something like A then thousand spaces then B.

So why do computers store and use inefficient files at all? The reason is simple they are easier and faster to handle and process and when storage is not a problem there is no real ...
... disadvantage of storing bigger files. But when you need to backup file or for example send them over the Internet making them smaller is more efficient.

Compressing files is done by using one out of many what are knows as compression or archiving utilities. There are many compression algorithms that were developed each with its advantages and disadvantages. For example some compress files faster while some compress file slower but achieve higher compression ratio. Some compression types can compress and pack multiple files while some can work only on one file at a time. Some are better for certain file types for example some compression algorithms are optimized for multimedia files while others for textual documents. Some consume more memory in order to compress the data while others are slim and can run on resource limited computers.

Although there are many compression algorithms they all fall under two main categories. One is known as lossless compression and the other as lossy compression. The difference is in the ability to revert the compressed file into the original not compressed file and get the exact same data. Lossless compression means that if you compress a file into an archive and then decompress the archive you will get the exact same file. Lossy compression means that if you compress a file into an archive and then decompress the archive you will get a slightly different file. Why would you want lossy compression that does not revert to the same file? Because it can result in much higher compression ratio. For some type of files losing some data is not noticeable while the high compression ratio is a great advantage. An example for such files are pictures and videos. On the other hand lossless compression is a must when compression data files such as documents and spreadsheets. Jack Church writes at 7zip

Total Views: 256Word Count: 510See All articles From Author

Add Comment

Computer Programming Articles

1. Which Are The Best Java Coding Classes In Bhopal?
Author: Shankar Singh

2. Warehouse Management In Zambia: Essential Features To Look For
Author: Doris Rose

3. Ecommerce Web Design And Development In Melbourne With The Merchant Buddy
Author: themerchantbuddy

4. Why Website Maintenance Is Crucial For Business Success
Author: Yogendra Shinde

5. Boost Your Business With Smart Invoice Pos Software In Zambia
Author: Cecilia Robert

6. How Stablecoin Development Ensures Stability And Security?
Author: Michael noah

7. Công Cụ Tính Chiều Cao Chuẩn Từ Minbin Tool: Đo Lường Và Cải Thiện Chiều Cao Hiệu Quả
Author: KenJi123

8. How To Make A Courier App For Courier Delivery And Tracking Service
Author: Deorwine Infotech

9. Reputation Management In The Digital Age: Protecting And Enhancing Your Law Firm’s Image
Author: jamewilliams

10. What Features Should I Look For In Wordpress Ecommerce Plugins?
Author: Rocket Press

11. Staying Updated With The Latest Gaming News
Author: Next Tech Plus

12. Game Development: Evolving Technologies And New Horizons
Author: Rick John

13. Why Svelte Is The Most In-demand Framework For Web Development?
Author: Why Svelte Is The Most In-Demand Framework For Web

14. Maximizing Ebay Sales With Maropost/neto And Pursuit Info Solutions
Author: rachelvander

15. The Importance Of Software Testing: Ensuring Quality In Development
Author: John Mathew

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