数据结构
冒泡排序zzz
这个作者很懒,什么都没留下…
展开
-
【学习笔记】非递归实现先后根遍历二叉树
C语言代码:#include <stdio.h> #include <string.h> #include <stdlib.h>/*----方便看代码的定义----*/ typedef int Status; #define OK 0 #define NotOK 1#define STACK_INIT_SIZE 100 //栈空间初始分配量 #define STACKINCREMENT原创 2017-10-28 14:09:06 · 232 阅读 · 0 评论 -
深度优先迷宫求解实例(C)
//maze.h #define RIGHT 0 #define DOWN 1 #define LEFT 2 #define UP 3 typedef struct Position{ //位置 int x; //行 int y; //列 }Position; //顺时针从右开始寻找临近位置,返回该临近位置 Position NextPos(Position now, i原创 2017-11-16 21:11:46 · 753 阅读 · 0 评论 -
赫夫曼树编码解码实例(C)
//HuffmanTree.h #include <stdlib.h> #include <stdio.h> #include <string.h> #define OVERFLOW -1typedef struct{ char data; //节点所存字符 unsigned int weight; //节点权重 unsigned int paren原创 2017-11-16 21:21:51 · 674 阅读 · 0 评论