摘要: package cn.aust.zyw.demo; public class BST<Key extends Comparable<Key>,Value> { public static void main(String args[]){ BST<Integer,String> bst=new BS 阅读全文
posted @ 2016-03-02 17:08 不被女生喜欢好多年 阅读(291) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; import java.util.Iterator; /** * Created by zyw on 2016/2/19. * 用数组实现栈 */ public class MyStack<T> implements Iterable<T>{ pu 阅读全文
posted @ 2016-02-19 15:38 不被女生喜欢好多年 阅读(182) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; import java.util.Iterator; /** * Created by zyw on 2016/2/17. */ public class BagTest { public static void main(String args[ 阅读全文
posted @ 2016-02-18 10:27 不被女生喜欢好多年 阅读(265) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; import java.util.Iterator; /** * Created by zyw on 2016/2/16. * Iterator模式是用于遍历集合类的标准访问方法。 * 它可以把访问逻辑从不同类型的集合类中抽象出来,从而避免向客户端 阅读全文
posted @ 2016-02-16 22:18 不被女生喜欢好多年 阅读(338) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; /** * Created by zyw on 2016/2/15. */ public class MergeSort2 { public static void main(String args[]){ int a[]={3,2,5,6,1,7 阅读全文
posted @ 2016-02-15 21:57 不被女生喜欢好多年 阅读(157) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; /** * Created by zyw on 2016/2/9. */ public class Shell { public static void sort(int a[]){ int N=a.length; int h=1; while(h 阅读全文
posted @ 2016-02-15 21:53 不被女生喜欢好多年 阅读(201) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; /** * Created by zyw on 2016/2/9. * insert-sort */ public class Insertion { public static void sort(int [] a){ int N=a.lengt 阅读全文
posted @ 2016-02-15 21:52 不被女生喜欢好多年 阅读(263) 评论(0) 推荐(0)
摘要: package cn.aust.zyw.demo; /** * Created by zyw on 2016/2/8. * quick-sort */ public class Selection { public static void sort(int [] a){ int N=a.length 阅读全文
posted @ 2016-02-15 21:51 不被女生喜欢好多年 阅读(187) 评论(0) 推荐(0)