arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0711.0251cs.DS
收藏

在线拓扑排序的快速算法

Faster Algorithms for Online Topological Ordering

Telikepalli Kavitha, Rogers Mathew

摘要:

给出了两个算法,用于在m条边的在线边插入序列下,保持n阶有向无环图的拓扑序。在线拓扑排序的有效算法有许多应用,包括在线圈检测,这是发现在有向图中的任意边插入序列下引入圈的第一边。在本文中,我们提出了有效的算法在线拓扑排序问题。我们首先提出一个简单的算法,运行时间为O(n^{5/2})的在线拓扑排序问题。这是目前在稠密图上解决这个问题的最快算法,即,当m > n^{5/3}时。然后,我们提出了一个算法的运行时间为O((m + nlog n)\sqrt{m}),这是更有效的稀疏图。我们的结果产生了一个改进的上界O(min(n^{5/2},(m + nlog n)sqrt{m}))的在线拓扑排序问题。

英文摘要:

We present two algorithms for maintaining the topological order of a directed acyclic graph with n vertices, under an online edge insertion sequence of m edges. Efficient algorithms for online topological ordering have many applications, including online cycle detection, which is to discover the first edge that introduces a cycle under an arbitrary sequence of edge insertions in a directed graph. In this paper we present efficient algorithms for the online topological ordering problem. We first present a simple algorithm with running time O(n^{5/2}) for the online topological ordering problem. This is the current fastest algorithm for this problem on dense graphs, i.e., when m > n^{5/3}. We then present an algorithm with running time O((m + nlog n)\sqrt{m}); this is more efficient for sparse graphs. Our results yield an improved upper bound of O(min(n^{5/2}, (m + nlog n)sqrt{m})) for the online topological ordering problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑