2007-02-24
13:33:23
·
4 answers
·
asked by
Galbadian
2
in
Computers & Internet
➔ Programming & Design
I have an array of 27 numbers. I want to find the two lowest values, add them, and then repeat that process for next two lowest values (including the result of adding the lowest 2 if it is part of the new lowest two objects) and so on.
2007-02-24
13:38:45 ·
update #1
Note: This procedure, while seemingly trivial, is actually part of the process for encoding bits. Ever heard of Huffman Coding? That's what this is for.
2007-02-24
15:05:31 ·
update #2