The Complexity of Pattern Matching for -Avoiding and Skew-Merged Permutations
arXiv:1510.06051 · doi:10.46298/dmtcs.1308
Abstract
The Permutation Pattern Matching problem, asking whether a pattern permutation is contained in a permutation , 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 and are -avoiding; the second is applicable if and are skew-merged. Both algorithms have a runtime of , where is the length of and the length of .