摘要:
1 /** 2 * 功能:快速排序 3 */ 4 public class QuickSort { 5 6 public int[] process(int[] array) { 7 8 if (null == array || 0 == array.length) { 9 return array; 10 ... 阅读全文
摘要:
1 /** 2 * 功能:希尔排序 3 */ 4 public class ShellSort { 5 6 public int[] shellSort(int[] array) { 7 8 int increment = array.length; 9 int temp = 0; 10 int index = 0... 阅读全文
摘要:
1 /** 2 * 堆排序 3 * 4 * @author Administrator 5 * 6 */ 7 public class HeapSort { 8 9 public int[] heapSort(int[] array) { 10 11 int i; 12 13 // 1.将无序序列构造成一... 阅读全文