![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Weijia Li
这个作者很懒,什么都没留下…
展开
-
方法2:二分查找法
思路 #include <iostream> using namespace std; #define MAXSIZE 7 typedef struct { int Element[MAXSIZE]; int Lenth; }LNode,*List; int BinarySearch(List list,int k); int main() { LNode list; lis...原创 2019-10-27 19:50:48 · 302 阅读 · 0 评论 -
方法1:顺序查找
思路 #include <iostream> using namespace std; #define MAXSIZE 7 //数组的零号元素用来存放查找的元素,也称哨兵。![在这里插入图片描述](https://img-blog.csdnimg.cn/20191027192000626.png?x-oss-process=image/watermark,type_ZmFuZ3poZ...原创 2019-10-27 19:20:31 · 195 阅读 · 0 评论 -
快速排序
快速排序 #include <iostream> using namespace std; #define MAXSIZE 6 void QuickSort(int *a,int low,int high); int FindPosition(int* a,int low,int high); int main() { int a[MAXSIZE]={38,66,13,97,22,4...原创 2019-10-27 18:46:53 · 135 阅读 · 0 评论