摘要:
对于待排序序列A[1, n],遍历整个序列,每次保证前1至n个数排列正确;View Code 1 /* 2 * insertion sort 3 * 2011-9-29 4 */ 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 #define MAX_UNIT (7)10 11 unsigned int g_unit[MAX_UNIT] = {8,2,4,9,3,6,1};12 13 static void sort_showlist();14 15 static void sort_insertion(unsigned 阅读全文
posted @ 2012-02-19 22:28 Fredric 阅读(145) 评论(0) 推荐(0) 编辑