#huffman #data #merge #package

packagemerge

Implementation of the package-merge algorithm for data compression. It solves a problem similar to problem Huffman's algorithm solves: Computing a prefix-free code. But the package-merge algorithm does it while satisfying an additional constraint: a maximum code word length.

1 unstable release

Uses old Rust 2015

0.1.0 Mar 14, 2016

#30 in #huffman

Download history 2195/week @ 2024-04-13 1733/week @ 2024-04-20 1697/week @ 2024-04-27 1572/week @ 2024-05-04 1202/week @ 2024-05-11 1545/week @ 2024-05-18 1333/week @ 2024-05-25 1548/week @ 2024-06-01 1021/week @ 2024-06-08 1106/week @ 2024-06-15 1106/week @ 2024-06-22 711/week @ 2024-06-29 1643/week @ 2024-07-06 2087/week @ 2024-07-13 2124/week @ 2024-07-20 2074/week @ 2024-07-27

8,029 downloads per month

MIT/Apache

6KB
119 lines

This is a Rust implementation of the package-merge algorithm. It's used to compute optimal length-limited prefix codes for data compression.


lib.rs:

This crate implements the package-merge algorithm. The package-merge algorithm is able to compute an optimal length-limited prefix-free code. As such, it might be useful for data compression purposes much like the Huffman algorithm. But Huffman's algorithm does not allow you do constrain the maximum length of all code words.

Dependencies

~420KB