Strongly Sublinear Algorithms for Testing Pattern Freeness

Abstract

For a permutation π:[k] [k], a function f:[n] R contains a π-appearance if there exists 1 ≤ i1 < i2 < … < ik ≤ n such that for all s,t ∈ [k], f(is) < f(it) if and only if π(s) < π(t). The function is π-free if it has no π-appearances. In this paper, we investigate the problem of testing whether an input function f is π-free or whether f differs on at least n values from every π-free function. This is a generalization of the well-studied monotonicity testing and was first studied by Newman, Rabinovich, Rajendraprasad and Sohler (Random Structures and Algorithms 2019). We show that for all constants k ∈ N, ∈ (0,1), and permutation π:[k] [k], there is a one-sided error -testing algorithm for π-freeness of functions f:[n] R that makes O(no(1)) queries. We improve significantly upon the previous best upper bound O(n1 - 1/(k-1)) by Ben-Eliezer and Canonne (SODA 2018). Our algorithm is adaptive, while the earlier best upper bound is known to be tight for nonadaptive algorithms.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…