知识卡片
邻接表按顶点列出邻点
邻接表为每个顶点保存一列邻接顶点;有向边 u→v 只在 u 的表中记录 v。它适合遍历某顶点实际发出的边,空间随顶点与边的总量增长。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第20章 基本图算法 · 查看原书依据
The adjacency-list representation of a graph G = (V, E) consists of an array Adj of |V| lists, one for each vertex in V. For each u ∈ V, the adjacency list Adj[u] contains all the vertices v such that there is an edge (u, v) ∈ E.
参考来源
- 位置:《算法导论(第4版)》第20章《基本图算法》(OEBPS/chapter020.xhtml,文本字符[0,5000))。
- 结论依据:原文定义Adj数组及每个顶点的邻接项。
- 原始内容:The adjacency-list representation of a graph G = ( V , E ) consists of an array Adj of | V | lists, one for each vertex in V . For each u ∈ V , the adjacency list Adj [ u ] contains all the vertices v such that there is an edge ( u , v ) ∈ E .