Huffman coding Issue
-
Hi, I'm coding huffman and have a doubt.I'm writing the preorder version of my huffman tree in term of 0's and 1's as the header of my encoded file.How do I know when my header ended and my encoded data started?
aksgh wrote:
How do I know when my header ended and my encoded data started?
A binary tree whose leaves are the given characters of the file can do this.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi, I'm coding huffman and have a doubt.I'm writing the preorder version of my huffman tree in term of 0's and 1's as the header of my encoded file.How do I know when my header ended and my encoded data started?