Chi H. - 2015-01-02 12:57:26 -
In reply to message 1 from Zylla
Hi,
this one was a test from an interview. It was for text compression. So, no bitmap compression. But you might interested in the algorithm it uses an optimize rle and such it needs a special character to mark compressed sequence. For example aabb is compressed to aabb and NOT to a2b2 because its not smaller. The same is true for single character aaabbc is compressed to a3b2c and NOT a3b2c1. My algorithm can compress text and numbers. A special character from the code is used to mark other special characters in the compressed code. In the code you can choose any character you want. I hope it helps!
Best regards,
C.H.