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

DAG中最低公共祖先的列表、查询和计数:算法和细粒度下限

Listing, Verifying and Counting Lowest Common Ancestors in DAGs: Algorithms and Fine-Grained Lower Bounds

Surya Mathialagan, Virginia Vassilevska Williams, Yinzhan Xu

摘要:

AP-LCA问题要求,给定$n$ -节点有向无环图(DAG),为DAG中的每对顶点$u$和$v$计算$u$和$v$的最低共同祖先(LCA)(如果存在)。在本文中,我们研究了几个有趣的变体AP LCA,提供算法和细粒度的下界。我们得到的下界是LCA问题高于$n^{ω-o(1)}$的第一个条件下界,其中$ω$是矩阵乘法指数。我们的一些结果包括:-在任何DAG,我们可以检测到所有的顶点对,最多有两个LCA,并列出所有的LCA在$O(n^ω)$时间。该算法扩展了[Kowaluk和Lingas ESA'07]的结果,该结果显示了$\tilde{O}(n^ω)$时间算法,该算法检测DAG中具有唯一LCA的所有对并输出其相应的LCA。- 在3-均匀5-超团检测需要$n^{5-o(1)}$时间的流行假设下,列出DAG中每个顶点对的$7$ LCA需要$n^{3-o(1)}$时间。这是令人惊讶的,因为基本上立方时间足以列出所有LCA(如果$ω=2$)。- 计算DAG中每个顶点对的LCA数量需要强指数时间假设下的$n^{3-o(1)}$时间和$4$ -团假设下的$n^{ω(1,2,1)-o(1)}$时间。这表明,[Echkardt,Mühling和Nowak ESA'07]列出每对顶点的所有LCA的算法可能是最佳的。- 给定每个顶点对$u,v$的DAG和顶点$w_{u,v}$,验证是否所有$w_{u,v}$都是有效LCA需要$n^{2.5-o(1)}$时间,假设3-均匀4-超团需要$n^{4 - o(1)}$时间。这违背了验证比计算更容易的常见直觉,因为返回每个顶点对的一些LCA可以在$O(n^{2.447})$时间内解决[Grandoni et al. SODA'21]。

英文摘要:

The AP-LCA problem asks, given an $n$-node directed acyclic graph (DAG), to compute for every pair of vertices $u$ and $v$ in the DAG a lowest common ancestor (LCA) of $u$ and $v$ if one exists. In this paper we study several interesting variants of AP-LCA, providing both algorithms and fine-grained lower bounds for them. The lower bounds we obtain are the first conditional lower bounds for LCA problems higher than $n^{ω-o(1)}$, where $ω$ is the matrix multiplication exponent. Some of our results include: - In any DAG, we can detect all vertex pairs that have at most two LCAs and list all of their LCAs in $O(n^ω)$ time. This algorithm extends a result of [Kowaluk and Lingas ESA'07] which showed an $\tilde{O}(n^ω)$ time algorithm that detects all pairs with a unique LCA in a DAG and outputs their corresponding LCAs. - Listing $7$ LCAs per vertex pair in DAGs requires $n^{3-o(1)}$ time under the popular assumption that 3-uniform 5-hyperclique detection requires $n^{5-o(1)}$ time. This is surprising since essentially cubic time is sufficient to list all LCAs (if $ω=2$). - Counting the number of LCAs for every vertex pair in a DAG requires $n^{3-o(1)}$ time under the Strong Exponential Time Hypothesis, and $n^{ω(1,2,1)-o(1)}$ time under the $4$-Clique hypothesis. This shows that the algorithm of [Echkardt, Mühling and Nowak ESA'07] for listing all LCAs for every pair of vertices is likely optimal. - Given a DAG and a vertex $w_{u,v}$ for every vertex pair $u,v$, verifying whether all $w_{u,v}$ are valid LCAs requires $n^{2.5-o(1)}$ time assuming 3-uniform 4-hyperclique requires $n^{4 - o(1)}$ time. This defies the common intuition that verification is easier than computation since returning some LCA per vertex pair can be solved in $O(n^{2.447})$ time [Grandoni et al. SODA'21].

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

↑