中文说明:用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]