A Nearly Quadratic Improvement for Memory Reallocation

Martin Farach-Colton, William Kuszmaul, Nathan S. Sheffield, Alek Westover

    Research output: Chapter in Book/Report/Conference proceedingConference contribution

    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-ϵ)-fraction of the total size of memory (i.e., the load-factor is at most 1-ϵ). 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(ϵ-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 ϵ4-fraction of memory, it is possible to achieve expected update cost O(logϵ-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(ϵ-1/2∗polylog ϵ-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 ω(logϵ-1). Finally, we analyze the Memory Reallocation Problem on a stochastic sequence of inserts and deletes, with random sizes in [, 2 ] for some . We show that, in this simplified setting, it is possible to achieve O(logϵ-1 ) expected update cost, even in the "large-item"parameter regime (δ> ϵ4).

    Original languageEnglish (US)
    Title of host publicationSPAA 2024 - Proceedings of the 36th ACM Symposium on Parallelism in Algorithms and Architectures
    PublisherAssociation for Computing Machinery
    Pages125-135
    Number of pages11
    ISBN (Electronic)9798400704161
    DOIs
    StatePublished - Jun 17 2024
    Event36th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2024 - Nantes, France
    Duration: Jun 17 2024Jun 21 2024

    Publication series

    NameAnnual ACM Symposium on Parallelism in Algorithms and Architectures
    ISSN (Print)1548-6109

    Conference

    Conference36th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2024
    Country/TerritoryFrance
    CityNantes
    Period6/17/246/21/24

    Keywords

    • memory reallocation
    • randomized algorithms

    ASJC Scopus subject areas

    • Software
    • Theoretical Computer Science
    • Hardware and Architecture

    Fingerprint

    Dive into the research topics of 'A Nearly Quadratic Improvement for Memory Reallocation'. Together they form a unique fingerprint.

    Cite this