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

森林中快速递减树和的算法

Fast decremental tree sums in forests

Max Planck Institute for Informatics(马克斯·普朗克信息学研究所)

Benjamin Aram Berendsohn, Marek Sokołowski

AI总结:

本文研究了森林中递减动态图问题,提出基于微宏树分解的数据结构,在O(log*n)时间内处理树和查询,且在无权重情况下可达到O(1)。同时,给出了渐近最优的算法,结合分解技术与预计算,实现最优操作时间。

摘要:

我们研究了两个基本的递减动态图问题。在两个问题中,我们需要在允许边删除、权重更新和特定信息检索查询的情况下维护一个大小为n的顶点加权森林。这两个问题可以使用标准动态森林数据结构如顶端树,在O(log n)时间内每更新/查询处理。我们探讨是否可以更快地解决仅删除的问题。首先,我们考虑树和查询,即请求森林中一个连通分量(即树)中顶点权重的总和。我们提供了一个预处理时间为O(n)、每个操作时间为O(log*n)的数据结构,基于微宏树分解(Alstrup et al., 1997)。如果森林是无权重的(即所有权重为1且不能更改),则操作时间可以提高到O(1)。此外,我们给出了渐近普遍最优的算法。更具体地说,我们的算法在群模型中工作,并在初始森林F上处理m次操作,运行时间为O(OPT(F, m))。这里OPT(F, m)是处理固定初始森林F和固定操作数m的最坏实例时最佳算法执行的权重加减次数。我们通过上述分解技术、预计算最优数据结构用于非常小的实例以及对OPT行为的一些见解来实现这一点。请注意,即使该算法的最坏情况复杂性仍对我们而言是未知的。第二,我们考虑子树和查询。这里,森林是根向的,查询subtree-sum(v)返回以v为根的子树中权重的总和。我们为该问题的几种变体展示了紧致的界限。 [...]

英文摘要:

We study two fundamental decremental dynamic graph problems. In both problems, we need to maintain a vertex-weighted forest of size $n$ under edge deletions, weight updates, and a certain information-retrieval query. Both problems can be solved in $O(\log n)$ time per update/query using standard dynamic forest data structures like top trees, even if additionally edge insertions are allowed. We investigate whether the deletion-only problem can be solved faster. First, we consider $\texttt{tree-sum}$ queries, where we ask for the sum of vertex weights in one of the connected components (i.e., trees) in the forest. We give a data structure with $O(n)$ preprocessing time and $O(\log^* n)$ time per operation, based on a micro-macro tree decomposition (Alstrup et al., 1997). If the forest is unweighted (i.e., all weights are 1 and cannot be changed), then the operation time can be improved to $O(1)$. Additionally, we give an asymptotically universally optimal algorithm. More specifically, our algorithm works in the group model, and processes $m$ operations on an initial forest $F$ in running time $O( \mathrm{OPT}(F, m) )$. Here $\mathrm{OPT}(F, m)$ is the number of weight additions and subtractions that a best possible algorithm performs to handle a worst-case instance for a fixed initial forest $F$ and a fixed number $m$ of operations. We achieve this with a combination of the aforementioned decomposition technique, precomputation of optimal data structures for very small instances, and some insights into the behavior of $\mathrm{OPT}$. Note that even the worst-case complexity of this algorithm remains unknown to us. Second, we consider $\texttt{subtree-sum}$ queries. Here, the forest is rooted, and a query $\texttt{subtree-sum}(v)$ returns the sum of weights in the subtree rooted at $v$. We show tight bounds for several variants of this problem. [...]

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

↑