毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

Huffman编译码程序的分析与设计-源代码+流程图 第2页

更新时间:2014-5-14:  来源:毕业论文
摘  要
这次课程设计是计算机工程专业第一个课程设计,主要培养我们利用所学的C语言和数据结构知识构造哈夫曼树并进行编码与译码,并且在文件中读写出来,达到为后续计算机专业课程做准备的目的。
对于n个带权的叶结点,可以构造出许多不同形态的二叉树,哈夫曼树就是其中带权路径长度(WPL)最小的一种,为使二叉树带权路径(WPL)最小,即需求在构造过程中使其权值越大的叶结点离根结点越近,权值越小的叶结点离根结点越远,通过对哈弗曼算法的应用,构造出哈夫曼树。将26个大写英文字母及空格的权值输入程序运行界面中,建立哈弗曼树,然后采用带双亲的孩子链表作为结点的存储结构,再对26个大写英文字母及空格进行编码和译码,本文来自辣.文,论-文·网原文请找腾讯3249.114 将程序运行结果显示在界面上,然后运用C语言中的所学的文件知识,利用fputc()、fopen()、fclose()等函数,将“THIS PROJECT IS MY FAVORITE”字符串以及其二进制编码以txt的形式读写到文件中,并保存在D盘内。利用哈夫曼树的算法,不仅可以传送大量的数据,而且可以大大提高数据信息的传送率,降低传送成本。KCNQ1和KCNH2 基因与家族性猝死的关系 -

关键字:哈夫曼树;二进制编码;二进制译码;文件流
Abstract
This course is designed to computer engineering specialty first course design, the main training we use the C language and learned data structure knowledge structure tree hoffmann and coding and decoding, and in the file reading and writing out, for the follow-up to the computer specialized curriculum the purpose of preparation.
With the right for n a leaf node, can build many different forms of binary tree, hoffmann tree is one with right path length (WPL) to be the smallest, making for a binary tree right path (WPL) with minimum, namely needs in the process of constructing the greater the value of the right to make its leaf nodes from the root node more close, and the smaller the weights of the leaf nodes from the root node more far, through the application of the algorithm to hover tempting mann, hoffmann is constructed tree. The capital letters and the metric Spaces input to run the program interface, establish) tree corner, then the parents of children with a watch chain storage structure of nodes, and then a 26 capital letters and Spaces for encoding and decoding, will run the program the result showed that in the screen, then using C language of the file learned knowledge, use fputc , fopen function, fclose, will "THIS PROJECT IS MY FAVORITE" string and the binary code to TXT form of reading and writing to file, and stored in a D a plate. Use hoffmann tree algorithm, not only can carry large amounts of data, and can greatly improve the data information transmission rate, reduce the transmission cost.
Keywords:Huffmantree; Binary code;Binary decoding;Document flow

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页

Huffman编译码程序的分析与设计-源代码+流程图 第2页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。