ACM Home Page
Please provide us with feedback. Feedback
A comparison of next-fit, first-fit, and best-fit
Full text PdfPdf (148 KB)
Source
Communications of the ACM archive
Volume 20 ,  Issue 3  (March 1977) table of contents
Pages: 191 - 192  
Year of Publication: 1977
ISSN:0001-0782
Author
Carter Bays  Univ. of South Carolina, Columbia
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 87,   Downloads (12 Months): 378,   Citation Count: 7
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/359436.359453
What is a DOI?

ABSTRACT

“Next-fit” allocation differs from first-fit in that a first-fit allocator commences its search for free space at a fixed end of memory, whereas a next-fit allocator commences its search wherever it previously stopped searching. This strategy is called “modified first-fit” by Shore [2] and is significantly faster than the first-fit allocator. To evaluate the relative efficiency of next-fit (as well as to confirm Shore's results) a simulation was written in Basic Plus on the PDP-11, using doubly linked lists to emulate the memory structure of the simulated computer. The simulation was designed to perform essentially in the manner described in [2]. The results of the simulation of the three methods show that the efficiency of next-fit is decidedly inferior to first-fit and best-fit when the mean size of the block requested is less than about 1/16 the total memory available. Beyond this point all three allocation schemes have similar efficiencies.