...
首页> 外文期刊>ACM transactions on algorithms >A New Approach to Incremental Cycle Detection and Related Problems
【24h】

A New Approach to Incremental Cycle Detection and Related Problems

机译:增量循环检测的新方法及相关问题

获取原文
获取原文并翻译 | 示例

摘要

We consider the problem of detecting a cycle in a directed graph that grows by arc insertions and the related problems of maintaining a topological order and the strong components of such a graph. For these problems, we give two algorithms, one suited to sparse graphs, the other to dense graphs. The former takes O(min{m(1/2), n(2/3)}m) time to insert m arcs into an n-vertex graph; the latter takes O(n(2) log n) time. Our sparse algorithm is substantially simpler than a previous O(m(3/2))-time algorithm; it is also faster on graphs of sufficient density. The time bound of our dense algorithm beats the previously best time bound of O(n(5/2)) for dense graphs. Our algorithms rely for their efficiency on vertex numberings weakly consistent with topological order: we allow ties. Bounds on the size of the numbers give bounds on running time.
机译:我们考虑了在有向图中检测到因弧插入而增长的循环的问题,以及维护拓扑顺序和此类图的强成分的相关问题。针对这些问题,我们提供了两种算法,一种适合于稀疏图,另一种适合于稠密图。前者需要O(min {m(1/2),n(2/3)} m)的时间才能将m个圆弧插入n个顶点图;后者花费O(n(2)log n)时间。我们的稀疏算法比以前的O(m(3/2))时间算法简单得多;在密度足够大的图形上也更快。对于密集图,我们的密集算法的时限超过了O(n(5/2))的先前最佳时限。我们的算法依赖于与拓扑顺序弱相符的顶点编号的效率:我们允许联系。数字大小的界线限制了运行时间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号