Page 1 of 1

huffman coding

Posted: Sat Dec 27, 2003 5:21 am
by Ozguxxx
Hey everbody, I wonder while huffman coding some byte stream is it logical to take each byte as a symbol OR is it logical to take some word or dword patterns as symbols OR do I have to mix them so that some symbols are bytes, some are words... etc? Thanx.

Re:huffman coding

Posted: Tue Dec 30, 2003 11:10 am
by Tim
Either is good. I think your question is, "does each symbol have to be the same length?". No, but if your symbols are different lengths, it makes your encoding algorithm more complex.