简单霍夫曼编码我要分享

Simple Huffman coding

编码 霍夫曼 简单

关注次数: 455

下载次数: 1

文件大小: 1.33 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:用matlab编写实现霍夫曼编码,该程序为2进制霍夫曼编码。输入一个数组,数组元素为信源概率,按照此概率进行霍夫曼编码,按一定顺序输出。例如: Input symbol probability distribution:[0.3,0.35,0.2,0.1,0.04,0.005,0.005]


English Description:

Using MATLAB writing achieved Huffman coding, the program for 2-ary Huffman coding. Enter an array, array element source probability, this probability for Huffman coding, and according to a certain order. For example:Input symbol probability distribution:[0.3,0.35,0.2,0.1,0.04,0.005,0.005]


代码预览