Papers
Topics
Authors
Recent
Search
2000 character limit reached

A Nearly Quadratic Improvement for Memory Reallocation

Published 20 May 2024 in cs.DS | (2405.12152v1)

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$).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (13)
  1. Noga Alon and Joel H Spencer. 2016. The probabilistic method. John Wiley & Sons.
  2. Reallocation problems in scheduling. In Proceedings of the twenty-fifth annual ACM symposium on Parallelism in algorithms and architectures. 271–279.
  3. Cost-oblivious reallocation for scheduling and planning. In Proceedings of the 27th ACM symposium on Parallelism in Algorithms and Architectures. 143–154.
  4. Cost-oblivious storage reallocation. ACM Transactions on Algorithms (TALG) 13, 3 (2017), 1–20.
  5. William Kuszmaul. 2023. Strongly History Independent Storage Allocation: New Upper and Lower bounds. FOCS (2023).
  6. Dynamic Reallocation Problems in Scheduling. arXiv preprint arXiv:1507.01981 (2015).
  7. Tight bounds for dynamic storage allocation. SIAM Journal on Discrete Mathematics 9, 1 (1996), 155–166.
  8. 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.
  9. 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.
  10. 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.
  11. John Michael Robson. 1974. Bounds for some functions concerning dynamic storage allocation. Journal of the ACM (JACM) 21, 3 (1974), 491–499.
  12. J. V. Uspensky. 1937. Introduction to Mathematical Probability. McGraw-Hill, New York. 305 pages.
  13. Yufei Zhao. 2023. Graph Theory and Additive Combinatorics: Exploring Structure and Randomness. Cambridge University Press.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.

HackerNews