Why can English text be compressed using information about letter frequencies?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

English text can be compressed using letter frequencies because the language is not random; it contains significant redundancy. In standard digital encoding, every character is typically assigned the same number of bits (usually 8), regardless of how often it appears. However, because certain letters—such as "E," "T," and "A"—occur much more frequently than others like "Z" or "Q," this uniform approach is inefficient.12

Information theory, specifically Shannon’s concept of entropy, demonstrates that compression is possible when the average length of an encoding exceeds the entropy of the source. By assigning shorter binary codes to frequently occurring characters and longer codes to rare ones, the total number of bits required to represent the text is reduced.13

Furthermore, English text exhibits patterns beyond individual letter frequencies, such as common word structures and repetitive sequences. Advanced data compression techniques, such as those developed by Abraham Lempel and Jacob Ziv, exploit these redundancies by replacing repeated blocks of text with shorter references, allowing for significant reductions in file size.123