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

一个O(n^{2.75})的在线拓扑排序算法

An O(n^{2.75}) algorithm for online topological ordering

Deepak Ajwani, Tobias Friedrich, Ulrich Meyer

摘要:

我们提出了一个简单的算法,它保持了一个在线的边插入序列下的n个节点的有向无环图的拓扑顺序在O(n^{2.75})的时间,独立于插入的边的数量m。对于密集DAG,这是Katriel和Bodlaender之前的O(min(m^{3/2} log(n),m^{3/2} + n^2 log(n))最佳结果的改进。我们还提供了一个经验比较我们的算法与其他算法的在线拓扑排序。我们的实现在某些硬实例上优于它们,同时在导致完整DAG的随机边缘插入序列上仍然具有竞争力。

英文摘要:

We present a simple algorithm which maintains the topological order of a directed acyclic graph with n nodes under an online edge insertion sequence in O(n^{2.75}) time, independent of the number of edges m inserted. For dense DAGs, this is an improvement over the previous best result of O(min(m^{3/2} log(n), m^{3/2} + n^2 log(n)) by Katriel and Bodlaender. We also provide an empirical comparison of our algorithm with other algorithms for online topological sorting. Our implementation outperforms them on certain hard instances while it is still competitive on random edge insertion sequences leading to complete DAGs.

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

↑