Range Queries for Permutation Pattern Matching: Separations, Equivalences, and Applications
Abstract
The problem of Permutation Pattern Matching (PPM) asks, given a permutation , viewed as the point set , and a pattern of small length , whether contains an order-isomorphic copy of . The PPM problem and its (exact and approximate) counting variants have been studied extensively in the literature. We consider a preprocessing-query version: after preprocessing , one must determine whether a query P'\subseteq P contains , where P' is obtained by intersecting with a geometric shape (e.g., an axis-aligned rectangle or such rectangles). This naturally generalizes the classical range query problem in computational geometry, which corresponds to the case . We extend the study of this problem from patterns of length to patterns of length (and in some cases beyond), and prove new fine-grained equivalences, separations, and applications: (1) Single rectangle: For all patterns of length , detection can be done with preprocessing and query time. The proof goes through a new tool of independent interest: reductions from rectangle queries to a simpler family of slab queries. (2) Multiple rectangles: For , detection is equivalent to the online set disjointness problem; we also show connections to online -set disjointness. To our knowledge, this is the first equivalence between a PPM-type problem and online set disjointness, a problem playing a fundamental role in fine-grained complexity. (3) Counting: As applications, we obtain an time algorithm for exact counting of -patterns based on the rectangle-to-slab reduction, improving upon [Beniamini and Lavee, ICALP 2025], and an approximate counting algorithm for -patterns, the first to break the barrier for -patterns.
Create a lesson
Related papers
ObliGraph: Graph Pattern Query Processing with Full and Differential Obliviousness
Shared title terminology · Lyu Xu, Xinyi Zhang, Qichen Wang
Quantum Algorithm with Quadratic Speedup for 2D Pattern Matching
Shared title terminology · Rishabh Gala, Rahul Shah
Local Important Separators with Applications to Unbreakable Decomposition and Multicut
Shared title terminology · Aditya Anand, Euiwoong Lee, Yaowei Long et al.
Near-Linear Preprocessing for Range Weighted Longest Increasing Subsequence Queries
Shared title terminology · Keisuke Korogi
Bipartite Matching with Few Rounds of Demand Queries
Shared title terminology · Shravan Mehra, Sagnik Mukhopadhyay, Vihan Shah
Space-Efficient Text Indexing for Advanced Counting Queries
Shared title terminology · Solon P. Pissis, Sharma V. Thankachan