{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,1]],"date-time":"2026-10-01T08:33:53Z","timestamp":1790843633791,"version":"4.1.0"},"reference-count":39,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"6","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2014,1]]},"abstract":"<jats:p>Motivated by a concrete problem and with the goal of understanding the relationship between the complexity of streaming algorithms and the computational complexity of formal languages, we investigate the problem Dyck(s) of checking matching parentheses, with s different types of parentheses. We present a one-pass randomized streaming algorithm for Dyck(2) with space of ${O}(\\sqrt{n\\log n}\\,)$ bits, time per letter ${polylog}(n)$, and one-sided error. We prove that this one-pass algorithm is optimal, up to a $\\log n$ factor, even when two-sided error is allowed. Surprisingly, the space requirement shrinks drastically if we have access to the input stream in reverse. We present a two-pass randomized streaming algorithm for Dyck(2) with space of ${O}((\\log n)^2)$, time polylog(n) and one-sided error, where the second pass is in the reverse direction. Both algorithms can be extended to Dyck(s) since this problem is reducible to Dyck(2) for a suitable notion of reduction in the streaming model. Except for an extra ${O}(\\sqrt{\\log s}\\,)$ multiplicative overhead in the space required in the one-pass algorithm, the resource requirements are of the same order. For the lower bound, we exhibit hard instances Ascension(m) of Dyck(2) with length in $\\Theta(mn)$. We embed these in what we call a \u201cone-pass\u201d communication problem with 2m-players, where $m \\in \\tilde{{O}}(n)$. To establish the hardness of Ascension(m), we follow the \u201cinformation cost\u201d approach, but with a few twists. We prove a direct sum result that reduces Ascension(m) to a two-player protocol for Mountain, which is in fact a variant of Index, a fundamental problem in communication complexity. We finish the argument with a new information cost lower bound for Mountain.<\/jats:p>","DOI":"10.1137\/130926122","type":"journal-article","created":{"date-parts":[[2014,12,10]],"date-time":"2014-12-10T09:31:17Z","timestamp":1418203877000},"page":"1880-1905","source":"Crossref","is-referenced-by-count":8,"title":["Recognizing Well-Parenthesized Expressions in the Streaming Model"],"prefix":"10.1137","volume":"43","author":[{"given":"Fr\u00e9d\u00e9ric","family":"Magniez","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Claire","family":"Mathieu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ashwin","family":"Nayak","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2014,12,10]]},"reference":[{"key":"atypb1","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539700366528"},{"key":"atypb2","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1545"},{"key":"atypb3","doi-asserted-by":"crossref","unstructured":"A. Ambainis, A. Nayak, A. Ta-Shma, and U. Vazirani,\n                      \n                        Dense quantum coding and a lower bound for\n                        1\n                        -way quantum automata\n                      \n                      , in Proceedings of the 31st Annual ACM Symposium on Theory of Computing, 1999, pp. 376-383.","DOI":"10.1145\/301250.301347"},{"key":"atypb4","doi-asserted-by":"publisher","DOI":"10.1145\/581771.581773"},{"key":"atypb5","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2012.12.028"},{"key":"atypb6","doi-asserted-by":"crossref","unstructured":"A. Babu, N. Limaye, and G. Varma,\n                      Streaming algorithms for some problems in log-space\n                      , in Theory and Applications of Models of Computation, 7th Annual Conference, TAMC 2010, Proceedings, J. Kratochv\u00edl, A. Li, J. Fiala, and P. Kolman, eds., Lecture Notes in Comput. Sci. 6108, Springer, Berlin, 2010, pp. 94-104.","DOI":"10.1007\/978-3-642-13562-0_10"},{"key":"atypb7","unstructured":"E. Bach and J. Shallit,\n                      \n                        Algorithmic Number Theory, Vol.\n                        1\n                        : Efficient Algorithms\n                      \n                      , MIT Press, Cambridge, MA, 1996."},{"key":"atypb8","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2003.11.006"},{"key":"atypb9","doi-asserted-by":"publisher","DOI":"10.1137\/100811969"},{"key":"atypb10","doi-asserted-by":"publisher","DOI":"10.1145\/200836.200880"},{"key":"atypb11","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(93)90044-W"},{"key":"atypb12","first-page":"387","author":"Chakrabarti A.","year":"2010","journal-title":"Washington, DC"},{"key":"atypb13","doi-asserted-by":"publisher","DOI":"10.1137\/100816481"},{"key":"atypb14","first-page":"641","author":"Chakrabarti A.","year":"2008","journal-title":"New York"},{"key":"atypb15","doi-asserted-by":"crossref","unstructured":"A. Chakrabarti, Y. Shi, A. Wirth, and A. C.C. Yao,\n                      Informational complexity and the direct sum problem for simultaneous message complexity\n                      , in Proceedings of the 42nd Annual IEEE Symposium on Foundations of Computer Science, 2001, pp. 270-278.","DOI":"10.1109\/SFCS.2001.959901"},{"key":"atypb16","first-page":"118","author":"Chomsky N.","year":"1963","journal-title":"Amsterdam"},{"key":"atypb17","doi-asserted-by":"crossref","unstructured":"M. Chu, S. Kannan, and A. McGregor,\n                      Checking and spot-checking the correctness of priority queues\n                      , in Automata, Languages and Programming, 34th International Colloquium, ICALP 2007, Wroclaw, Poland, L. Arge, C. Cachin, T. Jurdzi\u0144ski, and A. Tarlecki, eds., Lecture Notes in Comput. Sci. 4596, Springer, Berlin, 2007, pp. 728-739.","DOI":"10.1007\/978-3-540-73420-8_63"},{"key":"atypb18","unstructured":"T. M. Cover and J. A. Thomas,\n                      Elements of Information Theory\n                      , Wiley Series in Telecommunications, John Wiley & Sons, New York, 1991."},{"key":"atypb19","first-page":"1190","author":"Ba K. D.","year":"2010","journal-title":"Philadelphia"},{"key":"atypb20","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-002-0959-4"},{"key":"atypb21","unstructured":"N. Fran\u00e7ois, and F. Magniez ,\n                      Streaming complexity of checking priority queues\n                      , in Proceedings of 30th International Symposium on Theoretical Aspects of Computer Science, Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2013, pp. 454-465."},{"key":"atypb22","doi-asserted-by":"publisher","DOI":"10.1145\/285055.285060"},{"key":"atypb23","unstructured":"J. E. Hopcroft and J. D. Ullman,\n                      Formal Languages and Their Relation to Automata\n                      , Addison-Wesley Longman, Boston, MA, 1969."},{"key":"atypb24","unstructured":"R. Jain and A. Nayak,\n                      The Space Complexity of Recognizing Well-Parenthesized Expressions\n                      , Technical report TR10-071, Electronic Colloquium on Computational Complexity, http:\/\/eccc.hpi-web.de (2010)."},{"key":"atypb25","doi-asserted-by":"crossref","unstructured":"R. Jain, J. Radhakrishnan, and P. Sen,\n                      A direct sum theorem in communication complexity via message compression\n                      , in Proceedings of the 30th International Colloquium on Automata Languages and Programming, J. C. M. Baeten, J. K. Lenstra, J. Parrow, and G. J. Woeginger, eds., Lecture Notes in Comput. Sci. 2719, Springer, Berlin, 2003, pp. 300-315.","DOI":"10.1007\/3-540-45061-0_26"},{"key":"atypb26","doi-asserted-by":"crossref","unstructured":"R. Jain, J. Radhakrishnan, and P. Sen,\n                      A lower bound for the bounded round quantum communication complexity of Set Disjointness\n                      , in Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science, 2003, pp. 220-229.","DOI":"10.1109\/SFCS.2003.1238196"},{"key":"atypb27","doi-asserted-by":"publisher","DOI":"10.1145\/1568318.1568323"},{"key":"atypb28","doi-asserted-by":"crossref","unstructured":"T. S. Jayram, R. Kumar, and D. Sivakumar,\n                      Two applications of information complexity\n                      , in Proceedings of the 35th Annual ACM Symposium on Theory of Computing, 2003, pp. 673-682.","DOI":"10.1145\/780542.780640"},{"key":"atypb29","first-page":"1161","author":"Kane D. M.","year":"2010","journal-title":"PA"},{"key":"atypb30","first-page":"34","author":"Konrad C.","year":"2012","journal-title":"New York"},{"key":"atypb31","doi-asserted-by":"crossref","unstructured":"A. Krebs, N. Limaye, and S. Srinivasan,\n                      Streaming algorithms for recognizing nearly well-parenthesized expressions\n                      , in Mathematical Foundations of Computer Science 2011, 36th International Symposium, Proceedings, F. Murlak and P. Sankowski, eds., Lecture Notes in Comput. Sci. 6907, Springer, Berlin, 2011, pp. 412-423.","DOI":"10.1007\/978-3-642-22993-0_38"},{"key":"atypb32","doi-asserted-by":"publisher","DOI":"10.1145\/322017.322031"},{"key":"atypb33","first-page":"261","author":"Magniez F.","year":"2010","journal-title":"New York"},{"key":"atypb34","doi-asserted-by":"crossref","unstructured":"S. Muthukrishnan,\n                      Data Streams: Algorithms and Applications\n                      , vol. 1, Found. Trends Theor. Comput. Sci. 2, Now Publishers, Hanover, MA, 2005.","DOI":"10.1561\/9781933019604"},{"key":"atypb35","doi-asserted-by":"crossref","unstructured":"A. Nayak,\n                      Optimal lower bounds for quantum automata and random access codes\n                      , in Proceedings of the 40th Annual IEEE Symposium on Foundations of Computer Science, 1999, pp. 369-376.","DOI":"10.1109\/SFFCS.1999.814608"},{"key":"atypb36","doi-asserted-by":"publisher","DOI":"10.1002\/rsa.10067"},{"key":"atypb37","doi-asserted-by":"crossref","unstructured":"M. Saks and X. Sun,\n                      Space lower bounds for distance approximation in the data stream model\n                      , in Proceedings of the 34th Annual ACM Symposium on Theory of Computing, 2002, pp. 360-369.","DOI":"10.1145\/509907.509963"},{"key":"atypb38","doi-asserted-by":"crossref","unstructured":"L. Segoufin and C. Sirangelo,\n                      Constant-memory validation of streaming XML documents against DTDs\n                      , in Database Theory-ICDT 2007, 11th International Conference, Barcelona, Spain, T. Schwentick and D. Suciu, eds., Lecture Notes in Comput. Sci. 4353, Springer, Berlin, 2007, pp. 299-313.","DOI":"10.1007\/11965893_21"},{"key":"atypb39","first-page":"53","author":"Segoufin L.","year":"2002","journal-title":"New York"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/130926122","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:10:38Z","timestamp":1787339438000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/130926122"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,1]]},"references-count":39,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2014,1]]}},"alternative-id":["10.1137\/130926122"],"URL":"https:\/\/doi.org\/10.1137\/130926122","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,1]]}}}