有向图中欧拉路径的最优枚举
Optimal Enumeration of Eulerian Trails in Directed Graphs
AI总结:
本文提出一种简单算法,以最优时间O(m+z_T)直接枚举有向图中的欧拉路径,改进了现有算法并扩展至多图应用。
摘要:
BEST定理由德布鲁因、范阿登内-埃亨费斯特、史密斯和图灵提出,是图论中的经典工具,将有向图$G=(V,E)$中的欧拉路径与$G$中的arborescence联系起来。特别是,可以利用BEST定理在多项式时间内计算$G$中的欧拉路径数量。对于枚举$G$中的欧拉路径,可以自然地首先枚举$G$中的arborescence,然后利用BEST定理的洞察力来枚举$G$中的欧拉路径:每个$G$中的arborescence对应至少一个$G$中的欧拉路径。近二十年来,最快的枚举$G$中arborescence的算法时间为$O(m\log n + n + z_A \log^2 n)$,其中$n=|V|$,$m=|E|$,$z_A$是$G$中的arborescence数量[Uno, ISAAC 1998]。由于Uno的算法无法导致有向图中欧拉路径的最优枚举,我们被激励开发此问题的直接算法。我们的主要贡献是设计一个 remarkably 简单的算法,直接在$O(m + z_T)$时间内枚举$G$中的$z_T$个欧拉路径。作为结果,我们的结果在$z_T=o(n^2)$时改进了BEST定理对$G$中欧拉路径计数的实现,同时也无条件改进了Conte等人[ FCT 2021]为同一任务设计的组合$O(m\cdot z_T)$-时间算法。此外,我们还表明,通过适当处理,我们的算法可以扩展到直接枚举有向多图中的欧拉路径,从而在生物信息学和数据隐私领域应用。
英文摘要:
The BEST theorem, due to de Bruijn, van Aardenne-Ehrenfest, Smith, and Tutte, is a classical tool from graph theory that links the Eulerian trails in a directed graph $G=(V,E)$ with the arborescences in $G$. In particular, one can use the BEST theorem to count the Eulerian trails in $G$ in polynomial time. For enumerating the Eulerian trails in $G$, one could naturally resort to first enumerating the arborescences in $G$ and then exploiting the insight of the BEST theorem to enumerate the Eulerian trails in $G$: every arborescence in $G$ corresponds to at least one Eulerian trail in $G$. For over two decades, the fastest algorithm for enumerating arborescences in $G$ took $O(m\log n + n + z_A \log^2 n)$ time, where $n=|V|$, $m=|E|$, and $z_A$ is the number of arborescences in $G$ [Uno, ISAAC 1998]. Since Uno's algorithm does not lead to an optimal enumeration of Eulerian trails in directed graphs, we were motivated to develop a direct algorithm for this problem. Our central contribution is a remarkably simple algorithm to directly enumerate the $z_T$ Eulerian trails in $G$ in the optimal $O(m + z_T)$ time. As a consequence, our result improves on an implementation of the BEST theorem for counting Eulerian trails in $G$ when $z_T=o(n^2)$, and also unconditionally improves the combinatorial $O(m\cdot z_T)$-time algorithm of Conte et al. [FCT 2021] for the same task. Moreover, we show that, with some care, our algorithm can be extended to enumerate Eulerian trails in directed multigraphs in optimal time, enabling applications in bioinformatics and data privacy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。