Study Atlas › Computer Science › Theory

Information theory and entropy

Shannon's mathematical theory of communication measures information in bits and sets limits on compression and transmission.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Entropy H = –Σ p log2 p is the average information per symbol and the limit of lossless compression. Channel capacity sets the maximum reliable data rate. Huffman coding (1952) gives optimal prefix codes. It underpins ZIP files, mobile data and error-correcting codes.

Example

A fair coin has 1 bit of entropy; an 8-letter alphabet with equal probabilities has 3 bits per letter.

How it works, step by step

  1. Model the source probabilities
  2. Compute entropy
  3. Design a code close to the entropy
  4. Add error correction for a noisy channel

Open the interactive page with diagrams →

People behind it

References

  1. C. E. Shannon, Bell Syst. Tech. J. 1948, 27, 379–423 and 623–656.
  2. D. A. Huffman, Proc. IRE 1952, 40, 1098–1101.

Textbooks

Related topics

Public-key cryptography (Diffie–Hellman, RSA)World Wide Web, HTTP and HTMLProgramming paradigmsComputer networks and the TCP/IP modelCompilersRelational databases and SQLMachine learningConcurrency: deadlock and synchronisationNeural networks and backpropagationOperating systems: processes, scheduling and memory