Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 786 Bytes

File metadata and controls

17 lines (13 loc) · 786 Bytes

It is a text file, script file Compression and Decompression Program which uses Huffman Algorithm for Compression and Decompression

For Compression - 1.Run compress.exe or compile source code 2.Enter name of file to compress 3.It generates the compressed file by (.cmp) and code.txt

**Note - Compressed File generated after compression will have .cmp extension amd Code.txt which contains character and their huffmanCodes which later helps in decompressing

For Decompression - 1.Run decompress.exe or compile source code 2.Enter Code.txt file to show the huffmandecodingtree 3.Enter same file name with .cmp extension e.g. - abc.cmp 4.Decompressed file will be generated with name Decompressed.txt

Result - On average every text file get compressed upto 50 % to 60 % of total size.