Usage (algorithm 1, AVR).
This algirithm designed for physical measurements data first,
but I made it universal, so it compress any data that have anykind of
Algorithm works extremelly fast (50 us for Initialization and
about 1 us per compressed byte on Atmel 10 MHz processor) - there is
no cycles or recursion in algorithm, except initialization cycle.
This algorithm don't give high compression ratio, no more, than 3
Of course, there are realizations of this algorithm in C and in AVR ASM.
It is possible to compress data in microcontroller and to decompress it on PC.
Usage (algorithm 2).
This algorithm able to compress with ratio 12 and even more. It is
faster (sometimes few times faster), than ZIP. Good for databases,
text, music, graphic.
Originally this compression algorithm used in big programming product
(that is database system like Oracle is) to compress (when making
export) and decompress (when making import) data.
I'm the author of this code, so I changed it a little and translated it
to Turbo Pascal. There are versions for Turbo Pascal, Borland C, C++,
Visual C++ (or any other C++, like gcc). I'm sure that there are no bugs in it.
Compression algorithms sources(great for commercial projects algorithm for PC and algorithm for AVR) keywords:
This program is no longer available for download from our website. Please contact the author of Compression algorithms sources(great for commercial projects algorithm for PC and algorithm for AVR) at for any additional information.