Recognizing well-parenthesized expressions in the streaming model
F. Magniez, C. Mathieu, A. Nayak

TL;DR
This paper develops optimal streaming algorithms for recognizing well-parenthesized expressions with multiple types of parentheses, demonstrating significant space savings with multi-pass and reverse input access, and establishing tight lower bounds.
Contribution
It introduces the first near-optimal one-pass randomized streaming algorithm for Dyck(2), along with a highly space-efficient two-pass algorithm utilizing reverse input access, and proves matching lower bounds.
Findings
One-pass algorithm uses O(√n log n) space, optimal up to polylog factors.
Two-pass algorithm reduces space to O((log n)^2) with reverse input.
Lower bounds confirm the optimality of the algorithms within polylog factors.
Abstract
Motivated by a concrete problem and with the goal of understanding the sense in which the complexity of streaming algorithms is related to the complexity of formal languages, we investigate the problem Dyck(s) of checking matching parentheses, with different types of parenthesis. We present a one-pass randomized streaming algorithm for Dyck(2) with space , time per letter , and one-sided error. We prove that this one-pass algorithm is optimal, up to a factor, even when two-sided error is allowed. For the lower bound, we prove a direct sum result on hard instances by following the "information cost" approach, but with a few twists. Indeed, we play a subtle game between public and private coins. This mixture between public and private coins results from a balancing act between the direct sum result and a combinatorial lower bound…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Complexity and Algorithms in Graphs · Cryptography and Data Security
