English

Improved Bounds for Testing Forbidden Order Patterns

Data Structures and Algorithms 2017-10-31 v1 Computational Complexity Combinatorics

Abstract

A sequence f ⁣:{1,,n}Rf\colon\{1,\dots,n\}\to\mathbb{R} contains a permutation π\pi of length kk if there exist i1<<iki_1<\dots<i_k such that, for all x,yx,y, f(ix)<f(iy)f(i_x)<f(i_y) if and only if π(x)<π(y)\pi(x)<\pi(y); otherwise, ff is said to be π\pi-free. In this work, we consider the problem of testing for π\pi-freeness with one-sided error, continuing the investigation of [Newman et al., SODA'17]. We demonstrate a surprising behavior for non-adaptive tests with one-sided error: While a trivial sampling-based approach yields an ε\varepsilon-test for π\pi-freeness making Θ(ε1/kn11/k)\Theta(\varepsilon^{-1/k} n^{1-1/k}) queries, our lower bounds imply that this is almost optimal for most permutations! Specifically, for most permutations π\pi of length kk, any non-adaptive one-sided ε\varepsilon-test requires ε1/(kΘ(1))n11/(kΘ(1))\varepsilon^{-1/(k-\Theta(1))}n^{1-1/(k-\Theta(1))} queries; furthermore, the permutations that are hardest to test require Θ(ε1/(k1)n11/(k1))\Theta(\varepsilon^{-1/(k-1)}n^{1-1/(k-1)}) queries, which is tight in nn and ε\varepsilon. Additionally, we show two hierarchical behaviors here. First, for any kk and lk1l\leq k-1, there exists some π\pi of length kk that requires Θ~ε(n11/l)\tilde{\Theta}_{\varepsilon}(n^{1-1/l}) non-adaptive queries. Second, we show an adaptivity hierarchy for π=(1,3,2)\pi=(1,3,2) by proving upper and lower bounds for (one- and two-sided) testing of π\pi-freeness with rr rounds of adaptivity. The results answer open questions of Newman et al. and [Canonne and Gur, CCC'17].

Keywords

Cite

@article{arxiv.1710.10660,
  title  = {Improved Bounds for Testing Forbidden Order Patterns},
  author = {Omri Ben-Eliezer and Clément L. Canonne},
  journal= {arXiv preprint arXiv:1710.10660},
  year   = {2017}
}
R2 v1 2026-06-22T22:28:58.744Z