Introduction - If you have any usage issues, please Google them yourself
Given n weights a leaf node n, and construct a binary tree, if the weighted path length to a minimum, said such a binary tree is optimal binary tree, also known as Huffman (Huffman tree). Huffman trees are weighted shortest path tree, the weight the larger root node closer.