Static / Dynamic (adaptive) Huffman compression using OCaml
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENCE
README.md

README.md

Static / Dynamic (adaptive) Huffman compression in OCaml

This program illustrates how to use the Huffman static and dynamic methods to compress/uncompress files using OCaml.

( Note: the code is barely purely functional. If you intend to learn functional programming, look for better example on the web).

Building and testing the code

To build the program:

$ make

To test the program:

$ make test file=/path/to/file/on/file/system

This directive tests the program by compressing the file file using static and dynamic compression and decompression. It shows the time spent on each operation and if any errors occur between the compressed/uncompressed files, the diff command is used to check for such anomalies.

Distributed under the BSD license. (See LICENSE for more information.)