There is another way to transmit the Huffman table. Instead of transmitting in it's tree form, you could transmit an array of code lenths and use a canonical algorithm to reconstruct the table. This have the advantage of being easier to compress the lengths table with a RLE esque encoding ( supposing not all possible symbols are always used so you could have runs off zeros)
Last time I was this early she left.
perhaps the most based comment possible
this made my day so much better thank you
3 thousand keystrokes just to move a line of code up xD
There is another way to transmit the Huffman table. Instead of transmitting in it's tree form, you could transmit an array of code lenths and use a canonical algorithm to reconstruct the table. This have the advantage of being easier to compress the lengths table with a RLE esque encoding ( supposing not all possible symbols are always used so you could have runs off zeros)
brilliant effort!