文件名称:wu
-
所属分类:
- 标签属性:
- 上传时间:2017-04-07
-
文件大小:3kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
利用最小堆编程实现给定权值集合下构造相应霍夫曼树的算法,并解决以下问题:
有一电文共使用五种字符a,b,c,d,e,其出现频率依次为4,7,5,2,9。
(1)构造对应的编码哈夫曼树(要求左子树根结点的权小于等于右子树根结点的权)。
(2)给出每个字符的哈夫曼编码。
(3)译出编码系列11000111000101011的相应电文。-With minimal programming stack to the next set of predetermined weights corresponding Huffman tree configuration algorithm, and solves the following issues: a common message using five characters a, b, c, d, e, frequency of occurrence order of 4,7 , 5,2,9. (1) the code corresponding to the Huffman tree structure (claim of the left subtree root node weights less right subtree root node). (2) give each character Huffman coding. (3) the corresponding translated code sequence 11000111000101011 the message.
有一电文共使用五种字符a,b,c,d,e,其出现频率依次为4,7,5,2,9。
(1)构造对应的编码哈夫曼树(要求左子树根结点的权小于等于右子树根结点的权)。
(2)给出每个字符的哈夫曼编码。
(3)译出编码系列11000111000101011的相应电文。-With minimal programming stack to the next set of predetermined weights corresponding Huffman tree configuration algorithm, and solves the following issues: a common message using five characters a, b, c, d, e, frequency of occurrence order of 4,7 , 5,2,9. (1) the code corresponding to the Huffman tree structure (claim of the left subtree root node weights less right subtree root node). (2) give each character Huffman coding. (3) the corresponding translated code sequence 11000111000101011 the message.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第五次上机作业孔令芝201511210132\five.h
................................\main.cpp
第五次上机作业孔令芝201511210132
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.