Template Function ADS::huffmanLengths

Function Documentation

template<class C, class F>
std::map<C, int> ADS::huffmanLengths(const std::map<C, F> &freq)

the lengths of the codes of Huffman [see Huffman.h] of the symbols with the given frequencies

Pre:

freq not empty, no frequency negative