I made the Huffman code algorithm... and made the tree as it should be made..
The problem comes how do I print the code from the tree.. Theoretically I know the code generation.. But how to implement in C++..
Using TC.
The following tree is constructed for this data
Alphabet : a | b | c | d | e | f
Frequency : 45 | 13 | 12 | 16 | 9 | 5
100 <----- root
/ \
/ \
a,45 55
/ \
/ \
25 30
/ \ | \
/ \ | \
c,12 b,13 14 d,16
/\
/ \
f,5 e,9
Thanks in Advance!!