Chapter-6. Linked List
Chapter-6. Linked List
Linked list is a data structure consisting of a group of memory space which together represents a
list i.e. a sequence of data. Each data is stored in a separate memory space/block (called cell/node).
Each memory block contains the data along with link/location/address to the memory location for
the next data in the list. The linked list uses dynamic memory allocation, that is, it allocates
memory for new list elements as needed.
Case 1:
if Prev != NULL then go to Case 2
Make a link from Node to first node
Make Node as the Head
Exit
Case 2:
Make a link from Node to the node next to Prev
Make another link from Prev to Node
1.9 References
• Kruse, R. L., Ryba, A. J., & Ryba, A. (1999). Data structures and program design in C++
(p. 280). New York: Prentice Hall.
• Shaffer, C. A. (2012). Data structures and algorithm analysis. Update, 3, 0-3.
• Dale, N. B. (2003). C++ plus data structures. Jones & Bartlett Learning.