2014年12月25日
摘要: 排序1. 直接插入排序原理:将当前无序区a[i...n-1]的记录一个一个插入到有序区a[0....i-1]合适位置; 1 void insert_sort(int a[], int n) 2 { 3 int j; 4 for(int i=1;i=0&&temp0;h=h/2) 4 ... 阅读全文
posted @ 2014-12-25 18:25 kenneth shu 阅读(456) 评论(0) 推荐(0) 编辑