文件名称:yuesefuhuan
-
所属分类:
- 标签属性:
- 上传时间:2013-12-30
-
文件大小:67.17kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现以下功能:
⑴I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中;
⑵E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件Codefile中 ;
⑶D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中;
⑷P:打印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中;
⑸T:打印哈夫曼树(Tree Printing)。将已在内存中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。-The following functions: ⑴ I: initialization (Initialization). Read from the terminal character set size n, and n characters and n weights to build the Huffman tree, and save it in the file hfmTree in ⑵ E: encoding (Encoding). Been built using Huffman tree (eg not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then the result is stored in the file Codefile ⑶ D: decoding (Decoding). Use Huffman tree has been built CodeFile code file decoding, the result is stored in the file TextFile ⑷ P: Print code files (Print). The file CodeFile displayed on the terminal in a compact format, each row 50 code. At the same time this is written in the form of encoded characters in file CodePrin ⑸ T: Print Huffman tree (Tree Printing). Would have been in memory Huffman tree in an intuitive way (tree or recessed table form) is displayed on the terminal, but this character in the form of written documents TreePrint in the Huffman tree.
⑴I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中;
⑵E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件Codefile中 ;
⑶D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中;
⑷P:打印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中;
⑸T:打印哈夫曼树(Tree Printing)。将已在内存中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。-The following functions: ⑴ I: initialization (Initialization). Read from the terminal character set size n, and n characters and n weights to build the Huffman tree, and save it in the file hfmTree in ⑵ E: encoding (Encoding). Been built using Huffman tree (eg not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then the result is stored in the file Codefile ⑶ D: decoding (Decoding). Use Huffman tree has been built CodeFile code file decoding, the result is stored in the file TextFile ⑷ P: Print code files (Print). The file CodeFile displayed on the terminal in a compact format, each row 50 code. At the same time this is written in the form of encoded characters in file CodePrin ⑸ T: Print Huffman tree (Tree Printing). Would have been in memory Huffman tree in an intuitive way (tree or recessed table form) is displayed on the terminal, but this character in the form of written documents TreePrint in the Huffman tree.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yuesefuhuan/p8.cpp
yuesefuhuan/实验八 哈夫曼编_译码器.ppt
yuesefuhuan/实验八补充说明.ppt
yuesefuhuan
yuesefuhuan/实验八 哈夫曼编_译码器.ppt
yuesefuhuan/实验八补充说明.ppt
yuesefuhuan
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.