A Nearly Quadratic Improvement for Memory Reallocation
Abstract: In the Memory Reallocation Problem a set of items of various sizes must be dynamically assigned to non-overlapping contiguous chunks of memory. It is guaranteed that the sum of the sizes of all items present at any time is at most a $(1-\varepsilon)$-fraction of the total size of memory (i.e., the load-factor is at most $1-\varepsilon$). The allocator receives insert and delete requests online, and can re-arrange existing items to handle the requests, but at a reallocation cost defined to be the sum of the sizes of items moved divided by the size of the item being inserted/deleted. The folklore algorithm for Memory Reallocation achieves a cost of $O(\varepsilon{-1})$ per update. In recent work at FOCS'23, Kuszmaul showed that, in the special case where each item is promised to be smaller than an $\varepsilon4$-fraction of memory, it is possible to achieve expected update cost $O(\log\varepsilon{-1})$. Kuszmaul conjectures, however, that for larger items the folklore algorithm is optimal. In this work we disprove Kuszmaul's conjecture, giving an allocator that achieves expected update cost $O(\varepsilon{-1/2} \operatorname*{polylog} \varepsilon{-1})$ on any input sequence. We also give the first non-trivial lower bound for the Memory Reallocation Problem: we demonstrate an input sequence on which any resizable allocator (even offline) must incur amortized update cost at least $\Omega(\log\varepsilon{-1})$. Finally, we analyze the Memory Reallocation Problem on a stochastic sequence of inserts and deletes, with random sizes in $[\delta, 2 \delta]$ for some $\delta$. We show that, in this simplified setting, it is possible to achieve $O(\log\varepsilon{-1})$ expected update cost, even in the ``large item'' parameter regime ($\delta > \varepsilon4$).
- Noga Alon and Joel H Spencer. 2016. The probabilistic method. John Wiley & Sons.
- Reallocation problems in scheduling. In Proceedings of the twenty-fifth annual ACM symposium on Parallelism in algorithms and architectures. 271–279.
- Cost-oblivious reallocation for scheduling and planning. In Proceedings of the 27th ACM symposium on Parallelism in Algorithms and Architectures. 143–154.
- Cost-oblivious storage reallocation. ACM Transactions on Algorithms (TALG) 13, 3 (2017), 1–20.
- William Kuszmaul. 2023. Strongly History Independent Storage Allocation: New Upper and Lower bounds. FOCS (2023).
- Dynamic Reallocation Problems in Scheduling. arXiv preprint arXiv:1507.01981 (2015).
- Tight bounds for dynamic storage allocation. SIAM Journal on Discrete Mathematics 9, 1 (1996), 155–166.
- George S Lueker. 1998. Exponentially small bounds on the expected optimum of the partition and subset sum problems. Random Structures & Algorithms 12, 1 (1998), 51–62.
- Moni Naor and Vanessa Teague. 2001. Anti-persistence: History independent data structures. In Proceedings of the thirty-third annual ACM symposium on Theory of computing. 492–501.
- John Michael Robson. 1971. An estimate of the store size necessary for dynamic storage allocation. Journal of the ACM (JACM) 18, 3 (1971), 416–423.
- John Michael Robson. 1974. Bounds for some functions concerning dynamic storage allocation. Journal of the ACM (JACM) 21, 3 (1974), 491–499.
- J. V. Uspensky. 1937. Introduction to Mathematical Probability. McGraw-Hill, New York. 305 pages.
- Yufei Zhao. 2023. Graph Theory and Additive Combinatorics: Exploring Structure and Randomness. Cambridge University Press.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.