Singly Linked Lists
A singly linked list is built from nodes that each hold a value and one link to another node. Match each term on the left with the description of the role it plays in the list.
The empty value stored in the final node's link field to mark the end of the chain
An optional extra variable pointing at the final node, so adding at the end needs no walk from the front
Following links one node at a time from the front, since there is no index arithmetic to jump ahead
The part of each node that stores the address of its successor
A placeholder that sits before the first real element so front insertions and removals need no special case
The variable holding the address of the first node; if it is overwritten carelessly, every node becomes unreachable
Head reference
Null link
Tail reference
Traversal
Sentinel node
Next field
An attendance system stores identifiers in the singly linked list shown, with pred referring to node B. Insert identifier 55 immediately after B, preserving every original node and its relative order. The variable x does not yet exist. Arrange the three Python statements in their correct execution order; Node(55) creates a new node storing 55.
Loading ordering steps…