8000 GitHub - JesDev12U/huffman-algorithm: Project to Computational Algorithms
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JesDev12U/huffman-algorithm

Repository files navigation

Huffman algorithm in C++

If you want to see this project, you can see my video in YouTube

Console program

If you want run the console program, you need to compile the huffman.cpp file

g++ -o huffman huffman.cpp

Then, run the program

./huffman

Considerations for the web app

  • You need to install the latest version of C++ Compiler, I recommend the MinGW 6.3.0 compiler because in this compiler I was develop the algorithms
  • You need to install the latest version of Python, or minimum the 3.10 version. Also you need to install Flask. You can install it with this command:
  • pip install flask
  • None folder can be modify or delete because the app will stop works
  • Maybe I'll host the app, but in this moment NO :p, so you can host the app with Ngrok or others host apps

Run the aplication

  1. Compile the C++ algorithms
  2. g++ -o huffmancompress huffmancompress.cpp
    g++ -o huffmandecompress huffmandecompress.cpp
    

    If you want to run the algorithms in the console, you can do it, but you need to type the names of the input file and the output file

    ./huffman compress <FILE INPUT .txt> <FILE OUTPUT .huff>
    ./huffman decompress <FILE INPUT .huff> <FILE OUTPUT .txt>
    
  3. Run the Python algorithm to run the Flask server
  4. python app.py
    
  5. Go to the localhost (127.0.0.1) in the port 5000 to open the app web
  6. Enjoy it :)

In this repository you can find the documentation PDF of this project

About

Project to Computational Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0