算法
iuhe_999
这个作者很懒,什么都没留下…
展开
-
二分查找的递归和非递归
#include "stdio.h" void Search(int p[],int low,int height,int key) { int middle=(low+height)/2; if(low>height) { printf("没有该数!");原创 2017-11-04 15:19:01 · 191 阅读 · 0 评论 -
排序
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int n=5; int k; int array[5]原创 2017-11-04 20:50:09 · 141 阅读 · 0 评论 -
折半插入排序
void select(int array[],int n) { int i,j,key; int temp1; int temp;//=array[0]; int low,high,mid; //temp1=array[0]; for(i=1;i { //j=i-1; temp=array[i]; low=0; hig原创 2017-11-04 21:30:15 · 188 阅读 · 0 评论