Pseudocode Implementation Examples
A node containing a single node reference field.
record SinglyLinkedNode { next, // A reference to the next node data // Data or reference to data }Here, three such nodes form a singly linked list of length 3:
A node containing two node reference fields.
Here three such nodes form a doubly linked list of length 3:
Also common is a binary tree node containing references to left and right child nodes, and a reference to a parent node.
Read more about this topic: Node (computer Science)
Famous quotes containing the word examples:
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)