哈夫曼
文章平均质量分 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 · 1526 阅读 · 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 · 914 阅读 · 0 评论
分享