登录
首页 » Visual C++ » DS4

DS4

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

  • huffman
    Huffman编码,使用哈弗曼树生成前缀码,把输入的字符编码并把原字符解码(Huffman code and decode)
    2014-03-06 10:10:34下载
    积分: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
  • JPEG2000-library-source-code
    JPEG2000库源代码(最新的JPEG2000标准源代码)(JPEG2000 library source code)
    2012-12-03 21:32:19下载
    积分:1
  • compress11
    这是lzw算法源程序代码,纯c语言编程实现,希望对您有用。(lzw algorithm source code, pure c programming language, and I hope to you useful.)
    2006-10-28 11:42:08下载
    积分:1
  • e
    说明:  一个上课很好用的课件,是您编程的很好帮手(why)
    2009-03-27 08:41:54下载
    积分:1
  • Dezender4.3
    说明:  黑刀Dezender4.3简体中文版 黑刀Dezender4.3简体中文版 黑刀Dezender4.3简体中文版(Black knife Black knife Dezender4.3 Simplified Chinese Simplified Chinese version of Dezender4.3 Simplified Chinese version of the black knife Dezender4.3)
    2010-03-21 07:30:14下载
    积分:1
  • lzari算法
    这是一个基于LZARI算法的数据压缩的类.Haruhiko Okumura 于1989年7月4日用C语言写实现了这个算法.但是上面用到了一些全局或静态的变量,在MFC下用起来很不方便.作者把它改写成了一个C++类,使它可以方便的压缩和解压缩。(LZARI algorithm based on the type of data compression. Haruhiko SAP in 1989, July 4 C language daily wrote realization of this algorithm. But above uses some static or global variables, using the MFC which are very convenient. Authors rewrite it became a category C, it can be to facilitate the compression.)
    2005-03-06 13:01:17下载
    积分:1
  • sitesee
    网规网优之用,用于绘制基站扇区图,地理化显示基站方便工程师进行查看。(Net regulatory network optimization purposes, used to map the base station sector maps, geographic-based display base stations to facilitate engineers to view it.)
    2021-04-20 14:58:50下载
    积分:1
  • TestMQCoder
    JPEG里MQ算术编码测试程序 编解码器 C(MQ arithmetic coding in JPEG test procedure codec C)
    2020-12-06 09:19:22下载
    积分:1
  • Renderer
    this is renderer function
    2009-11-15 21:17:44下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载