void HuffTree::HuffmanCode(vector<TNode> &HT, vector<string> &HC, const vector<int> &wgh)
{
if (wgh.empty())
{
return;
}
InitHuffTree(HT, wgh);
BuildHuffTree(HT, wgh);
HuffCodeing(HT, HC, wgh);
}
void HuffTree::HuffmanCode(vector<TNode> &HT, vector<string> &HC, const vector<int> &wgh)
{
if (wgh.empty())
{
return;
}
InitHuffTree(HT, wgh);
BuildHuffTree(HT, wgh);
HuffCodeing(HT, HC, wgh);
}
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/bc4287b058f693573ae9f7dafe1bb246.html