huffman algorithm
I am just wondering how one would find the priority(by the standard below) if he/she is given the frequency..
would priority = 1/frequency work?
higher frequency
10,9,8,7,6,5,4,3,2,1
higher priority
0,1,2,3,4,5,6,7,8,9
basically, higher Frequency(the number is bigger) -> Higer priority(number is smaller), so a priority of 0 will mean frequency of 10
|