Skip to content

LessUp/encoding

Encoding

CI Deploy Docs License: MIT C++ Go Rust

English | 简体中文 | Docs

Encoding is a multi-language collection of classic compression algorithms for learning, implementation comparison, and cross-language verification.

Repository Overview

  • Four algorithms: Huffman, Arithmetic Coding, Range Coder, and RLE
  • Three language tracks: C++17, Go, and Rust
  • Unified CLI conventions and shared binary formats for cross-language validation
  • Dedicated docs site for getting started, algorithm guides, and project structure

Quick Start

make build
make test
make bench

If you want to start from a single algorithm first:

cd huffman/cpp
g++ -std=c++17 -O2 main.cpp -o huffman_cpp
./huffman_cpp encode input.bin output.huf
./huffman_cpp decode output.huf restored.bin

Read Next

License

MIT License.

About

Classic Compression Encoding Algorithms: Huffman, Arithmetic, Range Coding & RLE in C++/Go/Rust | 经典压缩编码算法合集:Huffman、算术编码、区间编码、RLE,C++/Go/Rust 三语言实现与跨语言兼容

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors