So, to maximize the length of the longest codeword, we want to minimize the frequencies of as many symbols as possible.
We can start with two symbols with the smallest possible frequencies, say $f_1 = 1$ and $f_2 = 1$. In this case, the longest codeword would
Show more…