adaptive-compression

What is the best compression algorithm that allows random reads/writes in a file?

What is the best compression algorithm that allows random reads/writes in a file? I know that any adaptive compression algorithms would be out of the question. And I know huffman encoding would be out of the question. Does anyone have a better compression algorithm that would allow random reads/writes? I think you could use any compr...

Segmentation Fault - Adaptive Huffman Tree

I am trying to implement the adaptive huffman code, but while trying to build the tree i get a segmentation fault when executing the code at line "currentNYT->lchild = newNYT;" in addnode() function. Could anyone please help me out? It might be something simple i'm not aware of. didn't use C for a while now. //variable and type declara...