- 博客(3)
- 收藏
- 关注
原创 霍夫曼树的构建及霍夫曼编码
#include <iostream> #include <cstdlib> #include<stack> #include<stdio.h> #include<string.h> using namespace std; typedef struct { int weight; int parent, leftChild, rightChild; } HTNode,*Huffmantree; const int n=4;//叶
2020-11-30 21:43:21 339
原创 二叉树的建立 前序中序后序递归遍历 非递归遍历 C++
#include<iostream> #include<stdio.h> #include <iomanip> #include<stack> using std::setw; using namespace std; typedef struct node{ struct node * lchild; struct node * rchild; char data; }BiTreeNode,*BiTree; void CreateBiTree(
2020-11-30 18:57:27 144
原创 中缀到后缀的链式实现 C++
#include<stdio.h> #include<stdlib.h> typedef struct SNode*Stack; struct SNode{ char Data; struct SNode*Next; }; Stack CreateStack() //创建新堆栈节点 { Stack S; S=(Stack)malloc(sizeof(struct SNode)); S->Next=NULL; return S; } void Pus
2020-11-30 18:51:24 75
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人