Skip to content

RanieriSantos/huffman

Repository files navigation

Huffman Coding Algorithm

Introduction

// TODO

Compress/decompress text files using Huffman's coding.

Compiling

Assuming you have installed Maven, Java SE 13 and Git, we can follow these steps:

  1. Download the project and moves into the root directory

    git clone https://github.com/imns1ght/huffman && cd huffman/
    
  2. Compile and create .jar

    mvn package
    

    After that, the library huffman.jar it's located in target/.

  3. Create a symlink (shortcut) for the executable.

    ln -sf target/huffman.jar .
    

Usage

Assuming $ is the terminal prompt, you can use:

java -jar huffman.jar compress input.txt compressed.edz table.edt
java -jar huffman.jar extract compressed.edz table.edt output.txt

Running tests

Just run as usual (assuming $ is the terminal prompt):

./fastrun.sh

TODO

  • [ ]
  • [ ]
  • [ ]

Contributing

You are welcome! Create the pull requests.

For major changes, please, open an issue first to discuss what you would like to change.

Support

Authors and acknowledgment

Authors

License

MIT

About

Compress/decompress text files using Huffman's coding algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors