摘要: (java版)import java.util.ArrayList;import java.util.List;public class radixSort { public static void sort(int[] a){ //首先确定排序的趟数 int max = a[0]; for(... 阅读全文
posted @ 2015-04-17 22:04 糖糖_123 阅读(123) 评论(0) 推荐(0) 编辑
摘要: (java版)public class mergingSort { public static void merge(int[] a,int left, int center, int right){ int[] tmpArr = new int[a.length]; int mid = ce... 阅读全文
posted @ 2015-04-17 22:03 糖糖_123 阅读(118) 评论(0) 推荐(0) 编辑
摘要: (java版)public class bubbleSort { static void BubbleSort(int l[]){ int i,j; boolean exchange = false; int swap; for(i = 0; ii; j--){ if(l[j] < l... 阅读全文
posted @ 2015-04-17 22:02 糖糖_123 阅读(89) 评论(0) 推荐(0) 编辑
摘要: (java版)public class Qsort { static int Partition(int l[],int low,int high){ int prvotkey = l[low]; while(low= prvotkey) high--; l[low] = l[high... 阅读全文
posted @ 2015-04-17 22:00 糖糖_123 阅读(114) 评论(0) 推荐(0) 编辑