- 论坛徽章:
- 0
|
Exercise 2.67.
Exercise 2.67. Define an encoding tree and a sample message:
(define sample-tree
(make-code-tree (make-leaf 'A 4)
(make-code-tree
(make-leaf 'B 2)
(make-code-tree (make-leaf 'D 1)
(make-leaf 'C 1)))))
(define sample-message '(0 1 1 0 0 1 0 1 0 1 1 1 0))
Use the decode procedure to decode the message, and give the result.
======================================================
参考资料
Huffman never tried to patent an invention from his work. Instead, he concentrated his efforts on education. In Huffman's own words, "My products are my students."
David A Huffman
1925 - 1999
美国
信息论、编码专家
[ 本帖最后由 win_hate 于 2008-11-14 21:18 编辑 ] |
|