GithubHelp home page GithubHelp logo

huffman_code's Introduction

Huffman Coding Project

The Huffman Coding Project will help you with data compression and decompression. Even though disk space is alot cheaper now than ever before in history, there are still importance in efficiently and effectively compress information. It is possible to make a file significantly smaller without any loss of information whatsoever, leading to lossless compression. The Huffman coding was a technique introduced by David Huffman 1952. Huffman coding compression is still used today as part of JPEG image compression, mp3 audio compression, Unix file compression command pack, and other applications.

Getting Started

These instructions will guide you on how to grab the repo, and use the huffman coding project to start compression and decompression files.

Grab the Repo

First we need to clone this repo

  1. Open Terminal
  2. cd into the directory where you want to copy the repo
  3. clone the repository
git clone https://github.com/mdcovarr/huffman_code.git

Makefile

Included with the repo, is a Makefile

  1. we need to make the porject with the following command
make

This will produce the executable files 'compress' and 'uncompress' which will be used in order to compress data or decompress compressed data.

Compressing

the 'compress' executable can be run with two arguments. The first argument is the name of the input file you would like to compress. The second argument is the name of the output file where you want the compress data to be placed. The following line below is an example:

./compress input-file.txt output-file.txt

Decompressing

The 'uncompress' executable can be run with two arguments. The first argument is the name of the input file. The input file would be a previously compressed file. The second argument is the name of the output file where you want to output the decompressed data. The following line below is an example:

./uncompress input-file.txt output-file.txt

Testing

Within the repo we have two reference executables

  1. refcompress
  2. refuncompress

These executables were used in testing, to determine the accuracy and validity of my Huffman Coding algorithm implementation. They were also useful as a benchmark in how optimized my implementation is.

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.