文件名称:ds_baogao
介绍说明--下载内容均来自于网络,请自行研究使用
哈夫曼编码与解码演示程序
1、 从初始界面中给出的信息选择相应功能;
2、 从终端读入字符集大小n,以及n个字符和n个权值。建立huffman树,并将它存于文件hfmtree.dat中
3、 利用已经建好的huffman树对文件tobetran.dat中的正文进行编码,然后将结果存入文件codefile.dat中;
4、 利用已经建好的huffman树将文件codefile.dat中的代码进行译码,结果存入文件textfile.dat中;
5、 将文件codefile.dat以紧凑格式显示在终端上,每行50个;
6、 将已在内存中的huffman树以直观的方式显示在终端上;
-Huffman encoding and decoding demo 1, from the initial information given in the interface to select the appropriate function 2, read from the terminal character set size n, and n and n characters of the right values. Huffman tree establishment, and it is stored in documents hfmtree.dat in 3, has been built using huffman trees tobetran.dat the document is encoded in the body, and then the results into a document in codefile.dat 4, has been built using huffman tree will be a good document codefile.dat decoding of the code, the result into the document in textfile.dat 5, in order to compact the file format codefile.dat displayed on the terminal, 50 per line 6, will have huffman tree in memory intuitive way to show that in the terminal
1、 从初始界面中给出的信息选择相应功能;
2、 从终端读入字符集大小n,以及n个字符和n个权值。建立huffman树,并将它存于文件hfmtree.dat中
3、 利用已经建好的huffman树对文件tobetran.dat中的正文进行编码,然后将结果存入文件codefile.dat中;
4、 利用已经建好的huffman树将文件codefile.dat中的代码进行译码,结果存入文件textfile.dat中;
5、 将文件codefile.dat以紧凑格式显示在终端上,每行50个;
6、 将已在内存中的huffman树以直观的方式显示在终端上;
-Huffman encoding and decoding demo 1, from the initial information given in the interface to select the appropriate function 2, read from the terminal character set size n, and n and n characters of the right values. Huffman tree establishment, and it is stored in documents hfmtree.dat in 3, has been built using huffman trees tobetran.dat the document is encoded in the body, and then the results into a document in codefile.dat 4, has been built using huffman tree will be a good document codefile.dat decoding of the code, the result into the document in textfile.dat 5, in order to compact the file format codefile.dat displayed on the terminal, 50 per line 6, will have huffman tree in memory intuitive way to show that in the terminal
(系统自动生成,下载前可以参看下载内容)
下载文件列表
数据结构实习11
..............\2006年暑期《数据结构》课程设计.doc
..............\codefile.dat
..............\file.dat
..............\hfmtree.dat
..............\HUFFMAN.C
..............\textfile.dat
..............\ToBeTran.dat
..............\treeprin.dat
..............\_cprint.c
..............\_deco.c
..............\_enco.c
..............\_init.c
..............\_tprint.c
..............\数据结构课程设计.ppt
..............\新建 文本文档.txt
..............\设计说明 .doc
..............\2006年暑期《数据结构》课程设计.doc
..............\codefile.dat
..............\file.dat
..............\hfmtree.dat
..............\HUFFMAN.C
..............\textfile.dat
..............\ToBeTran.dat
..............\treeprin.dat
..............\_cprint.c
..............\_deco.c
..............\_enco.c
..............\_init.c
..............\_tprint.c
..............\数据结构课程设计.ppt
..............\新建 文本文档.txt
..............\设计说明 .doc