2016年5月17日

哈夫曼树

摘要: #include #include #include #include using namespace std; typedef struct Tree { int weight; int parent, lchild, rchild; }Tree, *HuffmanTree; void Select(HuffmanTree HT, int i, int &s1,... 阅读全文

posted @ 2016-05-17 21:07 Kooing 阅读(153) 评论(0) 推荐(0) 编辑

线索化二叉树的相关操作

摘要: #include using namespace std; typedef struct Tree { char data; int lTag, rTag; struct Tree *lchild, *rchild; }Tree; void firstCreateTree(Tree* &T) { char ch; cin >> ch; if... 阅读全文

posted @ 2016-05-17 18:07 Kooing 阅读(237) 评论(0) 推荐(0) 编辑

导航