1. If LOCP = NULL, then:
Set START : = LINK[START]. [Deletes first node]
Else:
Set LINK[LOCP] : = LINK[LOC]. [Delete node N.]
[End of structure .]
2. [Return deleted node to the AVAIL list.]
Set LINK[LOC] : = AVAIL and AVAIL : = LOC
0 comments:
Post a Comment