Build the Huffman tree. This is an optimized implementation that (a) takes advantage of the frequencies being already sorted; (b) only generates non-leaf nodes, since the non-leaf nodes of a Huffman tree are sufficient to generate a canonical code; (c) Only stores parent pointers, not child pointers; (d) Produces the nodes in the same memory used for input frequency information. Array 'A', which
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected