XP is just a number | |
PerlMonks |
Re (tilly) 1: A Golf question maybe? Huffman with a twistby tilly (Archbishop) |
on Sep 04, 2001 at 20:30 UTC ( [id://110080]=note: print w/replies, xml ) | Need Help?? |
I don't see how your specification is solvable. What output would you want on an input file of: A valid Huffman output has to look something like: There is simply no way to write a valid Huffman encoding of this example with the letters appearing sorted by weight. (In this representation e appears before c and d.)
In Section
Meditations
|
|