登录
首页 » Visual C++ » DS4

DS4

于 2015-06-06 发布 文件大小:101KB
0 136
下载积分: 1 下载次数: 2

代码说明:

  设电文字符集D及各字符出现的概率F如下: D={a,b,c,d,e,f,g,h}(字符数n=8) F={5,29,7,8,14,23,3,11}( ) 编写完成下列功能的程序: ①构造关于F的Huffman树; ②求出并打印D总各字符的Huffman编码。 程序结构: 类型说明; 构造Huffman树的函数:Huffman_tree(H[m+1]); 求Huffman编码的函数:Huffman_code(code[n+1]); main() { 变量说明; 输入字符集D及频率F; 调用Huffman_tree(H); 调用Huffman_code(code); 打印编码; Y 继续? N 停止 }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • cccc
    输入两个正整数m和n,求其最大公约数和最小公倍数(Enter two positive integers m and n, can seek the common denominator and least common multiple)
    2010-05-11 21:19:20下载
    积分:1
  • PhucDo_PhanLop
    Docuemtns,Hot Documents
    2009-12-26 14:25:16下载
    积分:1
  • 01
    说明:  vc 典型模块 是一个图像压缩显示的程序(vc typical module is shown in an image compression program)
    2009-11-24 21:08:29下载
    积分:1
  • ZLibNetWrapper
    Deflate压缩算法源码,使用C++编写(Deflate compression algorithm source code, the use of C++ to prepare)
    2009-03-22 14:42:52下载
    积分:1
  • 01
    说明:  规划不放过该法规和法规的规定国的风格的风格的风格地方鬼地方法国风格和法规和法国(发广告部分)
    2009-11-22 19:20:47下载
    积分:1
  • RecordManagementSystem-devoleped-by-VC
    说明:  压缩包包括完整的实例代码,可供大家研究和学习,内附说明!(Archive includes a complete example code, for all research and study, included instructions!)
    2010-04-21 15:07:24下载
    积分:1
  • lzw_soft
    lzw压缩解压算法源码(The soruce of LZW compression algorithm)
    2020-06-26 13:00:01下载
    积分:1
  • GZIP例子
    利用gzip.dll解压http请求返回的内容。内附gzip.dll。参考网上资料自己写的VB6工程源码。自己编译EXE的时候注意把gzip.dll释放到exe所在目录。(Use gzip.dll to decompress the content returned by HTTP request. Gzip.dll is attached. Refer to the VB6 project source code written by myself.)
    2020-06-22 07:00:02下载
    积分:1
  • HuffMan
    哈夫曼编码译码系统,设置发送者和接受者两个功能, 发送者的功能包括: ①输入待传送的字符信息; ②统计字符信息中出现的字符种类数和各字符出现的次数(频率); ②根据字符的种类数和各自出现的次数建立哈夫曼树; ③利用以上哈夫曼树求出各字符的哈夫曼编码; ④将字符信息转换成对应的编码信息进行传送。 接受者的功能包括: ①接收发送者传送来的编码信息; ②利用上述哈夫曼树对编码信息进行翻译,即将编码信息还原成发送前的字符信息。 (Huffman decoding system, set the sender and the recipient of two functions, the sender' s features include: (1) input to be transmitted character information ② statistical character information, the number of types of characters and characters the number of occurrences (frequency create a Huffman tree) ② According to the number of types of characters and their respective number of occurrences ③ use the Huffman tree to find the characters Huffman coding ④ character information into the corresponding coding information for delivery. The recipient of the features include: (1) to receive the coded information to the sender transmission ② above Huffman tree coded information to be translated, is about to coded information to restore the character information before sending.)
    2012-06-21 21:01:17下载
    积分:1
  • ya_shuo
    一个可以简单的压缩小程序,是利用游程编码原理(One can simply compress small program is the use of run-length coding theory)
    2014-12-18 14:06:52下载
    积分:1
  • 696524资源总数
  • 103904会员总数
  • 44今日下载