#HuffmanCoding

रञ्जित (Ranjit Mathew)rmathew
2022-07-02
2020-08-21

I'm going to try to do a better of explaining #HuffmanCoding in a toot 'cause holy heck is the Wikipedia article bad about explaining what it is:

ASCII uses one byte for every character. That's wasteful if some characters are much more common than others! So use fewer bits for the common characters and more bits for the less common characters, thereby using fewer bits overall.

In order to tell characters apart in the bitstream, make sure no two characters begin with the same bit pattern.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst