English

Pattern matching in $(213,231)$-avoiding permutations

Data Structures and Algorithms 2015-11-06 v1 Combinatorics

Abstract

Given permutations σSk\sigma \in S_k and πSn\pi \in S_n with k<nk<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-33 permutations 213213 and 231231. For the special case where only σ\sigma avoids 213213 and 231231, we present a O(max(kn2,n2log(log(n)))O(max(kn^2,n^2\log(\log(n))) time algorithm. We extend our research to bivincular patterns that avoid 213213 and 231231 and present a O(kn4)O(kn^4) time algorithm. Finally we look at the related problem of the longest subsequence which avoids 213213 and 231231.

Keywords

Cite

@article{arxiv.1511.01770,
  title  = {Pattern matching in $(213,231)$-avoiding permutations},
  author = {Both Emerite Neou and Romeo Rizzi and Stéphane Vialette},
  journal= {arXiv preprint arXiv:1511.01770},
  year   = {2015}
}
R2 v1 2026-06-22T11:38:20.378Z