1. [Use Procedure FINDBHL to find the location of N and its preceding node.]
Call LINDBHL(INFO, LINK, START, ITEM, LOC, LOCP).
2. If LOC = NULL, then : Write: ITEM not in list, and Exit.
3. Set LINK[LOCP] : = LINK[LOC]. [Deletes node.]
4. [Return deleted node to the AVAIL list.]
Set LINK[LOC] : = AVAIL and AVAIL : = LOC.
0 comments:
Post a Comment