文件名称:HuffmanTree
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-06-21
- 文件大小:
- 6.22mb
- 下载次数:
- 0次
- 提 供 者:
- Pe***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该系统应具有以下功能:
(1) I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2) E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3) D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4) P:打印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。
(5) T:打印哈夫曼树(Tree printing)。将已在 中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。
-The system should have the following features: (1) I: initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, and save it in the file hfmTree in. (2) E: encoding (Encoding). Has been built using the Huffman tree (if not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then putting the result in the CodeFile file. (3) D: decoding (Decoding). Huffman tree has been built using the file CodeFile the code will be decoded, the result is stored in the file TextFile. (4) P: Printing code files (Print). CodeFile in a compact format the document displayed on the terminal, one per line 50 code. While this character in the form of written documents CodePrin encoded file in. (5) T: Print Huffman tree (Tree printing). Would have been in the Huffman tree in an intuitive way (tree or recessed table form) displayed on the terminal, but this form of characters written to the file
(1) I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2) E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3) D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4) P:打印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。
(5) T:打印哈夫曼树(Tree printing)。将已在 中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。
-The system should have the following features: (1) I: initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, and save it in the file hfmTree in. (2) E: encoding (Encoding). Has been built using the Huffman tree (if not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then putting the result in the CodeFile file. (3) D: decoding (Decoding). Huffman tree has been built using the file CodeFile the code will be decoded, the result is stored in the file TextFile. (4) P: Printing code files (Print). CodeFile in a compact format the document displayed on the terminal, one per line 50 code. While this character in the form of written documents CodePrin encoded file in. (5) T: Print Huffman tree (Tree printing). Would have been in the Huffman tree in an intuitive way (tree or recessed table form) displayed on the terminal, but this form of characters written to the file
(系统自动生成,下载前可以参看下载内容)
下载文件列表
哈夫曼编译码\Debug\哈夫曼编译码.exe
............\.....\哈夫曼编译码.ilk
............\.....\哈夫曼编译码.pdb
............\ipch\哈夫曼编译码-ded3779c\哈夫曼编译码-65c63503.ipch
............\哈夫曼编译码\CodeFile.txt
............\............\CodePrin.txt
............\............\Debug\CL.read.1.tlog
............\............\.....\CL.write.1.tlog
............\............\.....\link.read.1.tlog
............\............\.....\link.write.1.tlog
............\............\.....\mt.read.1.tlog
............\............\.....\mt.write.1.tlog
............\............\.....\program.obj
............\............\.....\vc100.idb
............\............\.....\vc100.pdb
............\............\.....\哈夫曼编译码.exe.intermediate.manifest
............\............\.....\哈夫曼编译码.lastbuildstate
............\............\.....\哈夫曼编译码.log
............\............\hfmTree
............\............\hfmTree.txt
............\............\huffman.h
............\............\input.txt
............\............\program.cpp
............\............\TextFile.txt
............\............\ToBeTran.txt
............\............\TreePrint.txt
............\............\哈夫曼编译码.vcxproj
............\............\哈夫曼编译码.vcxproj.filters
............\............\哈夫曼编译码.vcxproj.user
............\哈夫曼编译码.sdf
............\哈夫曼编译码.sln
............\哈夫曼编译码.suo
............\要求.docx
............\ipch\哈夫曼编译码-ded3779c
............\哈夫曼编译码\Debug
............\Debug
............\ipch
............\哈夫曼编译码
哈夫曼编译码