Streaming Algorithms for Monotonicity Testing
Amir Azarmehr, Soheil Behnezhad, Lily Chung, Alma Ghafari, Jane Lange, Ronitt Rubinfeld
Abstract
Consider a poset - or equivalently an n-vertex DAG G=(V, E) - and a boolean function f: V → \0, 1\ on its vertex set. We say f is monotone if f(u) ≤ f(v) for all (u, v) ∈ E. While there is extensive literature on the query complexity of testing monotonicity, we focus instead on the space complexity and initiate the study of this problem in the streaming setting. Namely, the edges of G arrive in an arbitrary order, and the goal is to estimate distance to monotonicity of a given function f using O(n) space. Note that while this space allows receiving and storing f, it is much smaller than the input graph G which could have up to Ω(n2) edges. Our main result is an algorithm that (1+ε)-approximates distance to monotonicity in n1+o(1) passes. We also prove that this is the best pass-complexity one can hope for, for any O(1)-approximation, short of improving the state-of-the-art streaming algorithm for st-reachability, which is a very well-studied problem. On the technical side, our algorithm approximates the size of maximum matching in (a subgraph of) the transitive closure of G. While the maximum matching problem has received significant attention in the streaming setting, the fact that we are computing it in the transitive closure requires very different ideas. In fact, a main contribution of our work is to connect sublinear time algorithms for estimating the maximum matching size to the streaming setting for the first time. While existing off-the-shelf sublinear time algorithms only result in an nn1+o(1) pass algorithm in our setting, we show how to significantly improve upon them by allowing stronger queries (such as vertex and subset queries) that can be implemented just as efficiently as more standard adjacency matrix and list queries for our problem.
Create a lesson
Related papers
A Near-Optimal Space Lower Bound for Euclidean Diameter Estimation in Dynamic Streams
Ashwin Padaki, Krish Singal, Erik Waingarten
A Walk From Free Probability to Matrix Discrepancy I: Matrix Spencer
Tarun Kathuria
A Walk From Free Probability to Matrix Discrepancy II: Weaver's Problem and the Kadison-Singer Conjecture
Tarun Kathuria
Degree-Free Spectral Independence for Log-Concave Holant Measures
Xiaoyu Chen, Zejia Chen, Xinyuan Zhang
Optimizing Both Checking and Update Costs in Random Walk Search
Simon Apers, Marin Costes
Routing Multiple Agents Below the Sum of Distances
Matthias Bentert, Eduard Eiben, Fedor V. Fomin et al.