摘要: public class nonRecursiveMergeSort { public static void main(String[] args) { int[] list = {8,4,3,6,9}; MergeSort(list); for(int num:list) System.out. 阅读全文
posted @ 2018-05-07 22:12 Loading~ 阅读(153) 评论(0) 推荐(0) 编辑
摘要: public class MergeSort { public static void mergeSort(int [] list){ if(list.length 1){ int [] firstHalf = new int[list.length/2]; System.arraycopy(lis 阅读全文
posted @ 2018-05-07 22:10 Loading~ 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public class InsertSort { public static void insertSort(int [] list){ for(int i=2;icurrentElement;k ){ list[k+1] = list[k]; } list[k+1] = currentEleme 阅读全文
posted @ 2018-05-07 22:09 Loading~ 阅读(633) 评论(0) 推荐(0) 编辑
摘要: public class BucketSort { public static void main(String[] args) { int[] list = {1000, 192, 221, 12, 23}; print(list); System.out.println(); bucketSor 阅读全文
posted @ 2018-05-07 22:08 Loading~ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: public class HeapSort { public static void HeapAdjust(int[] num, int s, int m){ int temp = num[s]; for(int i=2 s;i=num.length) return false; else retu 阅读全文
posted @ 2018-05-07 22:08 Loading~ 阅读(189) 评论(0) 推荐(0) 编辑
摘要: public class BubbleSort { public static void bubbleSort(int [] list){ boolean needNextPass = true; for(int i=1;ilist[j+1]){ int temp = list[j]; list[j 阅读全文
posted @ 2018-05-07 22:07 Loading~ 阅读(157) 评论(0) 推荐(0) 编辑
摘要: public class BubbleSort_Two { public static void bubbleSort_Two(int[] list){ //j在最外层定义 boolean needNextPass = true; for(int i=0,j;ilist[j+1]){ int tem 阅读全文
posted @ 2018-05-07 22:06 Loading~ 阅读(403) 评论(0) 推荐(0) 编辑
摘要: public class BinarySort { public static int binarySort(int[] list, int low, int high, int key){ if(low high) return 1; else{ int mid = (low+high)/2; i 阅读全文
posted @ 2018-05-07 22:05 Loading~ 阅读(132) 评论(0) 推荐(0) 编辑
摘要: public class SelectSort { public static void selectSort(int [] list){ for(int i=0;ilist[j]) temp = j; } //一次迭代完成 判断最小元素放到前面 if(temp!=i){ int result = 阅读全文
posted @ 2018-05-07 22:03 Loading~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public class QuickSort { public static void quickSort(int [] list){ quickSort(list, 0, list.length 1); } public static void quickSort(int[] list, int 阅读全文
posted @ 2018-05-07 22:03 Loading~ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: public class ShellSort { public static void shellSort(int[] list){ int d = list.length; int temp = 0; while(true){ d = (int)Math.ceil(d/2);//保证向上取整 的d 阅读全文
posted @ 2018-05-07 22:00 Loading~ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 交换机支持的命令:(注:交换机支持命令对应的为思科2系列交换机。) 交换机基本状态: switch: ;交换机的ROM态 rommon ;路由器的R状态 switch ;用户模式 switch ;特权模式 switch(config) ;全局配置模式 switch(vlan) 交换机VLAN配置模式 阅读全文
posted @ 2018-05-07 21:30 Loading~ 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: But as we move away from practical goals of goods, and embrace prevailing fashionable nad luxurious consumption patterns, one group of aimless consume 阅读全文
posted @ 2018-05-07 21:08 Loading~ 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Inevitably/Necessarily, accelerating the path to market for sharing bike involves a trade off. It may well be beneficial to provide people convience . 阅读全文
posted @ 2018-05-07 20:53 Loading~ 阅读(101) 评论(0) 推荐(0) 编辑