Git Product home page Git Product logo

huffman-coding's Introduction

huffman-coding

Simple command line programm to compress files using optimal huffman codes.

Generates the optimal huffman tree for a given file, compresses the file using that, and stores the tree in the resulting compressed file.

Installation

  1. You need cargo. If you don't have it installed already you can do so by following the steps from The Cargo Book
  2. Run cargo install --git https://github.com/devensiv/huffman-coding to build the crate in a temporary target directory before installing the binaries in your cargo installation's bin folder. For more information check out the cargo install Book entry
  3. Alternatively to 2. you can clone the repository move into huffman-coding/ in order to run cargo install --path .. This has the same effect as 2. but you are not building in a temporary target directory

Updating

You can update your installation by re running the cargo install command. (or pulling changes before if you went with 3.)

Usage

Encode file: huffman <original-file> Decode file: huffman <compressed-file> -d

Uninstalling

In case you want to uninstall the huffman-coding you can

  1. Run cargo uninstall huffman to remove the program
  2. In case you installed cargo (with rustup) just for this program and want to uninstall it too you can do so by running rustup self uninstall which will uninstall rustup and all its components.

huffman-coding's People

Contributors

devensiv avatar

Watchers

 avatar

huffman-coding's Issues

Make a Readme

Make a simple readme explaining what this is about

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.