
数据结构
文章平均质量分 78
永不言败的小宇
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
树的基本操作
public class Node { //node class, the base of tree int data; int index; Node leftChild; Node rightChild; } import java.util.Scanner; /** * @author NEU 灏忓畤 * @version 1.1 */ public cl原创 2014-08-31 12:10:36 · 396 阅读 · 0 评论 -
图的基本操作(java)
class ANode { int data; ANode next ; } class AGraph { ANode[] headNode = null; int n,e; }原创 2014-09-02 22:34:11 · 789 阅读 · 0 评论 -
最短路径算法(java实现)
public class MGraph { public static final int NULL = 1000; int[][] edges = new int[9][9]; int n,e; }原创 2014-09-04 20:32:15 · 4183 阅读 · 0 评论 -
最小生成树(java实现)
/** * 定义基本数据结构 * @author 小宇 */ public class MGraph { //当边edges[i][j]不存在时,用null表示其值 public static final int NULL = 1000; static final int MAXV = 100; //边集 int[][] edges = n原创 2014-09-02 22:37:17 · 966 阅读 · 0 评论 -
jdbc 连接 mysql数据库
import java.sql.*; public class EmpDAO { public static void main(String[] args){ // 驱动程序名 String driver = "com.mysql.jdbc.Driver"; // URL指向要访问的数据库名scutcs String ur原创 2015-01-02 10:35:03 · 581 阅读 · 0 评论