登录
首页 » Visual C++ » DS4

DS4

于 2015-06-06 发布 文件大小:101KB
0 139
下载积分: 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 个回复

  • MyUnzip
    解压ZIP格式的文件,VC++写的,完全可用的,希望你能喜欢。(Extracting ZIP format file write the VC++, completely available, hope you like it.)
    2013-04-26 20:54:11下载
    积分:1
  • VC_programming_LZARI_classic_code_compression_algo
    VC编程实现LZARI压缩算法经典代码VC programming LZARI classic code compression algorithm (VC programming LZARI classic code compression algorithm )
    2010-09-09 11:25:30下载
    积分:1
  • jpeg_decoder_play
    基于tinyjpeg的jpeg解压缩程序,可解码jpeg数据为YUV分量数据(Based Solutions tinyjpeg jpeg compression program, you can decode jpeg data to YUV component data)
    2015-08-20 16:23:30下载
    积分:1
  • The-Hoffman-code
    利用Huffman编码方式对一段文字进行编码和解码。哈夫曼编码是可变字长编码(VLC)的一种。(Using the Huffman encoding method for encoding and decoding of a paragraph of text. Huffman code is a variable length coding (VLC) is a kind of.)
    2015-01-27 15:30:06下载
    积分:1
  • arithmetic
    有关算术编码对文本压缩的程序在c++环境中实现(about arithmetic compressed)
    2013-11-28 23:19:16下载
    积分:1
  • gczh
    工程之间的转换 主要针对 05 和08 希望对大家有帮助(Projects aimed at the conversion between 05 and 08 We want to help)
    2010-02-24 10:51:27下载
    积分:1
  • ewmark
    newmark-b法的简要程序,供大家使用(newmark-b)
    2010-03-06 12:49:10下载
    积分:1
  • OpenGLdevelopment
    压缩包中包含了gl.h,glaux.h,glext.h,glui.h,glut.h等头文件以及对应的库文件。还有对应的配置方法。(Compression package contains gl.h, glaux.h, glext.h, glui.h, glut.h Header Files and corresponding library file. There are corresponding configuration.)
    2020-12-14 14:49:13下载
    积分:1
  • CArcExt_demo
    加密、压缩(The Examples of Encrypt and Compression)
    2021-03-03 08:29:33下载
    积分:1
  • huffman
    Huffman编码,使用哈弗曼树生成前缀码,把输入的字符编码并把原字符解码(Huffman code and decode)
    2014-03-06 10:10:34下载
    积分:1
  • 696522资源总数
  • 104029会员总数
  • 31今日下载