arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.05475cs.DS
收藏

有向图的鲁棒拓扑排序

Robust Topological Orderings for Directed Graphs

James Smith

AI总结:

本研究修改Pearce-Kelly算法,使其可容忍有向图中的环,在图恢复无环时能即刻还原拓扑排序,且修改代价极低,仅需小幅调整。

摘要:

我们对用于维护有向无环图拓扑排序的Pearce-Kelly算法进行了修改,使其能够容忍环的存在。环固然会让拓扑排序失去意义,但容忍环在实际场景中颇具实用价值。例如,用户可能会在项目中意外引入循环依赖,随后又修正该错误。在这类情况下,维护相关数据结构更为妥当,如此一来,当有向图恢复为无环状态时,便可即刻还原拓扑排序。研究表明,新增这一功能的代价极低,仅需小幅修改并留意部分细节即可实现。

英文摘要:

We modify the Pearce-Kelly algorithm that maintains a topological ordering for a directed acyclic graph in order to allow cycles to be tolerated. Cycles make topological orderings moot, of course, however tolerating them is useful in practice. A user may mistakenly introduce a cyclic dependency in their project,, for example, and then subsequently fix their mistake. In these cases it is better to maintain the relevant data structures so that if and when the directed graph becomes acyclic again, a topological ordering can be instantly recovered. It turns out that adding this functionality costs us little, only small modifications and some attention to detail are needed.

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

↑