登录
首页 » Visual C++ » DS4

DS4

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

  • ivsdk
    非常好的视频压缩filter,可以实现mpeg2 mpeg1的视频压缩,用户可以自己选择码率(very good video compression filter can achieve mpeg1 mpeg2 video compression, Users can choose Rate)
    2006-08-10 15:58:10下载
    积分:1
  • Jepg2000的
    Jepg2000的压缩解压(Jepg2000 compression decompression)
    2020-07-09 14:48:55下载
    积分: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
  • FDR-COMPRESS
    一种改进的方案,它针对硬故障集的特点利用指示频率连续长度码(FDR码)进行二次编码压缩。该方法充分利用测试集中无关位较多而测试模式之间变化位较少的特征,应用贪心算法对预先计算的测试集进行了重新排序,尽可能的使相邻的向量间具有最少的不同位,排列成一个最佳的差分向量序列,然后应用FDR码对差分向量序列进行编码,最后对压缩结果重新分块,按照一次压缩的流程进行二次压缩。在解压时,使用片上解压电路解压,能高效地还原出原测试集。最后通过对Soc部分标准电路硬故障集的测试结果显示,本方案具有较好的压缩率。(a new improved method was proposed in the paper,the method using Frequency-Directed Run-length(FDR codes)coding for the twice aimed at hard-fault. It fully takes advantage of the characters that there are many don’t-care bits in the test set but a few different bits between the test patterns, Then it applies the greed calculate way to sort the precomputed test sets and make the close together vector have the least different sites possibly. It uses the FDR codes to coding the vectors,then blocks the results and uses the FDR codes to compress for the second time. Decompression used of on-chip circuit extract unpack,it will be deoxidize the original test efficient.using the hard-fault to compress and the experimental results prove that the improved coding method of this paper has the better compression ratios has been proved at last. )
    2009-05-12 14:32:23下载
    积分:1
  • Jpeg
    视音频课程作业,对视频抽帧,对单张图片进行yuv420采样、DCT变化、量化以及反量化、IDCT变化(Jpeg Encoding & Decoding)
    2017-12-15 11:25:46下载
    积分:1
  • gczh
    工程之间的转换 主要针对 05 和08 希望对大家有帮助(Projects aimed at the conversion between 05 and 08 We want to help)
    2010-02-24 10:51:27下载
    积分:1
  • cockroach
    用于对图像的huffman编解码,创建了图像界面,按照提示操作(Huffman codec used on the image to create a graphical interface, follow the prompts)
    2012-05-29 12:45:47下载
    积分:1
  • xinxi
    哈夫曼编码,基于MFC开发。哈夫曼编码为熵编码中的最佳方法之一,广泛用于各种数据压缩技术中。-Huffman coding, based on the MFC. Huffman coding for entropy coding one of the best ways, for a wide variety of data compression technology.
    2011-07-12 10:33:01下载
    积分:1
  • zip
    压缩与解压缩类;压缩文件至.zip包内,增加文件至.zip包内,及解压缩相关操作。(zip and unzip。)
    2013-10-14 10:16:38下载
    积分:1
  • CST_Cversion
    基于类函数形函数的参数化建模方法,适用于气动设计和优化(Class/Shpae Transform method)
    2020-12-09 16:59:19下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载