Hog-Morse For instance, the international code has only two symbols, dots and dashes, but the American code has several lengths of dash. There is a distinction between "L" () and "T" (). Also, in the international code the space between symbols within a character is always the same, but American Morse has two different spaces. The letters "S" (), "C" (), and "R" () all consist of three dots, but the timing is different in each case. A frequently quoted, but possibly apocryphal, story from the historical period concerns the similarity of "L" and "T" in the American code. A company
Huffman coding minimizing the total number of digits are the same thing. "Huffman coding with unequal letter costs" is the generalization without this assumption: the letters of the encoding alphabet may have non-uniform lengths, due to characteristics of the transmission medium. An example is the encoding alphabet of Morse code, where a 'dash' takes longer to send than a 'dot', and therefore the cost of a dash in transmission time is higher. The goal is still to minimize the weighted average codeword length, but it is no longer sufficient just to minimize the number of symbols used by the message. No algorithm