{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:25:19Z","timestamp":1787340319887,"version":"build-2736575974"},"reference-count":19,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"5","funder":[{"DOI":"10.13039\/501100003977","name":"Israel Science Foundation","doi-asserted-by":"publisher","award":["2854\/20"],"award-info":[{"award-number":["2854\/20"]}],"id":[{"id":"10.13039\/501100003977","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100004318","name":"Microsoft","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100004318","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100006734","name":"Princeton University","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100006734","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2024,10,31]]},"abstract":"<jats:p>Abstract.<\/jats:p>\n                  <jats:p>A resizable array is an array that can grow and shrink by the addition or removal of items from its end, or both its ends, while still supporting constant-time access to each item stored in the array given its index. Since the size of an array, i.e., the number of items in it, varies over time, space-efficient maintenance of a resizable array requires dynamic memory management. A standard doubling technique allows the maintenance of an array of size [Formula: see text] using only [Formula: see text] space, with [Formula: see text] amortized time, or even [Formula: see text] worst-case time, per operation.\u00a0Sitarski, and (apparently independently) Brodnik, Carlsson, Demaine, Munro, and Sedgewick describe much better solutions that maintain a resizable array of size [Formula: see text] using only [Formula: see text] space, still with [Formula: see text] time per operation.\u00a0Brodnik et\u00a0al. give a simple proof that this is best possible. We distinguish between the space needed for storing a resizable array, and accessing its items, and the temporary space that may be needed while growing or shrinking the array. For every integer [Formula: see text], we show that [Formula: see text] space is sufficient for storing and accessing an array of size [Formula: see text], if [Formula: see text] space can be used briefly during grow and shrink operations.\u00a0Accessing an item by index takes [Formula: see text] worst-case time, while grow and shrink operations take [Formula: see text] amortized time.\u00a0Using an exact analysis of a growth game, we show that for any data structure from a wide class of data structures that uses only [Formula: see text] space to store the array, the amortized cost of grow is [Formula: see text], even if only grow and access operations are allowed.\u00a0The time for grow and shrink operations cannot be made worst-case unless [Formula: see text].<\/jats:p>","DOI":"10.1137\/23m1575792","type":"journal-article","created":{"date-parts":[[2024,9,17]],"date-time":"2024-09-17T12:49:25Z","timestamp":1726577365000},"page":"1354-1380","source":"Crossref","is-referenced-by-count":2,"title":["Optimal Resizable Arrays"],"prefix":"10.1137","volume":"53","author":[{"given":"Robert E.","family":"Tarjan","sequence":"first","affiliation":[{"name":"Department of Computer Science, Princeton University, NJ USA."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7638-7710","authenticated-orcid":true,"given":"Uri","family":"Zwick","sequence":"additional","affiliation":[{"name":"Blavatnik School of Computer Science, Tel Aviv University, Tel Aviv, Israel."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2024,9,17]]},"reference":[{"key":"ref1","unstructured":"P. Bille, A. R. Christiansen, M. B. Ettienne, and I. L. G\u00f8rtz, Fast dynamic arrays, in Proceedings of 25th ESA, LIPIcs 87, 2017, pp. 16:1\u201316:13, https:\/\/doi.org\/10.4230\/LIPIcs.ESA.2017.16."},{"key":"ref2","doi-asserted-by":"crossref","unstructured":"A. Brodnik, S. Carlsson, E. D. Demaine, J. I. Munro, and R. Sedgewick, Resizable arrays in optimal time and space, in Proceedings of 6th WADS, Springer, 1999, pp. 37\u201348, https:\/\/doi.org\/10.1007\/3-540-48447-7_4.","DOI":"10.1007\/3-540-48447-7_4"},{"key":"ref3","doi-asserted-by":"crossref","unstructured":"A. Brodnik, P. B. Miltersen, and J. I. Munro, Trans-dichotomous algorithms without multiplication: Some upper and lower bounds, in Proceedings of 4th WADS, Lecture Notes in Comput. Sci. 1272, Springer, 1997, pp. 426\u2013439, https:\/\/doi.org\/10.1007\/3-540-63307-3_80.","DOI":"10.1007\/3-540-63307-3_80"},{"key":"ref4","volume-title":"Introduction to Algorithms","author":"Cormen T. H.","year":"2009","edition":"3"},{"key":"ref5","doi-asserted-by":"crossref","unstructured":"P. F. Dietz, Optimal algorithms for list indexing and subset rank, in Procedings of 1st WADS, Lecture Notes in Comput. Sci. 382, Springer, 1989, pp. 39\u201346, https:\/\/doi.org\/10.1007\/3-540-51542-9_5.","DOI":"10.1007\/3-540-51542-9_5"},{"key":"ref6","doi-asserted-by":"crossref","unstructured":"M. L. Fredman and M. E. Saks, The cell probe complexity of dynamic data structures, in Proceedings of 21st STOC, D. S. Johnson, ed. ACM, 1989, pp. 345\u2013354, https:\/\/doi.org\/10.1145\/73007.73040.","DOI":"10.1145\/73007.73040"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(93)90040-4"},{"key":"ref8","doi-asserted-by":"crossref","unstructured":"M. T. Goodrich and J. G. Kloss II, Tiered vectors: Efficient dynamic arrays for rank-based sequences, in Proceedings of 6th WADS, Springer, 1999, pp. 205\u2013216, https:\/\/doi.org\/10.1007\/3-540-48447-7_21.","DOI":"10.1007\/3-540-48447-7_21"},{"key":"ref9","doi-asserted-by":"crossref","unstructured":"T. Hagerup, K. Mehlhorn, and J. I. Munro, Maintaining discrete probability distributions optimally, in Proceedings of 20th ICALP, Lecture Notes in Comput. Sci. 700, A. Lingas, R. G. Karlsson, and S. Carlsson, eds. Springer, 1993, pp. 253\u2013264, https:\/\/doi.org\/10.1007\/3-540-56939-1_77.","DOI":"10.1007\/3-540-56939-1_77"},{"key":"ref10","doi-asserted-by":"crossref","unstructured":"S. Joannou and R. Raman, An empirical evaluation of extendible arrays, in Proceedings of 10th SEA, Lecture Notes in Comput. Sci. 6630, Springer, 2011, pp. 447\u2013458, https:\/\/doi.org\/10.1007\/978-3-642-20662-7_38.","DOI":"10.1007\/978-3-642-20662-7_38"},{"key":"ref11","doi-asserted-by":"crossref","unstructured":"H. Kaplan, R. E. Tarjan, O. Zamir, and U. Zwick, Simulating a stack using queues, in Proceedings of 33rd SODA, SIAM, 2022, pp. 1901\u20131924, https:\/\/doi.org\/10.1137\/1.9781611977073.76.","DOI":"10.1137\/1.9781611977073.76"},{"key":"ref12","doi-asserted-by":"crossref","unstructured":"J. Katajainen, Worst-case-efficient dynamic arrays in practice, in Proceedings of 15th SEA, Lecture Notes in Comput. Sci. 9685, Springer, 2016, pp. 167\u2013183, https:\/\/doi.org\/10.1007\/978-3-319-38851-9_12.","DOI":"10.1007\/978-3-319-38851-9_12"},{"key":"ref13","volume-title":"Fascicle 1: Bitwise Tricks & Techniques; Binary Decision Diagrams","volume":"4","author":"Knuth D. E.","year":"2009"},{"key":"ref14","first-page":"595","volume-title":"Handbook of Data Structures and Applications","author":"Munro J. I.","year":"2018"},{"key":"ref15","doi-asserted-by":"crossref","unstructured":"R. Raman, V. Raman, and S. S. Rao, Succinct dynamic data structures, in Proceedings of 7th WADS, Lecture Notes in Comput. Sci. 2125, Springer, 2001, pp. 426\u2013437, https:\/\/doi.org\/10.1007\/3-540-44634-6_39.","DOI":"10.1007\/3-540-44634-6_39"},{"key":"ref16","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45061-0_30"},{"key":"ref17","first-page":"107","volume":"21","author":"Sitarski E.","year":"1996","journal-title":"Dr. Dobb\u2019s J. Software Tools"},{"key":"ref18","unstructured":"Wikipedia contributor, Dynamic array, Wikipedia, 2022, https:\/\/en.wikipedia.org\/w\/index.php?title=Dynamic_array&oldid=1078194534 [accessed 24-March-2022]."},{"key":"ref19","unstructured":"Wikipedia contributors, Hashed array tree, Wikipedia, 2022, https:\/\/en.wikipedia.org\/w\/index.php?title=Hashed_array_tree&oldid=1076479510 [accessed 25-March-2022]."}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/23M1575792","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:29:50Z","timestamp":1787336990000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/23M1575792"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,17]]},"references-count":19,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2024,10,31]]}},"alternative-id":["10.1137\/23M1575792"],"URL":"https:\/\/doi.org\/10.1137\/23m1575792","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,17]]}}}