Given a page of memory, the following algorithm is useful in creating, maintaining and re-utilising blocks of memory based on the "Best-Fit" method.