ahua的头发

导航

2020年6月12日 #

数据结构::树常考的性质

摘要: 数据结构::树常考的性质 1.结点数=总度数+1 2.度数为m的树和m叉树的区别 3. 4. 5. 6. 阅读全文

posted @ 2020-06-12 21:51 ahua的头发 阅读(162) 评论(0) 推荐(0) 编辑

数据结构::KMP算法模板

摘要: 数据结构::KMP算法模板 NEXT数组: //优化过后的next 数组求法 void GetNextval(char* p, int next[]) { int pLen = strlen(p); next[0] = -1; int k = -1; int j = 0; while (j < pL 阅读全文

posted @ 2020-06-12 17:47 ahua的头发 阅读(111) 评论(0) 推荐(0) 编辑

数据结构::串的顺序存储

摘要: 数据结构::串的顺序存储 #include "string.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h" #define OK 1 #define ERROR 阅读全文

posted @ 2020-06-12 17:15 ahua的头发 阅读(356) 评论(0) 推荐(0) 编辑