登录
首页 » Visual C++ » DS4

DS4

于 2015-06-06 发布 文件大小:101KB
0 424
下载积分: 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
  • 61IC_H4231
    PAV (H265) 是 音视频 压缩解压 协议,非常不同于H264/MPEG4,ZPAV (H265) 的基本算法 是 小波,多级树集合群,广义小波,数学形态小波,...... ZPAV (H265) 基本算法 : 1,图象与声音分解与合成 :小波 ; 2,图象与声音前处理 :小波子带零交叉降噪,目标纹理处理,语音处理 ; 3,速率控制 :小波子带熵速率控制 ; 4,量化与反量化 :小波子带熵量化与反量化 ; 5,低频分量和高频分量的降维 :小波子带邻域交叉降维 ; 6,运动矢量和量化表的分解与合成 :广义小波 ; 7,位面编码 :数学形态小波,多级树集合群,嵌入零树,位面降维 ; 8,位流编码 :算术编码,熵编码 ; 9,运动估计 :宏块最优决策,运动矢量预测 ; A,运动搜索 :钻石,大钻石,小钻石,方形 ; B,图象与声音后处理 :低通滤波,断点重构,宏块平滑 ; C,误码纠错 :矢量仿真,帧间仿真 。 (The PAV (H265) is the audio and video compression and decompression protocol, is very different from H264/MPEG4 ZPAV (H265) algorithm is a wavelet, multi-level tree collection group, and generalized wavelets, mathematical morphology, wavelet, ... ZPAV (H265) algorithm: 1, image and sound decomposition and synthesis: wavelet 2, image and sound processing: wavelet sub-band zero-crossing noise, target texture processing, speech processing 3, the rate control: wavelet subband entropy rate control 4, quantization and inverse quantization: Wavelet subband entropy quantization and inverse quantization 5, the dimensionality reduction of the low frequency component and high frequency components: the wavelet subbands neighborhood cross-dimensionality reduction 6, the decomposition and synthesis of the motion vector and quantization tables: generalized wavelet 7, bit-plane coding: the mathematical form of wavelet multi-level tree collection group, embedded zerotree, bit plane)
    2012-03-07 16:22:55下载
    积分:1
  • w_ipp-sample-data
    w_ipp-sample-data-compression,Intel,IPP函数库,文件数据快速压缩解压缩工具包。可以进行数据加密解密告诉处理( W_ipp-sample-data-compression, Intel, IPP library, file compression and decompression tool for fast data packet. You can tell the encryption and decryption of data processing)
    2011-10-07 19:43:38下载
    积分:1
  • cangkuguanli
    利用C++实现的插入,删除,增加接点等功能(The use of C++ Realized insert, delete, increase the contact and other functions)
    2008-12-29 21:36:59下载
    积分:1
  • bmp2jpeg&jpegcoding
    bmp转换为jpeg,jpeg压缩的源代码 程序用vc实现了bmp图片转换成jpeg图片(converted to jpeg bmp, jpeg compression source code procedures used vc realized bmp images converted into jpeg photos)
    2020-11-28 10:29:30下载
    积分:1
  • Huffman
    用C++的模板类实现的霍夫曼树及其编码过程,可视地展示霍夫曼树的结构。(Huffman tree and its encoding process to achieve C++ template class, visual display of the structure of the Huffman tree.)
    2012-06-26 14:52:57下载
    积分:1
  • Renderer
    this is renderer function
    2009-11-15 21:17:44下载
    积分: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
  • 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
  • RLE
    RLE是一个压缩的算法,里面有算法的C++程序实现。(RLE is a compression algorithm, there are algorithms C++ program)
    2012-05-30 18:38:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载