Originally Posted by
MK27
Umm -- alphabetical and lexicographical are same thing:
lexicographical order
So the difference is that the lexicographical/alphabetical order used in the table is not the same as the lexicographical/alphabetical order "mentioned in the RFC".
Ie, the table is
ordered with the left hand column, but discussed in terms of ordering with the right hand column. RFCs can be very obtuse. Not that I know anything much about Huffman encoding.
Visually version of above remark
alphabetical/lexicographical of column 1
Code:
Symbol Code
------ ----
A 10
B 0
C 110
D 111
alphabetical/lexicographical of column 2
Code:
Symbol Code
------ ----
B 0
A 10
C 110
D 111
There are not the same in the RFC because they were likely talking about sorting by different columns.
Tim S.