[Paper Review] Hardness of permutation pattern matching
This paper establishes the NP-completeness of Permutation Pattern Matching (PPM) even when the pattern π avoids decreasing subsequences of length 3 and the text τ avoids such subsequences of length 4—providing the first known NP-hardness result within a proper hereditary class of permutations. It further establishes a complete complexity dichotomy for PPM restricted to patterns avoiding a single permutation α, showing polynomial solvability if α ∈ {1, 12, 21, 132, 213, 231, 312}, and NP-completeness otherwise.
Permutation Pattern Matching (or PPM) is a decision problem whose input is a pair of permutations π and τ, represented as sequences of integers, and the task is to determine whether τ contains a subsequence order-isomorphic to π. Bose, Buss and Lubiw proved that PPM is NP-complete on general inputs.We show that PPM is NP-complete even when π has no decreasing subsequence of length 3 and τ has no decreasing subsequence of length 4. This provides the first known example of PPM being hard when one or both of π and σ are restricted to a proper hereditary class of permutations.This hardness result is tight in the sense that PPM is known to be polynomial when both π and τ avoid a decreasing subsequence of length 3, as well as when π avoids a decreasing subsequence of length 2. The result is also tight in another sense: we will show that for any hereditary proper subclass C of the class of permutations avoiding a decreasing sequence of length 3, there is a polynomial algorithm solving PPM instances where π is from C and τ is arbitrary.We also obtain analogous hardness and tractability results for the class of so-called skew-merged patterns.From these results, we deduce a complexity dichotomy for the PPM problem restricted to π belonging to Av(α), where Av(α) denotes the class of permutations avoiding a permutation α. Specifically, we show that the problem is polynomial when α is in the set {1, 12, 21, 132, 213, 231, 312}, and it is NP-complete for any other α.
Motivation & Objective
- To determine the computational complexity of Permutation Pattern Matching (PPM) when restricted to specific hereditary classes of permutations.
- To identify the precise boundary between tractable and intractable instances of PPM under structural constraints on the pattern π and text τ.
- To establish a complete complexity dichotomy for PPM when the pattern π belongs to the class Av(α), i.e., avoids a single permutation α.
- To characterize all permutations α for which PPM remains polynomial-time solvable when π is restricted to Av(α).
- To demonstrate tightness of the hardness result by showing that for any proper hereditary subclass C of Av(321), PPM is polynomial when π ∈ C and τ is arbitrary.
Proposed method
- Reduction from 3-Partition to construct NP-completeness proofs for PPM under restricted pattern and text constraints.
- Use of structural properties of permutations avoiding long decreasing subsequences, particularly focusing on the classes Av(321) and Av(4321).
- Application of the concept of skew-merged permutations to extend hardness and tractability results to broader classes.
- Construction of polynomial-time algorithms for PPM when π belongs to any proper hereditary subclass of Av(321), leveraging dynamic programming and structural decomposition.
- Analysis of the closure properties of hereditary classes and their impact on the complexity of PPM.
- Formal characterization of the set of permutations α for which PPM is polynomial in Av(α), using extremal combinatorics and forbidden subpattern analysis.
Experimental results
Research questions
- RQ1Is PPM NP-complete when both π and τ avoid decreasing subsequences of length 3, or is it polynomial in this case?
- RQ2Can NP-completeness of PPM be established within a proper hereditary class of permutations, such as Av(321) for π and Av(4321) for τ?
- RQ3What is the precise set of permutations α for which PPM remains polynomial when restricted to Av(α)?
- RQ4Is the NP-completeness result tight in the sense that relaxing the constraints further leads to tractability?
- RQ5Can a polynomial-time algorithm be constructed for PPM when π belongs to any proper hereditary subclass of Av(321), regardless of τ?
Key findings
- PPM is NP-complete even when π avoids decreasing subsequences of length 3 and τ avoids such subsequences of length 4, establishing the first NP-hardness result within a proper hereditary class of permutations.
- The hardness result is tight: PPM is polynomial when both π and τ avoid decreasing subsequences of length 3, and also when π avoids decreasing subsequences of length 2.
- For any hereditary proper subclass C of Av(321), PPM is polynomial when π ∈ C and τ is arbitrary, demonstrating a sharp threshold for tractability.
- A complete complexity dichotomy is established for PPM restricted to Av(α): the problem is polynomial if and only if α is one of {1, 12, 21, 132, 213, 231, 312}.
- The paper provides a full characterization of all permutations α for which PPM is tractable in Av(α), resolving the complexity of PPM in all such restricted classes.
- Analogous hardness and tractability results are obtained for skew-merged patterns, extending the dichotomy to another natural class of permutations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.