数据结构与算法
文章平均质量分 79
guguangzhu
这个作者很懒,什么都没留下…
展开
-
Java递归和栈
以栈的形式展示递归流程package com.guge.test.recursion;/** * Created by guugangzhu on 2017/5/23. */public class StackTriangle {}class Params{ public int n; public int returnA原创 2017-05-23 19:45:53 · 382 阅读 · 0 评论 -
Java 有向带权树-最短路径
理解的还是不够透彻,明天再看看package com.guge.test.graph;/** * 有向带权树-最短路径 * Created by Guge on 2017/6/20. */public class GraphPath { private final int MAX_SIZE = 20; private final int INFINITY =原创 2017-06-20 17:08:27 · 779 阅读 · 0 评论 -
Java 带权图-最小生成树
头疼原创 2017-06-19 18:26:00 · 350 阅读 · 0 评论 -
java 链表哈希表
package com.guge.test;import java.util.Random;/** * Created by guugangzhu on 2017/6/1. */public class HashLink { public static void main(String[] args) { HashLink hashLink=new Has原创 2017-06-01 23:49:53 · 220 阅读 · 0 评论 -
java 堆排序
package com.guge.test.heap;import java.util.Random;/** * Created by Guge on 2017/6/6. */public class HeapSort { private Node[] heapArray; private int maxSize; private int currentSiz原创 2017-06-06 12:12:23 · 142 阅读 · 0 评论 -
java 有向图
package com.guge.test.graph;/** * 有向图 * Created by Guge on 2017/6/12. */public class GraphD { private int maxVerts; private Vertex[] vertexList; private int[][] adjMat; private i原创 2017-06-16 14:34:22 · 2062 阅读 · 0 评论 -
java 堆
package com.guge.test.heap;import java.util.Random;/** * Created by guugangzhu on 2017/6/4. */public class Heap { private Node[] heapArray; private int maxSize; private int currentS原创 2017-06-04 23:41:01 · 126 阅读 · 0 评论 -
Java归并排序
package com.guge.test.recursion;/** * Created by guugangzhu on 2017/5/17. */public class MergeSort { private int[] theArray; private int mElems; public MergeSort(int max){ th原创 2017-05-17 11:02:15 · 164 阅读 · 0 评论 -
Java哈希表
package com.guge.test;/** * Created by guugangzhu on 2017/5/25. */public class Hash { private HashItem[] hashArray; private int arraySize; private HashItem nonItem; public Hash(原创 2017-05-26 12:06:38 · 142 阅读 · 0 评论 -
Java 234树
package com.guge.test.tree234;/** * Created by guugangzhu on 2017/5/12. */public class Tree234 { private Node root=new Node(); public int find(long key){ Node curNode=root;原创 2017-05-13 18:03:12 · 378 阅读 · 0 评论 -
Java二叉树
package com.guge.test.tree;import java.util.TreeMap;/** * Created by guugangzhu on 2017/5/2. */public class BinaryTree { private Node root; private TreeMap treeMap; public Node find原创 2017-05-13 18:01:43 · 158 阅读 · 0 评论 -
Java 图
package com.guge.test.graph;import java.util.Stack;/*** Created by Guge on 2017/6/8.*/public class Graph {private int maxVerts;private Vertex[] vertexList;private int[][] adjMat;原创 2017-06-08 15:48:12 · 208 阅读 · 0 评论