paper

Finding small patterns in permutations in linear time

arXiv:1307.3073

Abstract

Given two permutations and , the \textsc{Permutation Pattern} problem asks if is a subpattern of . We show that the problem can be solved in time , where and . 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 as a subpattern of , or finds a decomposition of whose width is bounded by a function of . Then we show how to solve the \textsc{Permutation Pattern} problem in linear time if a bounded-width decomposition is given in the input.