What is Average code length?
The average of the codeword lengths of the symbols, weighted by the probability that each symbol occurs. With pᵢ the probability of symbol i and lᵢ the length of its codeword, it is L = Σ pᵢ lᵢ (bits per symbol). Assigning short codewords to frequent symbols makes it small, and for a lossless code it is at least the entropy. The entropy divided by the average code length is called the coding efficiency. For example, coding four symbols of probabilities 0.4, 0.3, 0.2 and 0.1 with a Huffman code gives an average code length of 1.9 bits.
Japanese name: 平均符号長
Average code length appears in 6 practice questions across 1 topic, including Information Theory and Coding Basics.