← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3648.c

邻接矩阵按顶点对存边

理解等级:初级

邻接矩阵用 V×V 的表按有序顶点对记录是否有边;无向图的矩阵沿主对角线对称。

它支持按行列直接定位边状态,但即使边很少也要 Θ(V²) 存储。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《算法导论(第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