[原创] Huffman编码生成程序

#include <stdio.h>#include <stdlib.h>#define MaxSize 50typedef struct{ char c; //代码; int w; //代码权值; char code[MaxSize]; //代码的Huffman编码; }HuffCode[MaxSize];typedef struct{ int Weight; //权值; int LChild,RChild,Parent; }HTNode,HuffTree[MaxSize];//==...
D.S. | 2006-12-05 20:59 | 阅读 2708 次 | 评论 0 条
浏览16023次
最新评论