薄荷丶微微凉

人生若只如初见,何事秋风悲画扇。

摘要: import java.util.Iterator; import java.util.NoSuchElementException; /** * @Auther: FAN * @Date: 2018/9/1 21:41 * @Description: 自定义ArrayList **/ public class MyArrayList{ //默认数组大小 priva... 阅读全文
posted @ 2018-09-02 09:12 淡淡薄荷丶微微凉 阅读(269) 评论(0) 推荐(0) 编辑
摘要: /** * @Auther: FAN * @Date: 2018/8/27 22:42 * @Description: **/ public class MaxHeap { protected Item[] data; // 堆中存储的数量 protected int count; // 堆中可存放的数据个数 protected int cap... 阅读全文
posted @ 2018-09-02 09:11 淡淡薄荷丶微微凉 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; import java.util.Arrays; /** * @Auther: FAN * @Date: 2018/8/30 21:15 * @Description:二分查找法 **/ public class BinarySerach { public static int binarySe... 阅读全文
posted @ 2018-09-02 09:10 淡淡薄荷丶微微凉 阅读(129) 评论(0) 推荐(0) 编辑
摘要: import java.util.LinkedList; import java.util.Queue; import java.util.Stack; /** * @Auther: Administrator * @Date: 2018/8/31 08:55 * @Description: BinarySearchTree */ public class BinarySearchTr... 阅读全文
posted @ 2018-09-02 09:09 淡淡薄荷丶微微凉 阅读(147) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; /** * @Auther: FAN * @Date: 2018/8/26 19:48 * @Description:快速排序 **/ public class QuickSort { public static void main(String[] args) { int[] a... 阅读全文
posted @ 2018-08-26 23:30 淡淡薄荷丶微微凉 阅读(237) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; import java.util.Arrays; /** * @Auther: FAN * @Date: 2018/8/26 22:54 * @Description: * 比较Merge Sort和双路快速排序和三路快排三种排序算法的性能效率 * 对于包含有大量重复数据的数组, 三路快排有巨大的优势 ... 阅读全文
posted @ 2018-08-26 23:30 淡淡薄荷丶微微凉 阅读(395) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; /** * @Auther: FAN * @Date: 2018/8/26 19:48 * @Description:快速排序 **/ public class QuickSort { public static void main(String[] args) { int[] a... 阅读全文
posted @ 2018-08-26 23:29 淡淡薄荷丶微微凉 阅读(176) 评论(0) 推荐(0) 编辑
摘要: /** * 排序算法工具类 */ public class GeneratedArray { /** * * 生成随机长度数组[min,max) * * @param min 最小值 * @param max 最大值 * @param num * @return */ public static... 阅读全文
posted @ 2018-08-26 12:16 淡淡薄荷丶微微凉 阅读(220) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; /** * @Auther: FAN * @Date: 2018/8/25 20:11 * @Description:选择排序 每次排序选择出最小的数字放在对应位置 * 1) 3,5,1,2 最小值 1 和3交换 * 2) 1,5,3,2 最小值 2 和5交换 * 3) 1,2,3,5 排序完成 **... 阅读全文
posted @ 2018-08-26 12:14 淡淡薄荷丶微微凉 阅读(103) 评论(0) 推荐(0) 编辑
摘要: import cn.idestiny.util.GeneratedArray; /** * 插入排序算法实现 */ public class InsertionSort { public static void main(String[] args) { //随机生成指定长度数组 int[] randomarr = GeneratedArray.... 阅读全文
posted @ 2018-08-26 12:14 淡淡薄荷丶微微凉 阅读(79) 评论(0) 推荐(0) 编辑