摘要: 选择排序法:选择排序和堆排序选择排序(数组实现)public void select_sort(){int position;for(position = entry.length-1;position >=0;position--){int max = max_in_the_list(0,position);swap(position,max);}}public void swap(int first,int second){int temp =entry[first];entry[first]=entry[second];entry[second] = temp;}public in 阅读全文
posted @ 2012-01-18 15:34 ymin 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 只是一个刚在编程世界里面出生的小女孩,努力学习着,爬着走,站着走每天一个小小的进步!姐要努力成为AC王!!就算摔倒了也要爬着前进!!! -------ymin最近在系统的看排序算法 阅读全文
posted @ 2012-01-18 15:28 ymin 阅读(100) 评论(0) 推荐(0) 编辑