Skip to content

Fast implementations of the so-called 'Lempel-Ziv 76' complexity measure

Notifications You must be signed in to change notification settings

benjaminfrot/LZ76

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fast implementations of the so-called 'Lempel-Ziv 76' complexity measure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published