English

Faster Exponential Algorithm for Permutation Pattern Matching

Data Structures and Algorithms 2021-08-27 v1

Abstract

The Permutation Pattern Matching problem asks, given two permutations σ\sigma on nn elements and π\pi, whether σ\sigma admits a subsequence with the same relative order as π\pi (or, in the counting version, how many such subsequences are there). This natural problem was shown by Bose, Buss and Lubiw [IPL 1998] to be NP-complete, and hence we should seek exact exponential time solutions. The asymptotically fastest such solution up to date, by Berendsohn, Kozma and Marx [IPEC 2019], works in O(1.6181n)\mathcal{O}(1.6181^n) time. We design a simple and faster O(1.415n)\mathcal{O}(1.415^{n}) time algorithm for both the detection and the counting version. We also prove that this is optimal among a certain natural class of algorithms.

Keywords

Cite

@article{arxiv.2108.11475,
  title  = {Faster Exponential Algorithm for Permutation Pattern Matching},
  author = {Pawel Gawrychowski and Mateusz Rzepecki},
  journal= {arXiv preprint arXiv:2108.11475},
  year   = {2021}
}