摘要: /** * Created by icecookstar on 2015/11/3. */public class BinarySearch { private static int binarySearch(int[] matrix, int i, int j, int find) { ... 阅读全文
posted @ 2015-11-03 22:34 段星星 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /** * Created by icecookstar on 2015/11/3. * 归并排序 */public class MergeSort { private static void merge(int[] matrix, int first, int middle, int las... 阅读全文
posted @ 2015-11-03 22:33 段星星 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.给定如下几个数11, 5, 80, 20, 10, 9, 30,使用快速排序排序, 快速排序的原理如下: 通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成... 阅读全文
posted @ 2015-11-03 17:26 段星星 阅读(242) 评论(0) 推荐(0) 编辑