有向无环图的距离与分层
数据结构与算法
2017-11-13 v2
摘要
无向无权重图 的直径是从任意顶点 到另一顶点 ()距离的最大值,其中距离即 为 中从 到 的最短路径长度。DAG 是无环有向图。我们用 表示无权重 DAG 的直径。DAG 的伸展度是对所有 从 到 的最长路径长度,记为 。无向图直径可通过执行 次广度优先搜索在 时间内算出。我们证明 DAG 的伸展度与直径可分别在 时间与 时间内算出。若对所有顶点可一致地赋予层号,则 DAG 是平衡的。分层即指此种赋值。我们定义了平衡 DAG。设计了一种高效算法,运行时间 ,可检测给定 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