English

The Complexity of Pattern Matching for $321$-Avoiding and Skew-Merged Permutations

Combinatorics 2023-06-22 v2 Data Structures and Algorithms

Abstract

The Permutation Pattern Matching problem, asking whether a pattern permutation π\pi is contained in a permutation τ\tau, is known to be NP-complete. In this paper we present two polynomial time algorithms for special cases. The first algorithm is applicable if both π\pi and τ\tau are 321321-avoiding; the second is applicable if π\pi and τ\tau are skew-merged. Both algorithms have a runtime of O(kn)O(kn), where kk is the length of π\pi and nn the length of τ\tau.

Keywords

Cite

@article{arxiv.1510.06051,
  title  = {The Complexity of Pattern Matching for $321$-Avoiding and Skew-Merged Permutations},
  author = {Michael H. Albert and Marie-Louise Lackner and Martin Lackner and Vincent Vatter},
  journal= {arXiv preprint arXiv:1510.06051},
  year   = {2023}
}
R2 v1 2026-06-22T11:25:05.153Z