Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Surya Prakash Sahu
Surya Prakash Sahu

Posted on

Data Compression: Under 256 characters

This is a submission forDEV Computer Science Challenge v24.06.12: One Byte Explainer.

Explainer

Data compression is reducing bits needed to represent data.
S:she sees sea-needs 80bits(8bits/char).

If

  • only 3 words(she,sees,sea) exist, S:"000110"-6bits
  • all alphabets exist & S is only sentence, S:"100101101011101000"(Huffman coding)-18bits.

Additional Context

In computer science and information theory, aHuffman code is a particular type of optimal prefix code that is commonly used for lossless data compression. The process of finding or using such a code isHuffman coding, an algorithm developed by David A. Huffman while he was a Sc.D. student at MIT, and published in the 1952 paper "A Method for the Construction of Minimum-Redundancy Codes".

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromSurya Prakash Sahu

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp