English

Testing forbidden order-pattern properties on hypergrids

Data Structures and Algorithms 2025-10-28 v1

Abstract

We study testing π\pi-freeness of functions f:[n]dRf:[n]^d\to\mathbb{R}, where ff is π\pi-free if there there are no kk indices x1xk[n]dx_1\prec\cdots\prec x_k\in [n]^d such that f(xi)<f(xj)f(x_i)<f(x_j) and π(i)<π(j)\pi(i) < \pi(j) for all i,j[k]i,j \in [k], where \prec is the natural partial order over [n]d[n]^d. Given ϵ(0,1)\epsilon\in(0,1), ϵ\epsilon-testing π\pi-freeness asks to distinguish π\pi-free functions from those which are ϵ\epsilon-far -- meaning at least ϵnd\epsilon n^d function values must be modified to make it π\pi-free. While k=2k=2 coincides with monotonicity testing, far less is known for k>2k>2. We initiate a systematic study of pattern freeness on higher-dimensional grids. For d=2d=2 and all permutations of size k=3k=3, we design an adaptive one-sided tester with query complexity O(n4/5+o(1))O(n^{4/5+o(1)}). We also prove general lower bounds for k=3k=3: every nonadaptive tester requires Ω(n)\Omega(n) queries, and every adaptive tester requires Ω(n)\Omega(\sqrt{n}) queries, yielding the first super-logarithmic lower bounds for π\pi-freeness. For the monotone patterns π=(1,2,3)\pi=(1,2,3) and (3,2,1)(3,2,1), we present a nonadaptive tester with polylogarithmic query complexity, giving an exponential separation between monotone and nonmonotone patterns (unlike the one-dimensional case). A key ingredient in our π\pi-freeness testers is new erasure-resilient (δ\delta-ER) ϵ\epsilon-testers for monotonicity over [n]d[n]^d with query complexity O(logO(d)n/(ϵ(1δ)))O(\log^{O(d)}n/(\epsilon(1-\delta))), where 0<δ<10<\delta<1 is an upper bound on the fraction of erasures. Prior ER testers worked only for δ=O(ϵ/d)\delta=O(\epsilon/d). Our nonadaptive monotonicity tester is nearly optimal via a matching lower bound due to Pallavoor, Raskhodnikova, and Waingarten (Random Struct. Algorithms, 2022). Finally, we show that current techniques cannot yield sublinear-query testers for patterns of length 44 even on two-dimensional hypergrids.

Keywords

Cite

@article{arxiv.2510.22845,
  title  = {Testing forbidden order-pattern properties on hypergrids},
  author = {Harish Chandramouleeswaran and Ilan Newman and Tomer Pelleg and Nithin Varma},
  journal= {arXiv preprint arXiv:2510.22845},
  year   = {2025}
}

Comments

51 pages. 7 figures. To appear at SODA 2026. This is the full version