Home >

# huffman coding

• ## Determin Depth of Huffman Tree using Input Character pattern (or Frequency)?February 14

I'd like to as a variation on this question regarding Huffman tree building. Is there anyway to calculate the depth of a Huffman tree from the input (or frequency), without drawing tree. if there is no quick way, How the answer of that question was f

• ## how can i write binary bits into binary file in C?February 8

I am trying to implement Huffman encoding in C. I am done with the tree construction and obtained the codeword for each symbol as the algorithm proceeds. But now I am stuck with insertion of the codewords into binary files for the corresponding symbo

• ## Optimal code - Data CompressionFebruary 6

I got table like that: code: 000 | pi: 1 | letter: a code: 001 | pi: 3 | letter: b code: 100 | pi: 2 | letter: c code: 101 | pi: 4 | letter: d code: 11 | pi: 5 | letter: e code: 01 | pi: 6 | letter: f i need to prove that this code are optimal. how t

• ## Why can it still compile/run after changing locations of different parameters with different types?January 28

Last night I spent 1 hour to debug. I was writing a program of Huffman_coding. Part of my wrong code is blow: class HTree { public: HTree* left; HTree* right; int weight; char ch; HTree(){left = right = NULL; ch = '\0'; weight = 0;} HTree(HTree* l, H

• ## Read/Write bits for Huffman coding in javaJanuary 27

I have Huffman coding project that in first step we obtain code of each character depends on Huffman tree.I obtain code of each character for example : a = 01 , b= 101 , c = 111.these codes are String and i want to save them in a file with .cmp exten

• ## malloc: *** error for object: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debugApril 2

Can someone help me figure out where I'm getting this error. I know it's probably a double deletion or something like this. For the background this is an implementation of the huffman's tree as you can easily realize on wikipedia. CharCountNode class