Griddings of permutations and hardness of pattern matching
Abstract
We study the complexity of the decision problem known as Permutation Pattern Matching, or PPM. The input of PPM consists of a pair of permutations (the `text') and (the `pattern'), and the goal is to decide whether contains as a subpermutation. On general inputs, PPM is known to be NP-complete by a result of Bose, Buss and Lubiw. In this paper, we focus on restricted instances of PPM where the text is assumed to avoid a fixed (small) pattern ; this restriction is known as Av()-PPM. It has been previously shown that Av()-PPM is polynomial for any of size at most 3, while it is NP-hard for any containing a monotone subsequence of length four. In this paper, we present a new hardness reduction which allows us to show, in a uniform way, that Av()-PPM is hard for every of size at least 6, for every of size 5 except the symmetry class of , as well as for every symmetric to one of the three permutations , and . Moreover, assuming the exponential time hypothesis, none of these hard cases of Av()-PPM can be solved in time . Previously, such conditional lower bound was not known even for the unconstrained PPM problem. On the tractability side, we combine the CSP approach of Guillemot and Marx with the structural results of Huczynska and Vatter to show that for any monotone-griddable permutation class C, PPM is polynomial when the text is restricted to a permutation from C.
Keywords
Cite
@article{arxiv.2107.10897,
title = {Griddings of permutations and hardness of pattern matching},
author = {Vít Jelínek and Michal Opler and Jakub Pekárek},
journal= {arXiv preprint arXiv:2107.10897},
year = {2021}
}
Comments
36 pages, 7 figures, extended abstract will appear in proceedings of MFCS 2021; corrected typos in abstract and introduction