Skip to content

parasgoyal12/LZWEncodeDecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LZW Compression in c++

Implemented LZW Compression Algorithm in C++. Takes input from stream and writes coded output in text mode. Instructions to run:

  1. Compile using the following command g++ lzw.cpp -o lzw -O3
  2. Usage:
    1. lzw [-max max_code] -c input output #compress file input to file output
    2. lzw [-max max_code] -c - output #compress stdin to file otuput
    3. lzw [-max max_code] -c input #compress file input to stdout
    4. lzw [-max max_code] -c #compress stdin to stdout
    5. lzw [-max max_code] -d input output #decompress file input to file output
    6. lzw [-max max_code] -d - output #decompress stdin to file otuput
    7. lzw [-max max_code] -d input #decompress file input to stdout
    8. lzw [-max max_code] -d #decompress stdin to stdout

      max_code denotes the maximum size of the dictionary used for compression and is by default set to 32767.

Check this link for deatiled explanation on working of the algorithm.

About

LZW Encoding and Decoding using C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages