English

Compact representations of pattern-avoiding permutations

Data Structures and Algorithms 2025-10-24 v1

Abstract

Pattern-avoiding permutations are a central object of study in both combinatorics and theoretical computer science. In this paper we design a data structure that can store any size-nn permutation τ\tau that avoids an arbitrary (and unknown) fixed pattern π\pi in the asymptotically optimal O(nlgsπ)O(n \lg{s_\pi}) bits, where sπs_\pi is the Stanley-Wilf limit of π\pi. Our data structure supports τ(i)\tau(i) and τ1(i)\tau^{-1}(i) queries in O(1)O(1) time, sidestepping the lower bound of Golynski (SODA 2009) that holds for general permutations. Comparable results were previously known only in more restricted cases, e.g., when τ\tau is separable, which means avoiding the patterns 2413 and 3142. We also extend our data structure to support more complex geometric queries on pattern-avoiding permutations (or planar point sets) such as rectangle range counting in O(lglgn)O(\lg\lg{n}) time. This result circumvents the lower bound of Ω(lgn/lglgn)\Omega{(\lg{n}/\lg\lg{n})} by P\u{a}tra\c{s}cu (STOC 2007) that holds in the general case. For bounded treewidth permutation classes (which include the above-mentioned separable class), we further reduce the space overhead to a lower order additive term, making our data structure succinct. This extends and improves results of Chakraborty et al. (ISAAC 2024) that were obtained for separable permutations via different techniques. All our data structures can be constructed in linear time.

Keywords

Cite

@article{arxiv.2510.20382,
  title  = {Compact representations of pattern-avoiding permutations},
  author = {László Kozma and Michal Opler},
  journal= {arXiv preprint arXiv:2510.20382},
  year   = {2025}
}
R2 v1 2026-07-01T07:01:46.823Z