随笔分类 -  算法与数据结构

java
摘要: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; /** * 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 不被女生喜欢好多年 阅读(159) 评论(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 不被女生喜欢好多年 阅读(202) 评论(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 不被女生喜欢好多年 阅读(188) 评论(0) 推荐(0)