一种基于交替序列的快速置换模式匹配算法
A Fast Algorithm for Permutation Pattern Matching Based on Alternating Runs
摘要:
NP完全置换模式匹配问题询问$k$置换$P$是否作为模式包含在$n$置换$T$中。如果存在$P$到$T$中的保序嵌入,则是这种情况。在本文中,我们提出了一个固定参数的算法解决这个问题的最坏情况下运行的$\mathcal{O}(1.79^{\mathsf{run}(T)}\cdot n\cdot k)$,其中$\mathsf{run}(T)$表示的交替运行的$T$的数量。该算法特别适用于$T$运行次数很少的情况,即,一些起伏。此外,由于$\mathsf{run}(T)<n$,这可以被看作是一个$\mathcal{O}(1.79^{n}\cdot n\cdot k)$算法,它是第一个击败指数$2^n$运行时的蛮力搜索。此外,我们证明了在标准的复杂性理论假设下,这样一个固定参数的易处理性结果是不可能的$\mathsf{run}(P)$。
英文摘要:
The NP-complete Permutation Pattern Matching problem asks whether a $k$-permutation $P$ is contained in a $n$-permutation $T$ as a pattern. This is the case if there exists an order-preserving embedding of $P$ into $T$. In this paper, we present a fixed-parameter algorithm solving this problem with a worst-case runtime of $\mathcal{O}(1.79^{\mathsf{run}(T)}\cdot n\cdot k)$, where $\mathsf{run}(T)$ denotes the number of alternating runs of $T$. This algorithm is particularly well-suited for instances where $T$ has few runs, i.e., few ups and downs. Moreover, since $\mathsf{run}(T)<n$, this can be seen as a $\mathcal{O}(1.79^{n}\cdot n\cdot k)$ algorithm which is the first to beat the exponential $2^n$ runtime of brute-force search. Furthermore, we prove that under standard complexity theoretic assumptions such a fixed-parameter tractability result is not possible for $\mathsf{run}(P)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。