MATLAB Huffman


Category:
Scripts
Matlab
Requirements:
Seller:
Price:
-
System:
Rating:
4.6
License:

Description - MATLAB Huffman



[CODE,COMPRESSION]=HUFFMAN5(P) P is the probability (or number of occurences) of each alphabet symbol CODE gives the Huffman code in a String format of ones and zeros COMPRESSION gives the compression rate Huffman5 works by first building up a binary tree (eg p =[ .5 .2 .15 .15]) Such that the tree always terminates at an alphabet symbol and the symbols furthest away from the root have the lowest probability. The branches at each level are labeled 0 and 1. For this example CODE would be 1 00 010 011 and the compression rate 1.1111



More in Matlab-MATLAB Huffman

Huffman Code Compression Rate Rate Huffman5 Works