Strongly Sublinear Algorithms for Testing Pattern Freeness

06/09/2021 ∙ by Ilan Newman, et al. ∙ 0

Given a permutation π:[k] → [k], a function f:[n] →ℝ contains a π-appearance if there exists 1 ≤ i_1 < i_2 < … < i_k ≤ n such that for all s,t ∈ [k], it holds that f(i_s) < f(i_t) 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 at least ε n values in f need to be changed in order to make it π-free. This problem 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 ∈ℕ, ε∈ (0,1), and permutation π:[k] → [k], there is a one-sided error ε-testing algorithm for π-freeness of functions f:[n] →ℝ that makes Õ(n^o(1)) queries. We improve significantly upon the previous best upper bound O(n^1 - 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. Hence, our results also show that adaptivity helps in testing freeness of order patterns.



There are no comments yet.


page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.