Search the documentation

Type to search. Use ↑ and ↓ to move, Enter to open.

Huffman coding

Optimal prefix-free codes built from symbol frequencies.

1
projects
1
run in the browser
Defining formula
L=∑ipi ℓi  ≥  H=−∑ipilog⁡2piL = \sum_i p_i\, \ell_i \;\ge\; H = -\sum_i p_i \log_2 p_i

The average code length L can approach, never beat, the entropy H of the source.

On this page

Projects that use it

Neighbourhood in the knowledge graph

Huffman codingSignals, coding and compressionJPEG Encoder and DecoderdnslibDiscrete cosine transformLossy compressionColour spaces
ProjectsConceptsDomainsShow in graph →