Dynamic huffman coding assignment