What is Claude Shannon's Information Entropy, how does it establish the fundamental theoretical lower bound on lossless data compression, and what did David Huffman solve in 1952?
In 1948, Claude Shannon published his seminal work 'A Mathematical Theory of Communication', establishing the mathematical foundation of digital information theory.
1. Self-Information and Source Entropy:
Shannon introduced the fundamental metric of information content: the Self-Information of an event with probability p is defined as I(x) = log₂(1/p) = -log₂(p) bits. A highly predictable event transmits negligible information, whereas a rare event carries substantial information.
For a discrete memoryless information source X producing symbols from alphabet Σ with probability distribution P = {p₁, p₂, ..., p_m}, the average information per symbol is the Shannon Entropy:
H(X) = -∑_{i=1}^m p_i log₂(p_i) bits/symbol.
2. Shannon's Source Coding Theorem:
Shannon's Source Coding Theorem proved that the entropy H(X) represents the fundamental lower bound on the expected length of any lossless code: no uniquely decodable code can achieve an average length L_bar < H(X).
3. David Huffman's 1952 Breakthrough:
In 1951, Robert M. Fano assigned his MIT electrical engineering graduate students a term paper problem: find the most efficient method of constructing binary prefix codes. While Fano and Shannon had developed top-down heuristic methods (Shannon-Fano coding) that were suboptimal, graduate student David A. Huffman discovered the optimal bottom-up greedy algorithm just as he was about to give up, publishing 'A Method for the Construction of Minimum-Redundancy Codes' in the Proceedings of the IRE in September 1952. Huffman coding guarantees mathematically minimal redundancy among all symbol-by-symbol prefix codes.