2、stdlib.h>#include #define MAX 27#define MAX_INT 99999typedef struct{ int weight; int parent,lchild,rchild;} HTN 实验题目(共6题,第1题)标题:Huffman树时 限:1000 ms内存限制:10000 K总时限:3000 ms描述:Huffman树对输入的英文大写字母进行统计概率然后构建哈夫曼树,输出是按照概率降序排序输出Huffman编码。输入:大写字母个数n第一个字母第二个字母第三个字母... 第n个字母输出:字母1出现次数Huff
3、man编码字母2出现次数Huffman编码字母3出现次数Huffman编码…字母n出现次数Huffman编码输入样例:10IIUUUIUNUU输出样例:U61I301N100 提示:参见教材144页来源:#include #include #include #define MAX 27#define MAX_INT 99999typedef struct{ int weight; int parent,lchild,rchild;} HTN 实验题目(共6题,第1题)标题:Huffman树时 限:1000 ms