{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:36:36Z","timestamp":1787340996747,"version":"build-2736575974"},"reference-count":59,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"4","funder":[{"DOI":"10.13039\/501100000781","name":"European Research Council","doi-asserted-by":"publisher","award":["683064"],"award-info":[{"award-number":["683064"]}],"id":[{"id":"10.13039\/501100000781","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100003977","name":"Israel Science Foundation","doi-asserted-by":"publisher","award":["1278\/16"],"award-info":[{"award-number":["1278\/16"]}],"id":[{"id":"10.13039\/501100003977","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001742","name":"United States-Israel Binational Science Foundation","doi-asserted-by":"publisher","award":["2018364"],"award-info":[{"award-number":["2018364"]}],"id":[{"id":"10.13039\/501100001742","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2025,8,31]]},"abstract":"<jats:p>Abstract.<\/jats:p>\n                  <jats:p>We consider two closely related problems of text indexing in a sublinear working space. The first problem is the sparse suffix tree construction, where a text [Formula: see text] is given in read-only memory, along with a set of suffixes [Formula: see text], and the goal is to construct the compressed trie of all these suffixes ordered lexicographically, using only [Formula: see text] words of space. The second problem is the longest common extension problem, where again a text [Formula: see text] of length [Formula: see text] is given in read-only memory with some trade-off parameter [Formula: see text], and the goal is to construct a data structure that uses [Formula: see text] words of space and can compute for any pair of suffixes their longest common prefix length as fast as possible as a function of [Formula: see text] ([Formula: see text] time for a randomized Las Vegas data structure or [Formula: see text] time for a deterministic data structure). We show how to use ideas based on the locally consistent parsing technique, that were introduced by Sahinalp and Vishkin [ Proceedings of the 26 th Annual ACM Symposium on Theory of Computing, 1994, pp. 300\u2013309 ], in some nontrivial ways in order to improve the known results for the above problems under the space constraints. We introduce the first almost-linear, [Formula: see text], deterministic construction for both problems, where all previous algorithms take at least [Formula: see text] time. We also introduce the first linear-time Las Vegas algorithms for both problems, achieving [Formula: see text] construction time with high probability. This is an improvement over the last result of Gawrychowski and Kociumaka [ Proceedings of the 28 th Annual ACM-SIAM Symposium on Discrete Algorithms, 2017, pp. 425\u2013439 ], which obtained [Formula: see text] time for the Monte Carlo algorithm and [Formula: see text] time with high probability for the Las Vegas algorithm.<\/jats:p>","DOI":"10.1137\/21m1465706","type":"journal-article","created":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T14:24:34Z","timestamp":1754403874000},"page":"916-963","source":"Crossref","is-referenced-by-count":0,"title":["Locally Consistent Parsing for Text Indexing in Small Space"],"prefix":"10.1137","volume":"54","author":[{"given":"Or","family":"Birenzwige","sequence":"first","affiliation":[{"name":"Bar-Ilan University, Ramat Gan, Israel."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shay","family":"Golan","sequence":"additional","affiliation":[{"name":"Reichman University, Herzliya, Israel, and University of Haifa, Haifa, Israel."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ely","family":"Porat","sequence":"additional","affiliation":[{"name":"Bar-Ilan University, Ramat Gan, Israel."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2025,8,5]]},"reference":[{"key":"ref1","unstructured":"S. Alstrup, G. S. Brodal, and T. Rauhe, Pattern matching in dynamic texts, in Proceedings of the 11th Annual ACM-SIAM Symposium on Discrete Algorithms, 2000, pp. 819\u2013828, http:\/\/dl.acm.org\/citation.cfm?id=338219.338645."},{"key":"ref2","unstructured":"A. Amir and I. Nor, Real-time indexing over fixed finite alphabets, in Proceedings of the 19th Annual ACM-SIAM Symposium on Discrete Algorithms, 2008, pp. 1086\u20131095, http:\/\/dl.acm.org\/citation.cfm?id=1347082.1347201."},{"key":"ref3","series-title":"LIPIcs Leibniz Int. Proc. Inform. 296","first-page":"4:1","volume-title":"35th Annual Symposium on Combinatorial Pattern Matching","author":"Bathie G.","year":"2024"},{"key":"ref4","series-title":"LIPIcs Leibniz Int. Proc. Inform. 161","first-page":"5:1","volume-title":"31st Annual Symposium on Combinatorial Pattern Matching","author":"Ben-Nun S.","year":"2020"},{"key":"ref5","doi-asserted-by":"crossref","unstructured":"M. A. Bender and M. Farach-Colton, The LCA problem revisited, in Proceedings of LATIN 2000: Theoretical Informatics, 4th Latin American Symposium, 2000, pp. 88\u201394, https:\/\/doi.org\/10.1007\/10719839_9.","DOI":"10.1007\/10719839_9"},{"key":"ref6","doi-asserted-by":"crossref","unstructured":"S. Bhattacharya and M. Kouck\u00fd, Locally consistent decomposition of strings with applications to edit distance sketching, in Proceedings of the 55th Annual ACM Symposium on Theory of Computing, 2023, pp. 219\u2013232, https:\/\/doi.org\/10.1145\/3564246.3585239.","DOI":"10.1145\/3564246.3585239"},{"key":"ref7","series-title":"LIPIcs Leibniz Int. Proc. Inform. 261","first-page":"22:1","volume-title":"50th International Colloquium on Automata, Languages, and Programming","author":"Bhattacharya S.","year":"2023"},{"key":"ref8","doi-asserted-by":"publisher","DOI":"10.1145\/2836166"},{"key":"ref9","doi-asserted-by":"crossref","unstructured":"P. Bille, I. L. G\u00f8rtz, M. B. T. Knudsen, M. Lewenstein, and H. W. Vildh\u00f8j, Longest common extensions in sublinear space, in Proceedings of the 26th Annual Symposium on Combinatorial Pattern Matching, 2015, pp. 65\u201376, https:\/\/doi.org\/10.1007\/978-3-319-19929-0_6.","DOI":"10.1007\/978-3-319-19929-0_6"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1016\/j.jda.2013.06.003"},{"key":"ref11","doi-asserted-by":"crossref","unstructured":"T. Bingmann, J. Fischer, and V. Osipov, Inducing suffix and LCP arrays in external memory, in Proceedings of the 15th Meeting on Algorithm Engineering and Experiments, ALENEX, 2013, pp. 88\u2013102, https:\/\/doi.org\/10.1137\/1.9781611972931.8.","DOI":"10.1137\/1.9781611972931.8"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1145\/2635814"},{"key":"ref13","doi-asserted-by":"crossref","unstructured":"A. Z. Broder, M. Charikar, A. M. Frieze, and M. Mitzenmacher, Min-wise independent permutations (extended abstract), in Proceedings of the 30th Annual ACM Symposium on the Theory of Computing, 1998, pp. 327\u2013336, https:\/\/doi.org\/10.1145\/276698.276781.","DOI":"10.1145\/276698.276781"},{"key":"ref14","doi-asserted-by":"crossref","unstructured":"S. Burkhardt and J. K\u00e4rkk\u00e4inen, Fast lightweight suffix array construction and checking, in Proceedings of the 14th Annual Symposium on Combinatorial Pattern Matching, 2003, pp. 55\u201369, https:\/\/doi.org\/10.1007\/3-540-44888-8_5.","DOI":"10.1007\/3-540-44888-8_5"},{"key":"ref15","series-title":"LIPIcs Leibniz Int. Proc. Inform. 204","first-page":"30:1","volume-title":"29th Annual European Symposium on Algorithms","author":"Charalampopoulos P.","year":"2021"},{"key":"ref16","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(86)80023-7"},{"key":"ref17","doi-asserted-by":"publisher","DOI":"10.1145\/1186810.1186812"},{"key":"ref18","first-page":"295","author":"De La Briandais R.","year":"1959","journal-title":"Papers Presented at the Western Joint Computer Conference"},{"key":"ref19","doi-asserted-by":"crossref","unstructured":"M. Dietzfelbinger, J. Gil, Y. Matias, and N. Pippenger, Polynomial hash functions are reliable (extended abstract), in Proceedings of the 19th International Colloquium on Automata, Languages and Programming, 1992, pp. 235\u2013246, https:\/\/doi.org\/10.1007\/3-540-55719-9.","DOI":"10.1007\/3-540-55719-9_77"},{"key":"ref20","doi-asserted-by":"crossref","unstructured":"M. Farach, Optimal suffix tree construction with large alphabets, in Proceedings of the 38th Annual Symposium on Foundations of Computer Science, 1997, pp. 137\u2013143, https:\/\/doi.org\/10.1109\/SFCS.1997.646102.","DOI":"10.1109\/SFCS.1997.646102"},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.1998.0999"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9939-1965-0174934-9"},{"key":"ref23","unstructured":"J. Fischer and V. Heun, Range median of minima queries, super-Cartesian trees, and text indexing, in Proceedings of the 19th International Workshop on Combinatorial Algorithms, 2008, pp. 239\u2013252."},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49529-2_36"},{"key":"ref25","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2009.09.012"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1145\/367390.367400"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1016\/0885-064X(88)90008-8"},{"key":"ref28","doi-asserted-by":"crossref","unstructured":"P. Gawrychowski and T. Kociumaka, Sparse suffix tree construction in optimal time and space, in Proceedings of the 28th Annual ACM-SIAM Symposium on Discrete Algorithms, 2017, pp. 425\u2013439, https:\/\/doi.org\/10.1137\/1.9781611974782.27.","DOI":"10.1137\/1.9781611974782.27"},{"key":"ref29","doi-asserted-by":"crossref","unstructured":"A. V. Goldberg, S. A. Plotkin, and G. E. Shannon, Parallel symmetry-breaking in sparse graphs, in Proceedings of the 19th Annual ACM Symposium on Theory of Computing, 1987, pp. 315\u2013324, https:\/\/doi.org\/10.1145\/28395.28429.","DOI":"10.1145\/28395.28429"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.1137\/0213024"},{"key":"ref31","unstructured":"T. I, Longest common extensions with recompression, in Proceedings of the 28th Annual Symposium on Combinatorial Pattern Matching, 2017, pp. 18:1\u201318:15, https:\/\/doi.org\/10.4230\/LIPIcs.CPM.2017.18."},{"key":"ref32","unstructured":"T. I. J. K\u00e4rkk\u00e4inen and D. Kempa, Faster sparse suffix sorting, in Proceedings of the 31st International Symposium on Theoretical Aspects of Computer Science, 2014, pp. 386\u2013396, https:\/\/doi.org\/10.4230\/LIPIcs.STACS.2014.386."},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.2000.1131"},{"key":"ref34","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45061-0_73"},{"key":"ref35","doi-asserted-by":"crossref","unstructured":"J. K\u00e4rkk\u00e4inen and E. Ukkonen, Sparse suffix trees, in Proceedings of the 2nd Annual International Conference on Computing and Combinatorics, 1996, pp. 219\u2013230, https:\/\/doi.org\/10.1007\/3-540-61332-3_155.","DOI":"10.1007\/3-540-61332-3_155"},{"key":"ref36","doi-asserted-by":"publisher","DOI":"10.1147\/rd.312.0249"},{"key":"ref37","doi-asserted-by":"crossref","unstructured":"T. Kasai, G. Lee, H. Arimura, S. Arikawa, and K. Park, Linear-time longest-common-prefix computation in suffix arrays and its applications, in Proceedings of the 12th Annual Symposium on Combinatorial Pattern Matching, 2001, pp. 181\u2013192, https:\/\/doi.org\/10.1007\/3-540-48194-X_17.","DOI":"10.1007\/3-540-48194-X_17"},{"key":"ref38","doi-asserted-by":"crossref","unstructured":"D. Kempa and T. Kociumaka, String synchronizing sets: Sublinear-time BWT construction and optimal LCE data structure, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, 2019, pp. 756\u2013767, https:\/\/doi.org\/10.1145\/3313276.3316368.","DOI":"10.1145\/3313276.3316368"},{"key":"ref39","doi-asserted-by":"crossref","unstructured":"D. Kempa and T. Kociumaka, Dynamic suffix array with polylogarithmic queries and updates, in Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, S. Leonardi and A. Gupta, eds. ACM, 2022, pp. 1657\u20131670, https:\/\/doi.org\/10.1145\/3519935.3520061.","DOI":"10.1145\/3519935.3520061"},{"key":"ref40","doi-asserted-by":"crossref","unstructured":"D. Kempa and T. Kociumaka, Dynamic Suffix Array with Polylogarithmic Queries and Updates, CoRR, https:\/\/arxiv.org\/abs\/2201.01285, 2022.","DOI":"10.1145\/3519935.3520061"},{"key":"ref41","unstructured":"T. Kociumaka, Efficient Data Structuresfor Internal Queries in Texts, Ph.D. thesis, University of Warsaw, 2018, https:\/\/www.mimuw.edu.pl\/."},{"key":"ref42","doi-asserted-by":"crossref","unstructured":"T. Kociumaka, J. Radoszewski, W. Rytter, and T. Walen, Internal pattern matching queries in a text and applications, in Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms, 2015, pp. 532\u2013551, https:\/\/doi.org\/10.1137\/1.9781611973730.36.","DOI":"10.1137\/1.9781611973730.36"},{"key":"ref43","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2017.05.003"},{"key":"ref44","series-title":"LIPIcs Leibniz Int. Proc. Inform. 296","first-page":"20:1","volume-title":"35th Annual Symposium on Combinatorial Pattern Matching","author":"Kosolobov D.","year":"2024"},{"key":"ref45","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(88)90045-1"},{"key":"ref46","doi-asserted-by":"publisher","DOI":"10.1145\/214438.214445"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1145\/321941.321946"},{"key":"ref48","doi-asserted-by":"publisher","DOI":"10.1007\/BF02522825"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1145\/321479.321481"},{"key":"ref50","doi-asserted-by":"crossref","unstructured":"B. Porat and E. Porat, Exact and approximate pattern matching in the streaming model, in Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science, 2009, pp. 315\u2013323, https:\/\/doi.org\/10.1109\/FOCS.2009.11.","DOI":"10.1109\/FOCS.2009.11"},{"key":"ref51","doi-asserted-by":"crossref","unstructured":"S. J. Puglisi and A. Turpin, Space-time tradeoffs for longest-common-prefix array computation, in Proceedings of the 19th International Symposium on\u00a0Algorithms and Computation, 2008, pp. 124\u2013135, https:\/\/doi.org\/10.1007\/978-3-540-92182-0_14.","DOI":"10.1007\/978-3-540-92182-0_14"},{"key":"ref52","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/bth408"},{"key":"ref53","doi-asserted-by":"crossref","unstructured":"S. C. Sahinalp and U. Vishkin, Symmetry breaking for suffix tree construction, in Proceedings of the 26th Annual ACM Symposium on Theory of Computing, 1994, pp. 300\u2013309, https:\/\/doi.org\/10.1145\/195058.195164.","DOI":"10.1145\/195058.195164"},{"key":"ref54","doi-asserted-by":"crossref","unstructured":"S. C. Sahinalp and U. Vishkin, Efficient approximate and dynamic matching of patterns using a labeling paradigm (extended abstract), in Proceedings of the 37th Annual Symposium on Foundations of Computer Science, 1996, pp. 320\u2013328, https:\/\/doi.org\/10.1109\/SFCS.1996.548491.","DOI":"10.1109\/SFCS.1996.548491"},{"key":"ref55","doi-asserted-by":"crossref","unstructured":"S. Schleimer, D. S. Wilkerson, and A. Aiken, Winnowing: Local algorithms for document fingerprinting, in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2003, pp. 76\u201385, https:\/\/doi.org\/10.1145\/872757.872770.","DOI":"10.1145\/872757.872770"},{"key":"ref56","first-page":"1:1","author":"Tanimura Y.","year":"2016","journal-title":"27th Annual Symposium on Combinatorial Pattern Matching"},{"key":"ref57","unstructured":"Y. Tanimura, T. Nishimoto, H. Bannai, S. Inenaga, and M. Takeda, Small-space LCE data structure with constant-time queries, in Proceedings of the 42nd International Symposium on Mathematical Foundations of Computer Science (MFCS 2017), LIPIcs Leibniz Int. Proc. Inform. 83, K. G. Larsen, H. L. Bodlaender, and J.F. Raskin, eds. Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik, 2017, pp. 10:1\u201310:15, https:\/\/doi.org\/10.4230\/LIPIcs.MFCS.2017.10."},{"key":"ref58","doi-asserted-by":"publisher","DOI":"10.1007\/BF01206331"},{"key":"ref59","doi-asserted-by":"crossref","unstructured":"P. Weiner, Linear pattern matching algorithms, in Proceedings of the 14th Annual Symposium on Switching and Automata Theory, 1973, pp. 1\u201311, https:\/\/doi.org\/10.1109\/SWAT.1973.13.","DOI":"10.1109\/SWAT.1973.13"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/21M1465706","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:00:13Z","timestamp":1787338813000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/21M1465706"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,5]]},"references-count":59,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2025,8,31]]}},"alternative-id":["10.1137\/21M1465706"],"URL":"https:\/\/doi.org\/10.1137\/21m1465706","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,8,5]]}}}