GithubHelp home page GithubHelp logo

compression-tool's Introduction

Huffman Coding Compression Tool This project implements a Huffman coding algorithm for file compression and decompression. Huffman coding is an efficient method of compressing data without losing any information. This tool reads a text file, compresses it using the Huffman coding technique, and then decompresses it back to its original form.

Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites What you need to run this project:

Python 3.x Installing Clone the repository to your local machine:

bash Copy code git clone https://github.com/xj85770/huffman-coding.git Navigate to the cloned directory:

bash Copy code cd huffman-coding Usage To use this tool, you need to have a text file that you want to compress and decompress. Once you have the text file, follow these steps:

Replace les_miserables.txt in the main_encode() function with the path to your text file. Run the script: Copy code python huffman_encoder.py This will generate two files:

encoded_output.txt: The compressed version of your text file. decoded_output.txt: The decompressed version, which should be identical to the original text file. Built With Python 3 - The scripting language used.

compression-tool's People

Contributors

xj85770 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.