Skip to content

A file compression tool that implements BWT, MTF, LZW algorithms

License

Notifications You must be signed in to change notification settings

Etshawy1/Bzip2-modified-Compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bzip2 modified algorithm

A file compression tool that implements BWT, MTF, LZW algorithms.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

you need to have g++ compiler and make installed on your machine.

Building the code

enter the following commands

make

Usage

Encoding Usage: {Algorithm} -e infile outfile
Decoding Usage: {Algorithm} -d infile outfile

where Algorithms supported are {bwt, mft, lzw, combo}
combo does (bwt then mft then lzw) for encoding and reverse order for decoding

Example

./bin/main combo -e enwik8 encoded.bin

./bin/main combo -d encoded.bin decoded.txt

License

Licensed under the MIT License.

Acknowledgments

I used the help of this research paper:

Kärkkäinen, Juha & Sanders, Peter & Burkhardt, Stefan. (2006). Linear work suffix array construction. J. ACM. 53. 918-936. 10.1145/1217856.1217858.

to implement the suffix array for BWT in O(n) instead of other easier solutions like O(nlogn) as the algorithm is used for files around hudreds of megabytes which would take much time.

About

A file compression tool that implements BWT, MTF, LZW algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published