摘要: package chap02_Basic_Algorithms;import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms { /** * 冒泡法排序 * * @param n */... 阅读全文
posted @ 2014-06-04 22:28 JintaoXIAO 阅读(143) 评论(0) 推荐(0) 编辑
摘要: package chap02;import static org.junit.Assert.*;import java.util.Arrays;import java.util.Random;import org.junit.Test;/*** * 在归并排序中对小数组采用插入排序 * * @author xiaojintao * */public class ques2_1 { ... 阅读全文
posted @ 2014-06-04 21:48 JintaoXIAO 阅读(360) 评论(1) 推荐(0) 编辑
摘要: import static org.junit.Assert.*;import org.junit.Test;public class SearchAlorithms { /** * 二分查找算法 从start到end(包括start和end)之间的所有数中找到n * @param a * @param n * @param start * @p... 阅读全文
posted @ 2014-06-04 16:54 JintaoXIAO 阅读(213) 评论(0) 推荐(0) 编辑
摘要: import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms {/** * 归并排序算法 * * @param a ... 阅读全文
posted @ 2014-06-04 12:31 JintaoXIAO 阅读(152) 评论(0) 推荐(0) 编辑
摘要: import static org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;public class SortAlgorithms { /** * 插入排序算法 * * @param n... 阅读全文
posted @ 2014-06-04 12:20 JintaoXIAO 阅读(240) 评论(0) 推荐(0) 编辑