Sitemap
Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to democratize free coding education for the world.

Member-only story

Data Compression (Part 2)

--

I would suggest you to give a quick read to the part 1 of this article -

So what does compression of text mean ?

We all must have compressed our game files to store it in hard drives. We compress them so as to store as many games as we can.

There are numerous advantages of compressing a file, it reduces the cost to company for storage, it increases transfer speed of files online, etc.

It basically means converting our text to a shorter format than our original text.

So now, what we all have been waiting for i.e How do we actually compress data ?

There can be various ways to compress any data.

Lets understand a basic compression

As we have already discussed, we use 8-bit binary to represent any character of our text.

Like for our text “hasbullah”, we had a binary format like — “011010000110000101110011011000100111010101101100011011000110000101101000”

--

--

Mridul Singh
Mridul Singh

Written by Mridul Singh

Software engineer writing about AI agents, production systems & what breaks in the real world. Building along the way. Paid collabs - send2mridul@gmail.com

Stackademic
Stackademic

Published in Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to democratize free coding education for the world.