Skip to content

Textual files compression using Static Huffman and Lempel-Ziv algorithms

Notifications You must be signed in to change notification settings

Tjofil/Text_file_compression_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Textual files compression using Static Huffman and Lempel-Ziv algorithms

Generic badge

Summary

The goal of this project is to write a program that has the ability to compress a text file without pre-processing it. It does so, first by applying the LZW compression algorithm of variable dictionary size (initially 1024 locations) and then forwarding such output to the static Huffman algorithm input. The goal is also to compare the results with the commercial WinRar compression software. Particular attention is paid to sufficiently large files in which statistical features come to the fore.

Detailed implementation and technical informations can be found inside detailed documentation.

Some results and conclusions

The following table shows the results of the program when working with text files of size euqal to a couple of megabytes, downloaded from the Internet.

File Original size[KB] this.cpp - size[KB] WinRar - siize[KB]
world192.txt 2,416 1,344 702
bible.txt 3,953 1,815 1,149
E.coli.txt 4,530 1,182 1,294

About

Textual files compression using Static Huffman and Lempel-Ziv algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages