Coder Social home page Coder Social logo

haffman's Introduction

Haffman algorithm based encoder and decoder project

Building

It's possible to build encoder and decoder executable in two ways: by simple Makefile or cmake engine.

make

One thing you need is to type make inside project root - then encoder and decoder will be placed into bin directory.

cmake

Create create build directory where it convinient for you and change current directory to this one. Type cmake <project-root-path> and then if all rigth cmake --build .

Use haffman encode

If you built encode with make run it as following:

> bin/encode file-to-encode encoded-file-name

file-to-encode will be encoded by 5Mb blocks into encoded-file-name

Use haffman decode

If you built decode with make run it as following:

> bin/decode encoded-file-name decoded-file-name

encoded-file-name will be decoded block by block as you encoded it previously. If you try to decode wrong file it won't be decoded with error message.

That's all

haffman's People

Stargazers

 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.