标签:总结 成长 markdown master triple man 路径问题 sub rac
public abstract class AbstractGraph<T> //抽象图类
{
protected static final int MAX_WEIGHT=0x0000ffff; //∞
protected SeqList<T> vertexlist; //顶点顺序表
//构造空图,顶点数为0,length指定顶点顺序表容量
public AbstractGraph(int length)
public AbstractGraph()
public int vertexCount() //图的顶点数
public String toString() //图的顶点集合描述
public T getVertex(int i) //顶点元素
public void setVertex(int i, T x) //设置顶点元素为x
}
public abstract class AbstractGraph<T> //抽象图类
{
//以下抽象方法没有方法体,由子类提供实现
public abstract int insertVertex(T x); //插入顶点
public abstract void removeVertex(int i); //删除顶点及边
public abstract int weight(int i, int j); //边的权值
protected abstract int next(int i, int j); //后继邻接顶点
}
public class Triple implements Comparable<Triple>
{
int row, column, value; //行、列、元素
public int compareTo(Triple tri)
//按行、列位置比较大小,约定排序次序
}
public class MatrixGraph<T>
extends AbstractGraph<T>
{
protected Matrix matrix; //存储图的邻接矩阵
public MatrixGraph(int length)
public MatrixGraph()
public MatrixGraph(T[] vertices)
public MatrixGraph(T[] vertices, Triple[] edges)
//顶点集和边集构造图
public String toString() //图的描述
}
数据结构现在应该学的比较完整了,感觉图是对前几个数据结构的一个综合运用,该下功夫整理整理了。
代码行数(新增/累积) | 博客量(新增/累积) | 学习时间(新增/累积) | 重要成长 | |
---|---|---|---|---|
目标 | 5000行 | 30篇 | 400小时 | |
第一周 | 200/200 | 2/2 | 20/20 | |
第二周 | 300/500 | 2/4 | 18/38 | |
第三周 | 500/1000 | 3/7 | 22/60 | |
第四周 | 300/1300 | 2/9 | 30/90 |
参考:软件工程软件的估计为什么这么难,软件工程 估计方法
(有空多看看现代软件工程 课件
软件工程师能力自我评价表)
标签:总结 成长 markdown master triple man 路径问题 sub rac
原文地址:http://www.cnblogs.com/20162327WJH/p/7860539.html