5 packages tagged with “Huffman”
Compression algorithms for MPQ archives.
This is a simple Huffman Compressor. It is not nearly as fast as it could be, and I'm sure there is room to improve it. I only use it for small (< 100 byte) strings that the normal .Net compression libraries don't handle well.
Decompression and compression algorithms for compression methods commonly used in MPQ archives.
Huffman.Tree project is an open source package for building & operating Huffman tree & codes. It aims at providing minimal memory footprint.
This library offers robust functionality for implementing Huffman coding, a renowned compression algorithm widely utilized for text compression tasks. With this package, you can: Encode plain text efficiently, employing Huffman coding's technique of replacing frequently occurring characters with shorter binary representations. Encode entire text files, effectively compressing substantial amounts of text data into smaller, more manageable files, ideal for storage or transmission. Decode previously encoded text, effortlessly reverting the compression process and restoring the original content. Decode previously encoded files, allowing seamless recovery of the original text from Huffman encoded files. Ensure file integrity with a utility method for checking file extensions, ensuring compatibility and safeguarding against processing unsupported file types. Optionally enable protocol logging to track the encoding process, providing invaluable insights into frequency calculation, encoding table generation, and encoded text output for debugging and monitoring purposes.