摘要: 简单的写了一下哈夫曼树和哈夫曼编码的类,用的是顺序存储。 #include<bits/stdc++.h> using namespace std; struct node{ int weight; // 权值 int parent; // 双亲结点,在选取两个最小权值结点时也会用到 int left 阅读全文
posted @ 2021-05-23 17:24 湖上的程序员 阅读(99) 评论(0) 推荐(0) 编辑