[数据结构] 赫夫曼树
赫夫曼树
建立赫夫曼树
建立赫夫曼编码表
将电文转化为赫夫曼编码
代码很凌乱,仅供抄作业使用 :)
#include<iostream>
#include<string>
using namespace std;
typedef struct
{
int weight;
int parent,lchild,rchild;
}HTNode;
type...
原创
2018-07-12 18:48:23 ·
195 阅读 ·
0 评论