Introduction - If you have any usage issues, please Google them yourself
Given n weights as leaf nodes n, constructing a binary tree. If the right path length to a minimum, said such a binary tree for the optimal binary tree, also known as Huffman tree Huffman tree). Huffman tree is a weighted length of the shortest path tree, nodes with larger weight closer to the root.