Description: Huffman coding information and communication can greatly improve the channel utilization, reduced transmission time, reducing transmission costs. However, this requires the sending end through a coding system for pre-treatment data encoding, the receiver will decode the data transmitted (recovery). For duplex channel (ie, two-way transmission of information channels), each side needs a complete encoder/decoder system. Test for such information transceiver station to write a Huffman encoding/decoding system.
Basic requirements: a complete system should have the following features:
(1) initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, (Optional: and it is stored in the file hfmTree in). And shows the coding of each character.
(2) encoding (Encoding). Has been built using the Huffman tree (Optional: if not in memory, reads from the file htmTree), the input string literal (Optional: The text of t
To Search:
File list (Check if you may need any files):
哈夫曼编码(完)
................\abc.txt
................\哈夫曼编码(完).TXT