Skip to content

File compression with Huffman encoding with paralelisation utilizing OpenMP

License

Notifications You must be signed in to change notification settings

CrusaderSVK287/Huffman-encoder-OpenMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huffman-encoder-OpenMP

Huffman encoder paralelization with OpenMP. Includes a decoder, but only sequential.

Why?

Encoder with OpenMP was part of a university assignment on parallel programming. I decided to also write a decoder for fun. Also, why not?

Usage

Usage is simple
./huffman filepath
to encode. This produces filepath.huff file, you can decode it with
./huffman -d filepath
I also provided means to control how many threads are being used, by deafault, the maximum available threads on the CPU will be used. To change the number of threads, use the -n flag like this:
./huffman -n 4 filepath
This will run the encoder on 4 threads. The flag has no effect on decoder

How to compile.

Just clone the repository and provided you have

  • make
  • g++ compiler
  • openmp library you can just run make command and the compiled binary should be in /bin directory

About

File compression with Huffman encoding with paralelisation utilizing OpenMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published