In computer science a tree is a widely used abstract data type that represents a hierarchical structure made of connected nodes. Every node can have many children, depending on the kind of tree, but exactly one parent, except the topmost root node, which has none. These constraints rule out cycles, and they mean each child can be treated as the root of its own subtree, which makes recursion a natural way to walk a tree. Binary trees, which allow at most two children per node, are a common special case. A tree can be stored as a list of parents with pointers to children, a list of children with pointers to parents, or a list of nodes with a separate list of parent and child relations. Common operations include enumerating items, searching, adding or deleting an item, pruning a section, grafting a section and finding the lowest common ancestor of two nodes.
Facts
Core PrincipleA directed acyclic graph in which there is only one route between any pair of nodes, with a root at the top and leaves in the opposite direction. 1 Connections
In Field
Source Tree (abstract data type) (Wikipedia)
Long-Form Articles
Sources
1. Free On-line Dictionary of Computing (FOLDOC): tree (FOLDOC)
Free On-line Dictionary of Computing (FOLDOC)Entry textQuote, Entry text
A directed acyclic graph; i.e. a graph wherein there is only one route between any pair of nodes
View the Source Tree (abstract data type) (Wikipedia)
In Field: Algorithms and Complexity Theory, Lead
In computer science, a tree is a widely used abstract data type
In Group: Tree Data Structures, Lead
represents a hierarchical tree structure with a set of connected nodes
View the SourceReader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.