








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









List Implementation using Linked Lists
Instead, data is stored at randomlocations and the current datalocation provides the information regarding the location of the nextdata.
START^10002000 3000 PTR PTR = LINK[PTR]
(^10 10) Data^ Link 20 20 30 30 40 40 50
nodes A and B. Write an algorithm to insert node N between nodesA and B.
START 1000 2000 Node A 3000 Node B 4000 5000
PTR
START 1000 2000 Node A 3000 Node B 4000 5000 3 cases: first node, last node, in-between node. ( ex: if ITEM = 500? if ITEM = 6000?)^ Node N^3500
START 1000 2000 Node A 3000 Node N 3500 Node B 4000 5000 START 1000 2000 Node A 3000 Node N 3500 Node B 4000 5000