Tree structure
   HOME

TheInfoList



OR:

A tree structure, tree diagram, or tree model is a way of representing the hierarchical nature of a
structure A structure is an arrangement and organization of interrelated elements in a material object or system, or the object or system so organized. Material structures include man-made objects such as buildings and machines and natural objects such a ...
in a graphical form. It is named a "tree structure" because the classic representation resembles a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
, although the chart is generally upside down compared to a biological tree, with the "stem" at the top and the "leaves" at the bottom. A tree structure is conceptual, and appears in several forms. For a discussion of tree structures in specific fields, see
Tree (data structure) In computer science, a tree is a widely used abstract data type that represents a hierarchical tree structure with a set of connected nodes. Each node in the tree can be connected to many children (depending on the type of tree), but must be c ...
for computer science; insofar as it relates to graph theory, see
tree (graph theory) In graph theory, a tree is an undirected graph in which any two vertices are connected by ''exactly one'' path, or equivalently a connected acyclic undirected graph. A forest is an undirected graph in which any two vertices are connected by ...
or tree (set theory). Other related articles are listed below.


Terminology and properties

The tree elements are called "
node In general, a node is a localized swelling (a " knot") or a point of intersection (a vertex). Node may refer to: In mathematics * Vertex (graph theory), a vertex in a mathematical graph * Vertex (geometry), a point where two or more curves, line ...
s". The lines connecting elements are called "branches". Nodes without children are called leaf nodes, "end-nodes", or "leaves". Every finite tree structure has a member that has no
superior Superior may refer to: *Superior (hierarchy), something which is higher in a hierarchical structure of any kind Places *Superior (proposed U.S. state), an unsuccessful proposal for the Upper Peninsula of Michigan to form a separate state *Lake ...
. This member is called the "root" or root node. The root is the starting node. But the converse is not true: infinite tree structures may or may not have a root node. The names of relationships between nodes model the
kinship terminology Kinship terminology is the system used in languages to refer to the persons to whom an individual is related through kinship. Different societies classify kinship relations differently and therefore use different systems of kinship terminology ...
of family relations. The gender-neutral names "parent" and "child" have largely displaced the older "father" and "son" terminology. The term "uncle" is still widely used for other nodes at the same level as the parent, although it is sometimes replaced with gender-neutral terms like "ommer". * A node's "parent" is a node one step higher in the hierarchy (i.e. closer to the root node) and lying on the same branch. * "Sibling" ("brother" or "sister") nodes share the same parent node. * A node's "uncles" (sometimes "ommers") are siblings of that node's parent. * A node that is connected to all lower-level nodes is called an "ancestor". The connected lower-level nodes are "descendants" of the ancestor node. In the example, "encyclopedia" is the parent of "science" and "culture", its children. "Art" and "craft" are siblings, and children of "culture", which is their parent and thus one of their ancestors. Also, "encyclopedia", as the root of the tree, is the ancestor of "science", "culture", "art" and "craft". Finally, "science", "art" and "craft", as leaves, are ancestors of no other node. Tree structures can depict all kinds of taxonomic knowledge, such as
family tree A family tree, also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure. More detailed family trees, used in medicine and social work, are known as genograms. Representations ...
s, the biological evolutionary tree, the evolutionary tree of a language family, the
grammatical structure In linguistics, the grammar of a natural language is its set of structural constraints on speakers' or writers' composition of clauses, phrases, and words. The term can also refer to the study of such constraints, a field that includes domai ...
of a language (a key example being S → NP VP, meaning a sentence is a noun phrase and a verb phrase, with each in turn having other components which have other components), the way web pages are logically ordered in a web site, mathematical trees of integer sets, et cetera. The
Oxford English Dictionary The ''Oxford English Dictionary'' (''OED'') is the first and foundational historical dictionary of the English language, published by Oxford University Press (OUP). It traces the historical development of the English language, providing a c ...
records use of both the terms "tree structure" and "tree-diagram" from 1965 in
Noam Chomsky Avram Noam Chomsky (born December 7, 1928) is an American public intellectual: a linguist, philosopher, cognitive scientist, historian, social critic, and political activist. Sometimes called "the father of modern linguistics", Chomsky i ...
's ''
Aspects of the Theory of Syntax Aspect or Aspects may refer to: Entertainment * '' Aspect magazine'', a biannual DVD magazine showcasing new media art * Aspect Co., a Japanese video game company * Aspects (band) Aspects are an English hip hop group from Bristol, England; t ...
''. In a tree structure there is one and only one path from any point to any other point.
Computer science Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to Applied science, practical discipli ...
uses tree structures extensively (''see''
Tree (data structure) In computer science, a tree is a widely used abstract data type that represents a hierarchical tree structure with a set of connected nodes. Each node in the tree can be connected to many children (depending on the type of tree), but must be c ...
and
telecommunications Telecommunication is the transmission of information by various types of technologies over wire, radio, optical, or other electromagnetic systems. It has its origin in the desire of humans for communication over a distance greater than that ...
.) For a formal definition see
set theory Set theory is the branch of mathematical logic that studies sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory, as a branch of mathematics, is mostly concern ...
, and for a generalization in which children are not necessarily successors, see prefix order.


Examples of tree structures

* Internet: ** usenet hierarchy * Vacuum tubes ** Document Object Model's logical structure,
Yahoo! Yahoo! (, styled yahoo''!'' in its logo) is an American web services provider. It is headquartered in Sunnyvale, California and operated by the namesake company Yahoo Inc., which is 90% owned by investment funds managed by Apollo Global Mana ...
subject index,
Curlie DMOZ (from ''directory.mozilla.org'', an earlier domain name, stylized in lowercase in its logo) was a multilingual open-content directory of World Wide Web links. The site and community who maintained it were also known as the Open Directory ...
*
Operating system An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
:
directory structure In computing, a directory structure is the way an operating system arranges Computer file, files that are accessible to the user. Files are typically displayed in a hierarchical tree structure. File names and extensions A filename is a string use ...
* Information management: Dewey Decimal System, PSH, this hierarchical bulleted list * Management: hierarchical
organization An organization or organisation (Commonwealth English; see spelling differences), is an entity—such as a company, an institution, or an association—comprising one or more people and having a particular purpose. The word is derived f ...
al structures * Computer Science: ** binary search tree ** red–black tree ** AVL tree **
R-tree R-trees are tree data structures used for spatial access methods, i.e., for indexing multi-dimensional information such as geographical coordinates, rectangles or polygons. The R-tree was proposed by Antonin Guttman in 1984 and has found sig ...
* Biology: evolutionary tree * Business: pyramid selling scheme * Project management: work breakdown structure * Linguistics: ** (Syntax) Phrase structure trees ** (Historical Linguistics) Tree model of language change * Sports: business chess, playoffs brackets * Mathematics: Von Neumann universe * Group theory: descendant trees


Representing trees

There are many ways of visually representing tree structures. Almost always, these boil down to variations, or combinations, of a few basic styles:


Classical node-link diagrams

Classical node-link diagrams, that connect nodes together with line segments:


Nested sets

Nested sets that use enclosure/containment to show parenthood, examples include TreeMaps, fractal maps, and Euler diagrams:


Layered "icicle" diagrams

Layered "icicle" diagrams that use alignment/adjacency.


Outlines and tree views

Lists or diagrams that use indentation, sometimes called " outlines" or " tree views". An outline:
:encyclopedia ::culture :::art :::craft ::science
A tree view:
*encyclopedia **culture ***art ***craft **science


Nested parentheses

A correspondence to nested parentheses was first noticed by Sir
Arthur Cayley Arthur Cayley (; 16 August 1821 – 26 January 1895) was a prolific British mathematician who worked mostly on algebra. He helped found the modern British school of pure mathematics. As a child, Cayley enjoyed solving complex maths problem ...
:
((art,craft)culture,science)encyclopedia
or
encyclopedia(culture(art,craft),science)


Radial trees

Trees can also be represented radially:


See also

;Kinds of trees: * B-tree * Dancing tree * Decision tree * Left-child right-sibling binary tree *
Porphyrian tree The Tree of Porphyry (also known as ''scala praedicamentalis'') is a classic device for illustrating what is also called a "scale of being". It was suggested—if not first, then most famously in the European philosophical tradition—by the 3rd ...
*
Tree (data structure) In computer science, a tree is a widely used abstract data type that represents a hierarchical tree structure with a set of connected nodes. Each node in the tree can be connected to many children (depending on the type of tree), but must be c ...
*
Tree (graph theory) In graph theory, a tree is an undirected graph in which any two vertices are connected by ''exactly one'' path, or equivalently a connected acyclic undirected graph. A forest is an undirected graph in which any two vertices are connected by ...
* Tree (set theory) ;Related articles: *
Data drilling Data drilling (also drilldown) refers to any of various operations and transformations on tabular, relational, and multidimensional data. The term has widespread use in various contexts, but is primarily associated with specialized software desig ...
*
Hierarchical model A hierarchical database model is a data model in which the data are organized into a tree-like structure. The data are stored as records which are connected to one another through links. A record is a collection of fields, with each field containin ...
: clustering and query * Tree testing


References


Further reading

Identification of some of the basic styles of tree structures can be found in: * Jacques Bertin, ''Semiology of Graphics'', 1983, University of Wisconsin Press (2nd edition 1973, ; * *Brian Johnson and Ben Shneiderman,
Tree-maps: A space-filling approach to the visualization of hierarchical information structures
, in ''Proceedings of IEEE Visualization (VIS)'', 1991, pp. 284–291, ; * Peter Eades, Tao Lin, and Xuemin Lin, "Two Tree Drawing Conventions", ''International Journal of Computational Geometry and Applications'', 1993, volume 3, number 2, pp. 133–153. *


External links


Visualization of phylogenetic trees on the T-REX server

Using a tree structure to design a business process
- from the Society for Technical Communication {{DEFAULTSORT:Tree Structure Trees (data structures) de:Baum (Datenstruktur) pl:Struktura drzewiasta