摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 void print(int a[], int num); 5 int Partion3(int k[], int low, int hight); 6 int Partion(int k[], int l
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> //希尔排序 //基本思想:也称为缩小增量排序;先分成多组,组的个数即增量的值;增量逐渐递减至1即组个数递减至1 //时间复杂度:nlogn //增量t的取法:最初shell提出取increment=n/2向下取整,inc
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> //选择排序 //基本思想:通过n-i次关键字的比较,从n-i+1个记录中选择最小的记录,并和第i(1=<i<=n)个记录交换 //时间复杂度:O(n^2)但是交换次数明显比冒泡排序少 void SelectSort(in
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> //冒泡排序非正式版 //默认从小到大排序 //时间复杂度:n+n-1+n-2+......+1 即(n+1)n/2,O(n^2) void BublbleSort1(int k[], int n) { int i, j,
阅读全文
摘要:一、常用的基本操作 1. 登录:mysql -h localhost -u root -p -h:后面接的是主机名,表示你要连接到哪台主机的MySQL数据库。localhost(127.0.0.1)也可以是SV 连接的主机IP. -u:后面接的是用户名,MySQL默认的就是root。 -p:指定需要
阅读全文
摘要:1. 三种方式的区别及总结参考:https://www.cnblogs.com/Anker/p/3265058.html select连接数限制windows一般为64 2. 三种方式 2.1 select方式参考:https://www.cnblogs.com/Anker/p/3258674.ht
阅读全文