The Complexity of Pattern Matching for $321$-Avoiding and Skew-Merged Permutations
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 $321$-avoiding; the second is applicable if $\pi$ and $\tau$ are skew-merged. Both algorithms have a runtime of $O(kn)$, where $k$ is the length of $\pi$ and $n$ the length of $\tau$.
- Publication:
-
arXiv e-prints
- Pub Date:
- October 2015
- DOI:
- 10.48550/arXiv.1510.06051
- arXiv:
- arXiv:1510.06051
- Bibcode:
- 2015arXiv151006051A
- Keywords:
-
- Mathematics - Combinatorics;
- Computer Science - Data Structures and Algorithms;
- 05A05;
- 68Q25
- E-Print:
- Discrete Mathematics &