{"id":18123092,"url":"https://github.com/theweird-kid/huffman-coding","last_synced_at":"2025-04-06T12:44:43.211Z","repository":{"id":260433170,"uuid":"881283374","full_name":"theweird-kid/huffman-coding","owner":"theweird-kid","description":"Simple huffman Coding Implementation in C++","archived":false,"fork":false,"pushed_at":"2024-10-31T09:10:15.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T18:46:40.824Z","etag":null,"topics":["cpp20","data-compression","huffman-compression-algorithm","information-theory"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theweird-kid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-31T09:05:42.000Z","updated_at":"2024-10-31T09:10:19.000Z","dependencies_parsed_at":"2024-10-31T10:28:33.319Z","dependency_job_id":null,"html_url":"https://github.com/theweird-kid/huffman-coding","commit_stats":null,"previous_names":["theweird-kid/huffman-coding"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theweird-kid%2Fhuffman-coding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theweird-kid%2Fhuffman-coding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theweird-kid%2Fhuffman-coding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theweird-kid%2Fhuffman-coding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theweird-kid","download_url":"https://codeload.github.com/theweird-kid/huffman-coding/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485251,"owners_count":20946398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp20","data-compression","huffman-compression-algorithm","information-theory"],"created_at":"2024-11-01T07:07:56.813Z","updated_at":"2025-04-06T12:44:43.192Z","avatar_url":"https://github.com/theweird-kid.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Huffman Coding\n\nHuffman Coding is a lossless data compression algorithm. It assigns variable-length codes to input characters, with shorter codes assigned to more frequent characters. This project implements Huffman Coding in C++.\n\n## Features\n\n- Build Huffman Tree from input text\n- Generate Huffman Codes for characters\n- Encode text using Huffman Codes\n- Decode encoded text back to original text\n- Log compression details including original size, compressed size, and compression ratio\n- Display binary representation of encoded string\n\n## Getting Started\n\n### Prerequisites\n\n- C++ compiler with C++20 support (e.g., `g++`)\n- Make utility\n\n### Building the Project\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/theweird-kid/huffman-coding.git\n    cd huffman-coding\n    ```\n\n2. Build the project using `make`:\n    ```sh\n    make hc\n    ```\n\n### Running the Project\n\n1. Run the executable:\n    ```sh\n    ./main\n    ```\n\n### Cleaning Up\n\n1. Clean the build artifacts:\n    ```sh\n    make clean\n    ```\n\n## Usage\n\nReplace the `text` variable in `main.cc` with your input text. The program will output the encoded string, decoded string, and compression details.\n\n### Example\n\n```cpp\nstd::string text = \"your text here\"; ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheweird-kid%2Fhuffman-coding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheweird-kid%2Fhuffman-coding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheweird-kid%2Fhuffman-coding/lists"}