encyclopegia.org

Shannon coding

In the field of data compression, Shannon coding, named after its creator, Claude Shannon, is a lossless data compression technique for constructing a prefix code based on a set of symbols and their probabilities (estimated or measured). It is suboptimal in the sense that it does not achieve the lowest possible expected code word length like Huffman coding does, and never better than but sometimes equal to the Shannon–Fano coding (Fano's method). The method was the first of its type, the technique was used to prove Shannon's noiseless coding theorem in his 1948 article "A Mathematical Theory of Communication", and is therefore a centerpiece of the information age. Shannon–Fano coding methods gave rise to the field of information theory and without its contributions, the world would not have any of the many successors; for example Huffman coding, or arithmetic coding. Much of our day-to-day lives are significantly influenced by digital data and this would not be possible without Shannon-Fano coding and the ongoing evolution of its methods. In Shannon coding, the symbols are arranged in order from most probable to least probable, and assigned codewords by taking the first l_i = \left\lceil -\log_2 p_i \right\rceil bits from the binary expansions of the cumulative probabilities \sum\limits_{k=0}^{i-1} p_k.…

In the field of data compression, Shannon coding, named after its creator, Claude Shannon, is a lossless data compression technique for constructing a prefix code based on a set of symbols and their probabilities (estimated or measured). It is suboptimal in the sense that it does not achieve the lowest possible expected code word length like Huffman coding does, and never better than but sometimes equal to the Shannon–Fano coding (Fano's method). The method was the first of its type, the technique was used to prove Shannon's noiseless coding theorem in his 1948 article "A Mathematical Theory of Communication", and is therefore a centerpiece of the information age. Shannon–Fano coding methods gave rise to the field of information theory and without its contributions, the world would not have any of the many successors; for example Huffman coding, or arithmetic coding. Much of our day-to-day lives are significantly influenced by digital data and this would not be possible without Shannon-Fano coding and the ongoing evolution of its methods. In Shannon coding, the symbols are arranged in order from most probable to least probable, and assigned codewords by taking the first l_i = \left\lceil -\log_2 p_i \right\rceil bits from the binary expansions of the cumulative probabilities \sum\limits_{k=0}^{i-1} p_k. Here \lceil x \rceil denotes the ceiling function (which rounds x up to the next integer value). ==References== Shannon, Claude Elwood. "A Mathematical Theory of Communication." ACM SIGMOBILE mobile computing and communications review 5.1 (2001): 3-55.

References

No reference rows published for this article.

Cite this article

MLA

"Shannon coding." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shannon-coding. Accessed 24 November 2026.

Chicago

"Shannon coding." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/shannon-coding.

APA

encyclopegia.org. (2026). Shannon coding. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/shannon-coding

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

arithmetic coding

stub · references available

River Shannon

stub · references available

Advanced Video Coding

stub · references available

Shannon Bahrke

stub · references available

Polly Shannon

stub · references available

Shannon Leto

stub · references available

Shannon Point

stub · references available

Shannon Moore

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1340654514 · 0.5 · snapshot enwiki-001340654514

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.