文件名称:huffman
介绍说明--下载内容均来自于网络,请自行研究使用
对任意输入的一段英文,为每个字符编制其相应的赫夫曼编码;并利用该编码为任意输入的0、1序列进行解码.
基本要求:一个完整的系统应具有以下功能:
(1)初始化 从终端读入一段英文字符,统计每个字符出现的频率,建立赫夫曼树,并将该树存入某文件;
(2)编码 利用建好的赫夫曼树对各字符进行编码,用列表的形式显示在屏幕上,并将编码结果存入另一文件中;
(3)解码 利用保存的赫夫曼编码,对任意输入的0,1序列能正确解码;
-Section for any input in English, prepared for each character the corresponding Huffman code and use the encoding sequence for any input decode 0,1. Basic requirements: a complete system should have the following functions: (1) initialize a read from the terminal and English characters, the frequency statistics for each character, the establishment of Huffman tree and the tree into a document ( 2) encoding the Huffman tree is built using the character encoding, using the list displayed on the screen, and coding the results into another file (3) decoding the Huffman coding using saved on Any input can be correctly decoded sequence 0,1
基本要求:一个完整的系统应具有以下功能:
(1)初始化 从终端读入一段英文字符,统计每个字符出现的频率,建立赫夫曼树,并将该树存入某文件;
(2)编码 利用建好的赫夫曼树对各字符进行编码,用列表的形式显示在屏幕上,并将编码结果存入另一文件中;
(3)解码 利用保存的赫夫曼编码,对任意输入的0,1序列能正确解码;
-Section for any input in English, prepared for each character the corresponding Huffman code and use the encoding sequence for any input decode 0,1. Basic requirements: a complete system should have the following functions: (1) initialize a read from the terminal and English characters, the frequency statistics for each character, the establishment of Huffman tree and the tree into a document ( 2) encoding the Huffman tree is built using the character encoding, using the list displayed on the screen, and coding the results into another file (3) decoding the Huffman coding using saved on Any input can be correctly decoded sequence 0,1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
huffman\decode-source.txt
.......\decode-target.txt
.......\decode.cpp
.......\decode.exe
.......\encode.cpp
.......\encode.exe
.......\Readme.txt
.......\source.txt
.......\target.txt
huffman
.......\decode-target.txt
.......\decode.cpp
.......\decode.exe
.......\encode.cpp
.......\encode.exe
.......\Readme.txt
.......\source.txt
.......\target.txt
huffman