算法
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 · 286 阅读 · 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 · 179 阅读 · 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 · 225 阅读 · 0 评论
分享