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

一种快速的置换模式匹配指数算法

Faster Exponential Algorithm for Permutation Pattern Matching

Pawel Gawrychowski, Mateusz Rzepecki

摘要:

排列模式匹配问题询问,给定$n$元素和$π$上的两个排列$σ$,$σ$是否允许具有与$π$相同的相对顺序的子序列(或者,在计数版本中,有多少这样的顺序)。这个自然问题被Bose,Buss和Lubiw [IPL 1998]证明是NP完全的,因此我们应该寻求精确的指数时间解。Berendsohn、Kozma和Marx [IPEC 2019]提出的迄今为止渐进最快的此类解决方案在$\mathcal{O}(1.6181^n)$时间内有效。我们设计了一个简单而快速的$\mathcal{O}(1.415^{n})$时间算法的检测和计数版本。我们还证明,这是最佳的算法之间的一定的自然类。

英文摘要:

The Permutation Pattern Matching problem asks, given two permutations $σ$ on $n$ elements and $π$, whether $σ$ admits a subsequence with the same relative order as $π$ (or, in the counting version, how many such subsequences are there). This natural problem was shown by Bose, Buss and Lubiw [IPL 1998] to be NP-complete, and hence we should seek exact exponential time solutions. The asymptotically fastest such solution up to date, by Berendsohn, Kozma and Marx [IPEC 2019], works in $\mathcal{O}(1.6181^n)$ time. We design a simple and faster $\mathcal{O}(1.415^{n})$ time algorithm for both the detection and the counting version. We also prove that this is optimal among a certain natural class of algorithms.

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

↑