21
Doubly-Linked Lists
Each data entry is stored in its own node.
Each node has a reference to the node that contains the
next data entry and a reference to the node that contains
the previous data entry (prev).
A reference named the head points to the node with the
first data entry and a reference named the tail points to
the node with the last data entry.
The last node in the list contains a next reference of null
and the first node in the list contains a prev reference of
null.
An empty list would have head and tail references equal
to null.!
15-121 Introduction to Data Structures, Carnegie Mellon University - CORTINA