> 其他 >
给定权值40,30,15,5,4,3,3,构造相应的哈夫曼树及其编码.
人气:498 ℃ 时间:2020-09-24 07:20:47
解答
以下是我做个的类似的题的代码:#include#include#include#include#includeusingnamespace std;typedefstruct{ //哈夫曼树的结构体char ch;int weight; //权值int parent,lchild,rc...
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版