摘要:
/***shell's sort**/#include<stdio.h>void shellSort(int array[],int n){int gap = n,flag = 0;int tmp,j = 0;while(gap > 1){gap /= 2;do{flag = 0; for(int i = 0;i < n - gap;i++){ j = i + gap;if... 阅读全文
posted @ 2010-10-19 23:53 生无涯 阅读(143) 评论(0) 推荐(0) 编辑