会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
boer儿
博客园
首页
新随笔
联系
管理
订阅
2016年4月23日
堆排序
摘要: #include #define MAX 255 //堆排序学习 int R[MAX]; void Heapify(int s,int m) { //调整堆 int j,temp; temp=R[s]; j=2*s; while(jR[j+1]) j++; if(temp0;i--) Heapify(i,n); } void Heap_sort(int n) { ...
阅读全文
posted @ 2016-04-23 17:23 boer儿
阅读(125)
评论(0)
推荐(0)
编辑
公告