Parent pointer tree (nonfiction)

From Gnomon Chronicles
Revision as of 06:09, 17 October 2019 by Admin (talk | contribs) (Created page with "In [{Computer science (nonfiction)|computer science]], an '''in-tree''' or '''parent pointer tree''' is an N-ary tree data structure in which each node has a pointer to its pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In [{Computer science (nonfiction)|computer science]], an in-tree or parent pointer tree is an N-ary tree data structure in which each node has a pointer to its parent node, but no pointers to child nodes. When used to implement a set of stacks, the structure is called a spaghetti stack, cactus stack or saguaro stack (after the saguaro, a kind of cactus). Parent pointer trees are also used as disjoint-set data structures.

The structure can be regarded as a set of singly linked lists that share part of their structure, in particular, their tails. From any node, one can traverse to ancestors of the node, but not to any other node.

See also