A Time- and Space-Efficient Garbage Compaction Algorithm

60Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.

Abstract

Given an area of storage containing scattered, marked nodes of differing sizes, one may wish to rearrange them into a compact mass at one end of the area while revising all pointers to marked nodes to show their new locations. An algorithm is described here which accomplishes this task in linear time relative to the size of the storage area, and in a space of the order of one bit for each pointer. The algorithm operates by reversibly encoding the situation (that a collection of locations point to a single location) by a linear list, emanating from the pointed-to location, passing through the pointing locations, and terminating with the pointed-to location's transplanted contents. © 1978, ACM. All rights reserved.

Cite

CITATION STYLE

APA

Morris, F. L. (1978). A Time- and Space-Efficient Garbage Compaction Algorithm. Communications of the ACM, 21(8), 662–665. https://doi.org/10.1145/359576.359583

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free