Follow

Translate

Monday, March 21, 2016

INSERT(INFO, LINK, START, AVAIL, ITEM)



1.   [Use Procedure FINDA to find location of the node preceding ITEM]
  Call FINDA(INFO, LINK, START, ITEM, LOC)

2.  [Use Algorithm INSLOC to insert ITEM after the node with location LOC.]
  Call INSLOC(INFO, LINK, START, AVAIL, LOC, ITEM)

3. Exit
If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

Related Posts:

  • Inserting at the Beginning of a List Algorithm:   INSFIRST(INFO,  LINK,  START, AVAIL, ITEM) This algorithm inserts ITEM as the first node in the list. 1.     [OVERFLOW?]  If AVAIL = NULL , then : Write: OVERFLOW… Read More
  • Inserting at the Beginning of a List Algorithm:   INSFIRST(INFO,  LINK,  START, AVAIL, ITEM) This algorithm inserts ITEM as the first node in the list. 1.     [OVERFLOW?]  If AVAIL = NULL , then : Write: OVERFLOW… Read More
  • Deleting the Node Following a Given Node Algorithm: DEL(INFO,  LINK,  START,  AVAIL,  LOC,  LOCP) This algorithm deletes the node N with location LOC,  LOCP is the location of the node which precedes N or , where N is the first node… Read More
  • Inserting after a Given Node Algorithm:  INSLOC(INFO, LINK, START, AVAIL, LOC, ITEM) This algorithm inserts ITEM so that ITEM follows the node with location LOC or inserts ITEM as the first node when LOC = NULL. 1.        … Read More
  • Deleting the Node Following a Given Node Algorithm: DEL(INFO,  LINK,  START,  AVAIL,  LOC,  LOCP) This algorithm deletes the node N with location LOC,  LOCP is the location of the node which precedes N or , where N is the first node… Read More

0 comments:

Post a Comment