Some problem with results

Does someone khow why I have the same result of compression ratio with the using Shannon-Fano, Huffman or Arithmetic compression(coding).

I have 52% ratio for Shannon-Fano
52% ratio for Huffman
And 52% ratio for Arithmetic compression

But as I understand it should be like:

ratio fo Shannon-Fano >= ratio for Huffman > ratio for Arithmetic compression

Or my result is true?
Last edited on
you asked: Chef has some beans and some jars. How many beans should fit in each jar if he minimizes the airspace between them?

unless you work for codechef, you should elaborate with all the details that you know. What is in the files? Did you write the compression or use stock? If its stock, what options did you check? Did you check your % compression computation for a bug (are the actual written files all the same size?)? Did you check that you used the different algorithms (copy paste type error?). Etc. No code, no details about the files, ... it can't be answered like this.
Topic archived. No new replies allowed.