随笔分类 - 算法与数据结构
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
阅读全文
摘要:package cn.aust.zyw.demo; import java.util.Iterator; /** * Created by zyw on 2016/2/19. * 用数组实现栈 */ public class MyStack<T> implements Iterable<T>{ pu
阅读全文
摘要: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[
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号