排序小结(C版)
摘要:
一、快速排序(C源码)#include #include int adjust(int a[],int start,int end){ int i=start; int j=end; int temp=a[start]; while(i=a[i]) i++; if(i#include //最大堆的调整函数//注意a[0]不参与排序void adjust(int a[],int s,int m){ int temp=a[s]; int j; for(j=2*s;ja[j]) break; ... 阅读全文
posted @ 2014-04-03 20:18 逆龙七步 阅读(210) 评论(0) 推荐(0) 编辑