Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 932 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 932 Bytes

LZ76

Fast implementations of the so-called 'Lempel-Ziv 76' complexity measure. There is one C implementation and one Haskell implementation.

Input is a filename. That file contains one string/line. Strings are made of 0/1s. They are binary strings.
Output is printed on the screen : it is the complexity of each string.

The core complexity measure is from On the complexity of finite sequences, by Lempel-Ziv.

This efficient implementation of the exhaustive parsing is due to S Faul (http://www.mathworks.co.uk/matlabcentral/fileexchange/6886-kolmogorov-complexity)

Three flavours are available:

  • LZ76 : Return the length of the dictionnary after an exhustive parsing
  • Kolmogorov : Same as above but multiply by log_2(string length).
  • meanKolmogorov : Mean of Kolmogorov applied to the string and its reverse.

To build the C version: Go to the C directory and type make
To use : ./LZ76 filename