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

无向图中增量式DFS树的改进算法

An Improved Algorithm for Incremental DFS Tree in Undirected Graphs

Lijie Chen, Ran Duan, Ruosong Wang, Hanrui Zhang, Tianyi Zhang

摘要:

深度优先搜索(DFS)树是用于设计高效图算法的最知名的数据结构之一。给定一个具有$n$顶点和$m$边的无向图$G=(V,E)$,教科书算法需要$O(n+m)$时间来构造DFS树。在本文中,我们研究的问题,维护DFS树时,图正在进行增量更新。形式上,我们显示:给定一个任意的边或顶点插入的在线序列,有一种算法可以在$O(n)$中报告DFS树,每个操作的最坏情况时间,并且需要$O\left(\min\{m \log n, n^2\}\right)$预处理时间。我们的结果改进了Baswana等人提出的$O(n \log^3 n)$最坏情况更新时间算法和Nakamura和Sadakane提出的$O(n \log n)$时间算法,并在需要显式输出DFS树时匹配了平凡的$Ω(n)$下界.我们的结果建立在Baswana等人的突破性工作中引入的框架之上,以及Duan和Zhan对树划分引理的新颖使用,以及Chazelle和Guibas著名的分数级联技术。

英文摘要:

Depth first search (DFS) tree is one of the most well-known data structures for designing efficient graph algorithms. Given an undirected graph $G=(V,E)$ with $n$ vertices and $m$ edges, the textbook algorithm takes $O(n+m)$ time to construct a DFS tree. In this paper, we study the problem of maintaining a DFS tree when the graph is undergoing incremental updates. Formally, we show: Given an arbitrary online sequence of edge or vertex insertions, there is an algorithm that reports a DFS tree in $O(n)$ worst case time per operation, and requires $O\left(\min\{m \log n, n^2\}\right)$ preprocessing time. Our result improves the previous $O(n \log^3 n)$ worst case update time algorithm by Baswana et al. and the $O(n \log n)$ time by Nakamura and Sadakane, and matches the trivial $Ω(n)$ lower bound when it is required to explicitly output a DFS tree. Our result builds on the framework introduced in the breakthrough work by Baswana et al., together with a novel use of a tree-partition lemma by Duan and Zhan, and the celebrated fractional cascading technique by Chazelle and Guibas.

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

↑