8.(Algorithm points) [10%] Please express the construction of Huffman coding and analyze its time complexity in detail.