Skip to content

kosiachenko/HuffmanCompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

HuffmanCompressor

File compressor/decompressor program using Huffman encoding algorithm. Written in C++

Purpose

This program will illustrate the usage of Huffman encoding, heaps, and priority queues. It will also require a good factoring design.

Part I: Compress

Create a program called Compress which takes as an argument a file, filename. The program will create a file, filename.huf, which contains a compressed version of the file. The program should use the Huffman encoding to compress the file. You will do the encoding at the character level.

Part II: Expand

Create a program called Expand which takes as an argument a file which has been encoded by your part I, filename.huf. This program will create a file, filename.huf.puf, which decodes and uncompresses the file.

If you run these commands:

  • Compress myFile
  • Uncompress myFile.huf

Then myFile and and myFile.huf.puf should be identical.

About

File compressor/decompressor program using Huffman encoding algorithm. Written in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published