Coder Social home page Coder Social logo

ivan-guerra / huffman Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 212 KB

Huffman data compression

Home Page: https://programmador.com/posts/huffman-coding/

License: MIT License

CMake 12.36% Shell 7.88% C++ 79.75%
compression data-structures huffman-coding

huffman's Introduction

Huffman Coding

This project implements a command line utility that compresses and decompresses any kind of file using the Huffman Coding technique.

Building

To build the project locally, you will need the following libraries and tools installed:

  • CMake3.13+
  • C++ compiler supporting C++20 features

To build the project, change directory to the scripts/ directory and run build.sh

./build.sh

Note build.sh supports additional option flags for building the project docs (requires Doxygen) and unit tests. Run build.sh -h to see all the options.

After a successful build, you will find the binary installed to huffman/bin/huffman.

Program Usage

The huffman tool interprets three commands: help, compress, and decompress.

The help command prints program usage info:

huffman help

The compress command takes two arguments where the first is the file to be compressed and the second argument is the name of the output file:

huffman compress foo.txt foo.huf

The decompress command takes two arguments where the first argument is a file previously compressed by the huffman utility and the second argument is the name of the decompressed file:

huffman decompress foo.huf foo.txt

huffman's People

Contributors

ivan-guerra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.