I am doing a project where I compare different types of Text compression methods such as Huffman and Arithmetic for both static and adaptive form. I make a probability table for both using the number of occurrence of each letter in the text. Now, for adaptive form, the receiver does not need the Probability table but for the static form, we need to transmit this probability table as well to the receiver for decoding the message. Now this storing of the table will need some extra bits, which should be taken into account while comparing.
So my question here is:
- What is the best solution for storing the probability table (in a file).
- What is the minimum number of bits required to do that? (I know it depends on the text, but is there some way to find the minimum bits required to store the table).
Thank you very much.