中文

有向无环图的距离与分层

数据结构与算法 2017-11-13 v2

摘要

无向无权重图 G=(V,E)G=(V,E) 的直径是从任意顶点 uu 到另一顶点 vvu,vVu,v \in V)距离的最大值,其中距离即 d(u,v)d(u,v)GG 中从 uuvv 的最短路径长度。DAG 是无环有向图。我们用 δ(G)\delta (G) 表示无权重 DAG G=(V,E)G=(V,E) 的直径。DAG GG 的伸展度是对所有 (u,v)V(u, v) \in Vuuvv 的最长路径长度,记为 Δ(G)\Delta (G)。无向图直径可通过执行 V|V| 次广度优先搜索在 O(V(V+E))O(|V|(|V|+|E|)) 时间内算出。我们证明 DAG 的伸展度与直径可分别在 O(V+E)O(|V|+|E|) 时间与 O(VE)O(|V||E|) 时间内算出。若对所有顶点可一致地赋予层号,则 DAG 是平衡的。分层即指此种赋值。我们定义了平衡 DAG。设计了一种高效算法,运行时间 O(V+E)O(|V|+|E|),可检测给定 DAG 是否不平衡,否则对其分层。\ 关键词:直径,有向无环图,最长有向路径,图算法,复杂性。

关键词

引用

@article{arxiv.1711.03256,
  title  = {Distances in and Layering of a DAG},
  author = {Bhadrachalam Chitturi and Priyanshu Das},
  journal= {arXiv preprint arXiv:1711.03256},
  year   = {2017}
}

备注

4 Pages. Minor modification in the way affiliation is written. The time complexites of stretch and diameter are reversed. In big O notation V and E are changed to |V| and |E| respectively. The last sentence in the conclusion is rewritten