hufftext.txt
来自「哈夫曼编码」· 文本 代码 · 共 26 行
TXT
26 行
huffman.zip
This file contains some MatLab m-files (version 5.2)
which do complete Huffman Coding.
The files are:
hufflen
Based on probability (or number of occurences) of each symbol
the length for the Huffman codewords are calculated.
HL = hufflen(S);
huffcode
Based on the codeword lengths this function find the Huffman codewords
HK = huffcode(HL);
hufftree
make the Huffman-tree from the length of Huffman codes
Htree = hufftree(HL);
huff03
Huffman encoder/decoder, one or two vectors of non-negative
integers are Huffman coded.
y = huff03(x1, x2); % encoding
[x1, x2] = huff03(y); % decoding
Karl Skretting
Hogskolen in Stavanger (Stavanger University), Norway
karl.skretting@tn.his.no Homepage: http://www.ux.his.no/~karlsk/
2/2/98
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?