Skip to content
/ lz78 Public
forked from RoBaaaT/lz78

a toy Lempel-Ziv-78 implementation

License

Notifications You must be signed in to change notification settings

Lyeye/lz78

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lz78

A naive implementation of Lempel-Ziv-78 compression and decompression to help me understand the algorithm. Works well for small files. Performs badly for larger files in most cases because the dictionary size is not limited and therefore several bytes may be used for a dictionary entry reference.

Compilation

make

Usage

compression:

./lz78 c input compressed

decompression:

./lz78 d compressed output

The test.sh script compresses the source file lz78.cpp and then decompresses it again. It then verifies that the two files match using diff.

TODO

  • limit dictionary size
  • output with bit granularity

About

a toy Lempel-Ziv-78 implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.0%
  • Shell 2.4%
  • Makefile 1.6%