3 ms·
Good article, but isn't the author describing Huffman codes?
by bmalicoat 15y ago
Good article, but isn't the author describing Huffman codes?
- RodgerTheGreat 15y agoSame basic idea. He's using variable-length input strings and mapping them to unique symbols rather than the other way around, but it seems like he's using entropy measurements to build an optimal trie.
- akavi 15y agoIs an arbitrary bit sequence valid unicode? If so, I'm curious if a simple per-character Huffman encoding of English would be more efficient.
- JeremyBanks 15y agoNo, it's not. (Although "unicode" is ambiguous, because there are several unicode encodings.) Even if the binary sequence can be decoded as unicode code points, certain combinations of code points aren't allowed (surrogate pairs have to be matched).