霍夫曼
是著名的无损数据压缩算法。
要使用C#实现,您应该已安装 。 要构建和使用:
进入c-sharp目录: cd c-sharp
建立项目: dotnet build --configuration Release
用它: # 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