Algorithm 1 Single Array Allocate and Free Objects
Require: An array representing all doubly linked list nodes and variable indicating the head of free list
1:procedure AllocateObject()
2:if then
3:error "out of space"
4:else
5:
6: // is conceptually
7:return x
8:end if
9:end procedure
10:
11:procedure FreeObject()
12: // is conceptually
13:
14:end procedure