Compressing the challenge enwik8 which is the first 100MB of Wikipedia using LZW(Lempel–Ziv–Welch) using c++.
- Input file size : 95.3 MB
- Output file size : 34 MB
- Compression ratio : ~2.8
- Encoding time : ~30 sec
- Decoding time : ~10 sec
- Clone the repository
$ git clone https://github.com/AbdallahHemdan/enwik8-compression.git
-
Open the solution and run the following commands as arguments
- Encoding and decoding
$ encode|decode file_path
$ encode|decode ./enwik8.txt
- Encoding only
$ encode file_path
$ encode ./enwik8.txt
- Decoding only
$ decode
This software is licensed under MIT License, See License for more information ©AbdallahHemdan.