Overview

HTTPS SSH

LZW

Implementation of Lempel-Ziv-Welch algorithm in Fortran.

Description

I developed this program for a college homework. This program is able to compress and decompress any file using the Lempel–Ziv–Welch (LZW) algorithm.

Installation

  1. Clone the source code

    hg clone https://bitbucket.org/kuraiev/lzw

  2. Build the source

    cd src
    make

Execution

To compress the raw.txt file, saving as the compressed file coded.huff, proceed as follows

./lzw e raw.txt coded.lzw

To recover/decompress the original data in raw.txt file, use the d option

./lzw d coded.lzw raw_recovered.txt

License

This project is released under GNU GPL version 2.

Contact

Please send all comments, questions, reports and suggestions (especially if you would like to contribute) to sawp@sawp.com.br.