English

Finding small patterns in permutations in linear time

Data Structures and Algorithms 2013-11-01 v2 Discrete Mathematics

Abstract

Given two permutations σ\sigma and π\pi, the \textsc{Permutation Pattern} problem asks if σ\sigma is a subpattern of π\pi. We show that the problem can be solved in time 2O(2log)n2^{O(\ell^2\log \ell)}\cdot n, where =σ\ell=|\sigma| and n=πn=|\pi|. In other words, the problem is fixed-parameter tractable parameterized by the size of the subpattern to be found. We introduce a novel type of decompositions for permutations and a corresponding width measure. We present a linear-time algorithm that either finds σ\sigma as a subpattern of π\pi, or finds a decomposition of π\pi whose width is bounded by a function of σ|\sigma|. Then we show how to solve the \textsc{Permutation Pattern} problem in linear time if a bounded-width decomposition is given in the input.

Keywords

Cite

@article{arxiv.1307.3073,
  title  = {Finding small patterns in permutations in linear time},
  author = {Sylvain Guillemot and Dániel Marx},
  journal= {arXiv preprint arXiv:1307.3073},
  year   = {2013}
}
R2 v1 2026-06-22T00:49:37.841Z