GithubHelp home page GithubHelp logo

huffman-coding's Introduction

Huffman coding

The program is a console archiver which uses Huffman coding. The application is developed in OOP style. The classes «tree», «vertex tree» and «archiver» (the class incapsulating compression and decompression) are clearly distinguished. The tests are implemented using doctest.

Install

git clone https://github.com/psurkov/Huffman-Coding.git
cd Huffman-Coding
cmake . && make

Use

Type ./huffman to run the program or ./test_huffman to run the tests. The program should be sent flags.

  • The program supports the following flags:
    • -c: compression
    • -u: decompression
    • -f, --file <path>: input filename
    • -o, --output <path>: output filename
  • The arguments can follow in any order.

The program outputs the statistics of compression/decompression: the size of the input file, the size of the output file and the size of additional data in the output file. All sizes are shown in bytes.

huffman-coding's People

Contributors

psurkov avatar

Watchers

 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.