计算机科学 > 数据结构与算法
[提交于 2015年11月6日]
标题:Pattern matching in $(213,231)$-avoiding permutations
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Given permutations $\sigma \in S_k$ and $\pi \in S_n$ with $k<n$, the \emph{pattern matching} problem is to decide whether $\pi$ matches $\sigma$ as an order-isomorphic subsequence. We give a linear-time algorithm in case both $\pi$ and $\sigma$ avoid the two size-$3$ permutations $213$ and $231$. For the special case where only $\sigma$ avoids $213$ and $231$, we present a $O(max(kn^2,n^2\log(\log(n)))$ time algorithm. We extend our research to bivincular patterns that avoid $213$ and $231$ and present a $O(kn^4)$ time algorithm. Finally we look at the related problem of the longest subsequence which avoids $213$ and $231$.
提交历史
来自:Both Emerite Neou[v1] 2015年11月6日 星期五 00:00:00 UTC