Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A sentinel node
is a specifically designated node used with linked lists and trees as a
traversal path terminator. A sentinel node does not hold or reference
any data managed by the data structure. Sentinels are used as an
alternative over using null as the path terminator in order to get one
or more of the following benefits: (1) Increased speed of operations;
(2) Reduced algorithmic complexity and code size; (3) Increased data
structure robustness (arguably). A node is a record consisting of one or
more fields that are links to other nodes, and a data field. The link
and data fields are often implemented by pointers or references although
it is also quite common for the data to be embedded directly in the
node. Nodes are used to build linked data structures such as linked
lists, trees, and graphs.