搜索资源列表
哈夫曼译码
- [基本要求] 一个完整的系统应具有以下功能: (1)I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。 (2)E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。 (3)D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件T
用于文件压缩的huffman算法
- 用哈夫曼编码编的压缩和解压缩的程序的源代码,在网上选的。-encoded using Huffman compression of the program's source code, on-line election.
04051b33刘奏
- 一个哈夫曼算法.具体题目如下: 题目要求:1)建立一正文文件(本程序中建立的文件名文test.txt),向其中输入字符(本程序中可输入任意ASCII值) 2)通过哈夫曼算法求出文件中字符的相应编码 3)建立一与正文文件(test.txt)对应的编码文件(本程序中为bainma.txt)-a Huffman algorithm. Specific topics are as follows : Subject : 1) the establishment of a text document (t
5
- 1.C或 C++; 2.从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树并将它存于文件hfmTree中.将已在内存中的哈夫曼树以直观的方式(比如树)显示在终端上; 3.利用已经建好的哈夫曼树(如不在内存,则从文件htmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中,并输出结果,将文件CodeFile以紧凑格式先是在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrint中。 4.利用已建好的哈夫曼树将文件
WindowsFormsApplication1
- 实现哈弗曼编码及其压缩。对一个文本文件中的字符进行哈夫曼编码,生成编码文件(后缀名.cod);反过来,可将一个编码文件还原为一个文本文件(.txt)。-Encoding and compression to achieve Hafu Man. A text file on the characters in the Huffman code, generate code files (suffix. Cod) in turn, can restore an encoded file as a
HUffman
- 实现哈弗曼编码的C语言程序,输入字符及权值完成编码-C language program, the Huffman coding input characters and weights encoded
hafuman
- 哈夫曼树编码译吗程序,可读取文件进行编码,也可读取文件进行译码 并且打印出来-Huffman coding and decoding programs, can read the files are encoded, decodes the file can be read and printed out