![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
哈夫曼
文章平均质量分 52
liuchenjane
这个作者很懒,什么都没留下…
展开
-
哈夫曼编码树的C++实现(一)
//Huffman tree #include <iostream> #include <vector> const int MaxN=100;//设定的最大节点个数 const int Maxbit=255;//设定最大编码值 const int MaxValue=9999;//设定权重最大值 using namespace std; struct HaffNode{ int weight原创 2016-11-24 17:29:23 · 1381 阅读 · 0 评论 -
哈夫曼编码树的C++实现
哈夫曼编码,参考与《算法导论》 //huffman_another solution #include #include #include #include using namespace std; struct HuffNode{ char key;//关键字 int freq;//出现de频率,即权重 HuffNode* left; HuffNode* right; str原创 2016-11-24 17:38:05 · 843 阅读 · 0 评论