知识卡片
邻接矩阵按顶点对存边
邻接矩阵用 V×V 的表按有序顶点对记录是否有边;无向图的矩阵沿主对角线对称。
它支持按行列直接定位边状态,但即使边很少也要 Θ(V²) 存储。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第20章 基本图算法 · 查看原书依据
, |V| in some arbitrary manner. Then the adjacency-matrix representation of a graph G consists of a |V| × |V| matrix A = (aij) such that
参考来源
- 位置:《算法导论(第4版)》第20章《基本图算法》(OEBPS/chapter020.xhtml,文本字符[0,7500))。
- 结论依据:原文定义矩阵规模,并讨论无向对称与空间代价;图Art_P602给出0/1项。
- 原始内容:The adjacency-matrix representation of a graph G = ( V , E ) assumes that the vertices are numbered 1, 2, … , | V | in some arbitrary manner. Then the adjacency-matrix representation of a graph G consists of a | V | × | V | matrix A = ( a ij ) such that