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

通过矩阵树定理实现快速精确算法

Fast exact algorithms via the Matrix Tree Theorem

IMSc(印度数学科学研究所)

V. Arvind, Srijan Chakraborty, Samir Datta, Asif Khan

AI总结:

本文提出基于矩阵树定理的快速精确算法,用于计算二分图完美匹配及最大匹配计数,改进了运行时间并展示了方法的灵活性。

摘要:

快速精确算法已知用于无向和有向二分图中的哈密顿路径,通过优雅但复杂的算法,这些算法彼此差别很大。我们设计了简单且相似的算法,具有相同的上界。这些算法的共同特点是使用矩阵树定理和使用单位根进行筛选。接下来,我们使用该框架为二分图上的完美匹配提供替代算法,即计算一个n/2 × n/2方阵的{0,1}- permanents,其运行时间与Ryser相似。我们通过展示方法的灵活性,计算将图划分为k星(k星由一个具有k-1个叶子子节点的树组成)的方式数。有趣的是,我们的运行时间改进到O*((1+ε_k)^n),其中ε_k随着k趋向于无穷大而趋向于0。作为补充,利用Björklund为一般图中的精确完美匹配计数的算法,我们证明最大匹配计数可以在O*(2^ν)时间内完成,其中ν是最大匹配的大小。这里的关键成分是著名的Gallai-Edmonds分解定理。所有我们的算法都在多项式空间内运行。

英文摘要:

Fast exact algorithms are known for Hamiltonian paths in undirected and directed bipartite graphs through elegant though involved algorithms that are quite different from each other. We devise algorithms that are simple and similar to each other while having the same upper bounds. The common features of these algorithms is the use of the Matrix-Tree theorem and sieving using roots of unity. Next, we use the framework to provide alternative algorithms to count perfect matchings in bipartite graphs on $n$ vertices, i.e., computing the $\{0,1\}$-permanent of a square $n/2 \times n/2$ matrix which runs in a time similar to Ryser. We demonstrate the flexibility of our method by counting the number of ways to vertex partition the graph into $k$-stars (a $k$-star consist of a tree with a root having $k-1$ children that are all leaves). Interestingly, our running time improves to $O^*((1+ε_k)^n)$ with $ε_k \rightarrow 0$ as $k \rightarrow \infty$. As an aside, making use of Björklund's algorithm for exact counting perfect matchings in general graphs, we show that the count of maximum matchings can be computed in time $O^*(2^ν)$ where $ν$ is the size of a maximum matching. The crucial ingredient here is the famous Gallai-Edmonds decomposition theorem. All our algorithms run in polynomial space.

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

↑