Skip to content

Experimental Hrust compressor with 8bits buffer. Forked from https://gitlab.com/eugene77/optimal-hrust-compressor

License

Notifications You must be signed in to change notification settings

uniabis/hrust_8bits_buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimal Hrust Compressor

Hrust is a data compressor on ZX Spectrum platform. Here is compressor implementation for PC in C language.

The major thing about this implementation is that it achieves maximum compression possible for Hrust compression scheme.

There are two compressors: for Hrust 1.3 and Hrust 2.1 formats.

About compression algorithm

To find the smallest compressed sequence of all possible, we solve optimization problem using Dynamic Programming.

For finding sequence matches, we use Z algorithm.

The resulting algorithm complexity is O(n2).