![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
Filyss
这个作者很懒,什么都没留下…
展开
-
静态查找
1.顺序查找2.折半查找#include “stdafx.h” #include “malloc.h” #define OVERFLOW -2 #define OK 1 #define LIST_INIT_SIZE 100 #define EQ(a,b) ((a)==(b)) #define LT(a,b) ((a)<(b)) #define LQ(a,b) ((a)>(b)) typedef i原创 2016-08-01 17:13:30 · 400 阅读 · 0 评论 -
拓扑排序
(1)在有向图中选一个没有前驱的顶点且输出之 (2)从图中删除该顶点和所有以它为尾的弧 #include “stdafx.h” #include “malloc.h” #define MAX_VERTEX_NUM 20 #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 #define ERROR 0 #define OK 1 #d原创 2016-08-01 17:21:48 · 748 阅读 · 0 评论