登录
首页 » 算法 » 用matlab写的huffman编码程序

用matlab写的huffman编码程序

于 2022-01-21 发布 文件大小:1.07 kB
0 239
下载积分: 2 下载次数: 1

代码说明:

1)输入下面几种符号,并调用概率计算函数prob计算其出现的概率,初始为四棵不同的小二叉树;    a(10)   b(20)   c(30)   d(40)2)在1中得到的树里找到概率值最小的两棵树,将他们分别作为左、右子树连成一棵大一点的二叉树,该二叉树的概率值为两棵树概率值之和。2的做法,直到所有的符号都连入树中。

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

发表评论

0 个回复

  • photogrammetry Resection of the algorithm to achieve, through the importation of...
    摄影测量中后方交会算法的实现,通过输入测量数据可以算出交会点的小程序-photogrammetry Resection of the algorithm to achieve, through the importation of data could calculate the intersection of the small programs
    2022-04-01 21:10:21下载
    积分:1
  • the codes and solution for zoj 2210
    zoj 2210的代码和方法说明,个人原创 -the codes and solution for zoj 2210
    2022-03-21 00:59:08下载
    积分:1
  • 多元曲线分析
    多元曲线解析-交替最小二乘法,MCR-ALS-Multivariate Curve Analysis- alternating least squares method, MCR- ALS
    2023-08-01 01:45:03下载
    积分:1
  • 1602液晶电子钟
    应用背景可以做一个时钟,同时可以学习时钟芯片的通信和LCD1602的显示,从实用上体会单片机编程的乐趣关键技术通过使用DS1302时钟芯片保存时间,再由LCD1602显示时间
    2022-03-01 03:42:45下载
    积分:1
  • 在线签名鉴定,用AR实现算法和DTW算法实现,还包括一个比较综合的实例,对此方面研究的朋友有用处,这是官方书籍中附带的一个源程序。...
    在线签名鉴定,用AR实现算法和DTW算法实现,还包括一个比较综合的实例,对此方面研究的朋友有用处,这是官方书籍中附带的一个源程序。-On-line signature verification, using AR algorithm and DTW algorithm, but also includes a more comprehensive example of research in this area is useful friends, this is the official book accompanying a source.
    2022-05-08 06:18:27下载
    积分:1
  • 功能程序支持的功能是:罪,因为,谭,阿辛,ACOS,阿坦,口罗…
    函数程序中支持的函数有:sin,cos,tan,asin,acos,atan,exp,log,sign,pow-Function program support functions are: sin, cos, tan, asin, acos, atan, exp, log, sign, pow
    2022-01-23 10:48:43下载
    积分:1
  • pww图像特征提取算法
    目前最热门的图像特征提取算法,有取代sift和surf算法的趋势。
    2022-02-16 07:45:48下载
    积分:1
  • 机器学习算法,K-mean算法,python写的,还有测试数据
    本算法是利用K-mean算法(机器学习十大算法),对平面上的二维数据点进行聚类的算法,该算法可以运用在图像,和语音上。
    2022-05-24 16:25:08下载
    积分:1
  • 先由原始图像(任选)产生待恢复的图像;(产生方法如下:冲激 函数为 ,将原始图像与冲激函 数卷积产生模糊,然后再迭加均值为0,方差为8,16,32的
    先由原始图像(任选)产生待恢复的图像;(产生方法如下:冲激 函数为 ,将原始图像与冲激函 数卷积产生模糊,然后再迭加均值为0,方差为8,16,32的高斯 随机噪声而得到一组待恢复的图像 ; -By the original images (optional) have to be the restoration of the image (the method is as follows: impulse function, the original image with the impulse function arising convolution fuzzy, and then stacking the mean is 0, the variance for the 8,16 , 32 the Gaussian random noise has been a group of images to be restored
    2022-10-15 12:35:03下载
    积分:1
  • 1, one dollar three regression equations CubicMultinomialRegress.cs equation mod...
    一、 一元三次回归方程 CubicMultinomialRegress.cs 方程模型为Y=a*X(3)+b*X(2)+c*X(1)+d public override double[] buildFormula() 得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是d,c,b,a。 以后所述所有模型的系数存放均与此相同(多元线性回归方程除外)。 public override double forecast(double x) 预测函数,根据模型得到预测结果 public override double computeR2() 计算相关系数(决定系数),系数越接近1,数据越满足该模型。 -1, one dollar three regression equations CubicMultinomialRegress.cs equation model for Y = a* X (3)+ B* X (2)+ C* X (1)+ Dpublic override double [] buildFormula () get coefficient array, store order and model coefficients contrary, that is, the array is followed by the value of coefficient d, c, b, a. After all the model described in the coefficient of storage are the same (except for multiple linear regression equation). public override double forecast (double x) prediction function, according to the results of model prediction public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the dat
    2022-01-26 07:28:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载