| ▲ | PivCo-Huffman “merge” operations(fgiesen.wordpress.com) | |
| 36 points by luu a day ago | 2 comments | ||
| ▲ | derf_ 2 hours ago | parent | next [-] | |
This is a good optimization when you can use it, but it is somewhat uncommon to decode a large number of consecutive symbols using the same Huffman code. Actual compression formats switch between multiple codes, as one switches between decoding prediction modes, literals, run lengths, offsets, and etc., and more importantly, you often do not know the code that will be used for the next symbol before you have decoded the previous symbols. That all makes it rather difficult to apply in practice. | ||
| ▲ | jkhdigital 4 hours ago | parent | prev [-] | |
I love this kind of thing—going to try and use this in my data structures course. | ||