Huffman coding is a famous algorithm for lossless data compression.
To use the C# implementation, you should have .NET 5.0 installed.
-
Go to the
c-sharp
directory and build the project:cd c-sharp dotnet build --configuration Release
-
Use it:
# compress a file dotnet build/net5.0/Huffman.Cli.dll compress path/to/file.txt path/to/archive.huffman # expand a compressed file dotnet build/net5.0/Huffman.Cli.dll expand path/to/archive.huffman path/to/expanded/file.txt