
Dynamic huffman source code ?????
Quote:
>I need some guide in writing program on dynamic huffman code. Could
>somebody pls help . Can you pls tell me where can I get a copy of this
>source code for reference. Cheers
THIS IS A TEST
Letter count
T - 3
H - 1
I - 2
S - 3
[] <blank> - 3
A - 1
E - 1
T(3) S(3) [](3) I(2) H(1) A(1) E(1)
T(3) S(3) [](3) I(2) H(1) (2)
/ \
A(1) E(1)
T(3) S(3) []3 I(2) (3)
/ \
H(1) (2)
/ \
A(1) E(1)
T(3) S(3) (5) (3)
/ \ / \
[]3 I(2) H(1) (2)
/ \
A(1) E(1)
(6) (5) (3)
/ \ / \ / \
T(3) S(3) []3 I(2) H(1) (2)
/ \
A(1) E(1)
(6) (8)
/ \ / \
T(3) S(3) (5) (3)
/ \ / \
[]3 I2 H1 (2)
/ \
A(1) E(1)
(14)
/ \
/ \
(6) (8)
/ \ / \
T(3) S(3) (5) (3)
/ \ / \
[]3 I2 H1 (2)
/ \
A(1) E(1)
Letter code
T 00
H 110
I 101
S 01
[] <blank> 100
A 1110
E 1111
MSG Total
T 00 2
H 110 5
I 101 8
S 01 10
100 13
I 101 16
S 01 18
100 21
A 1110 25
100 28
T 00 30
E 1111 34
S 01 36
T 00 38 Bits instead of 3 * 14 = 42
--
All opions expressed are mine.