English

Long paths make pattern-counting hard, and deep trees make it harder

Computational Complexity 2021-11-08 v1 Discrete Mathematics

Abstract

We study the counting problem known as #PPM, whose input is a pair of permutations π\pi and τ\tau (called pattern and text, respectively), and the task is to find the number of subsequences of τ\tau that have the same relative order as π\pi. A simple brute-force approach solves #PPM for a pattern of length kk and a text of length nn in time O(nk+1)O(n^{k+1}), while Berendsohn, Kozma and Marx have recently shown that under the exponential time hypothesis (ETH), it cannot be solved in time f(k)no(k/logk)f(k) n^{o(k/\log k)} for any function ff. In this paper, we consider the restriction of #PPM, known as C\mathcal{C}-Pattern #PPM, where the pattern π\pi must belong to a hereditary permutation class C\mathcal{C}. Our goal is to identify the structural properties of C\mathcal{C} that determine the complexity of C\mathcal{C}-Pattern #PPM. We focus on two such structural properties, known as the long path property (LPP) and the deep tree property (DTP). Assuming ETH, we obtain these results: 1. If CC has the LPP, then C\mathcal{C}-Pattern #PPM cannot be solved in time f(k)no(k)f(k)n^{o(\sqrt{k})} for any function ff, and 2. if CC has the DTP, then C\mathcal{C}-Pattern #PPM cannot be solved in time f(k)no(k/log2k)f(k)n^{o(k/\log^2 k)} for any function ff. Furthermore, when C\mathcal{C} is one of the so-called monotone grid classes, we show that if C\mathcal{C} has the LPP but not the DTP, then C\mathcal{C}-Pattern #PPM can be solved in time f(k)nO(k)f(k)n^{O(\sqrt k)}. In particular, the lower bounds above are tight up to the polylog terms in the exponents.

Keywords

Cite

@article{arxiv.2111.03479,
  title  = {Long paths make pattern-counting hard, and deep trees make it harder},
  author = {Vít Jelínek and Michal Opler and Jakub Pekárek},
  journal= {arXiv preprint arXiv:2111.03479},
  year   = {2021}
}

Comments

30 pages, 10 figures, extended abstract will appear in proceedings of IPEC 2021

R2 v1 2026-06-24T07:27:46.424Z