Docs.rs
huffman_tree-0.1.0
huffman_tree 0.1.0
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
crates.io
Source
Owners
chiiihc
Dependencies
Versions
80%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
huffman_
tree
0.1.0
All Items
Crate Items
Structs
Functions
Crate
huffman_tree
Copy item path
Source
Expand description
#哈夫曼树相关功能
Structs
§
Huffman
Tree
Functions
§
decoding
利用具有n个节点的最优二叉树进行译码,叶子的下标为1-n, buff是二进制位串编码序列
encoding
根据给定的哈夫曼树,从每个叶子节点出发追溯到树根,逆向找出二叉树中叶子节点的编码