Giter Club home page Giter Club logo

huffman_encoding_compression's Introduction

Huffman Compression Algorithm - CLI Program

Overview

The Huffman Compression Algorithm is a lossless data compression algorithm used to reduce the size of files without losing any information. This Huffman Compression CLI program written in C++ that allows you to compress any file type to a .hufbin file format. The compressed file can be decompressed back to its original form using the same program.

Prerequisites

To use the Huffman Compression CLI program, you need to have the following prerequisites installed on your system:

  • C++ compiler (supporting C++11 or higher)

Installation

Follow the steps below to install and set up the Huffman Compression CLI program on your system:

  1. Clone the repository:

    git clone https://github.com/rohithpeddi7/huffman_encoding_compression/
    
  2. Change into the project directory:

    cd huffman_encoding_compression
    
  3. Compile the source code using CMake:

    gcc huffman.cpp -o huffman
    

Usage

Once you have successfully installed the Huffman Compression CLI program, follow the steps below to compress and decompress files:

Compressing a File

To compress a file, run the following command:

./huffman c <input_file_path_with_extension> <output_file_name_without_extension> 

Replace <input_file_path_with_extension> with the path to the file you want to compress and <output_file_name_without_extension> with the output file name without any extension.

You can also run without arguments and interact with the menu.

Decompressing a File

To decompress a compressed file, run the following command:

./huffman d <compressed_file_path_with_.hufbin> <output_file_name_with_extension>

Replace <compressed_file_path_with_.hufbin> with the path to the compressed file you want to decompress and <output_file_name_without_extension> with the output file name with file extension that you require.

Contributing

Contributions to the Huffman Compression CLI program are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This Huffman Compression CLI program is licensed under the MIT License.

huffman_encoding_compression's People

Contributors

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