经典排序之希尔排序
摘要:
1 #include <stdio.h> 3 void shell_order(int *a,int length) 4 { 5 int increment,i,j,tem; 6 for(increment = length/2; increment > 0; increment /=2) 7 { 8 for(i = increment; i < length; i++) 9 {10 tem = a[i];11 for(j = i; j >= increment; j -= increme... 阅读全文
posted @ 2012-05-18 16:23 NewPanderKing 阅读(306) 评论(0) 推荐(0) 编辑