Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 540 Bytes

File metadata and controls

16 lines (13 loc) · 540 Bytes

Arithmetic coding

C++ implementation of arithmetic coding algorithm based on algorithm proposed in article: Arithmetic Coding for Data Compression by Ian H. Witten, Radford M. Neal, John G. Cleary (1987).Communications of the ACM. Volume 30. Number 6. 520-540pp.

Usage

make
./arithm-coding e <input_file> <output_file>   # encode (compress)
./arithm-coding d <input_file> <output_file>   # decode (decompress)

Example:

./arithm-coding e myfile.txt myfile.bin
./arithm-coding d myfile.bin myfile_decoded.txt